function popUp(url) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,"PopWindow","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=602,height=463");
} else {
if (!popupWin.closed){ 
popupWin.location.href = url;
} else {
popupWin = window.open(url,"PopWindow","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=602,height=463");
}
}
popupWin.focus();
}

function popUp2(url,hit,wid) {
if (typeof(popupWin) != "object"){
popupWin = window.open(url,"PopWindow","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width="+wid+",height="+hit+"");
} else {
if (!popupWin.closed){ 
popupWin.location.href = url;
} else {
popupWin = window.open(url,"PopWindow","toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width="+wid+",height="+hit+"");
}
}
popupWin.focus();
}

function newWindow(url, height, width) {
    nameW='feature'
 if (navigator.appVersion.indexOf('4') != -1) {
 // Vars for centering the new window on Version 4 Browsers
 xTop = screen.width/2 - (width/2);
 yTop = screen.height/2 - (height/2);
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=' + xTop + ',top=' + yTop + '');
 } else {
 window.open(url, nameW, 'height='+height+',width='+width+',scrollbars=0,resizable=0,menubar=0,toolbar=0,status=0,location=0,directories=0,left=150,top=200');
 }
}
