<!--
// Begin popup
function wtspopup() {
if(document.form1.popupurl.value == 'none'){
return false;
}else{
URL = document.form1.popupurl.value;
day = new Date();
id = day.getTime();
w = document.form1.popupwidth.value;
h = document.form1.popupheight.value;
if (document.all) {
// the following is only available after onLoad 
w = document.body.clientWidth;
h = document.body.clientHeight;
}
else if (document.layers) {
w = window.innerWidth;
h = window.innerHeight;
}
popW = document.form1.popupwidth.value;
popH = document.form1.popupheight.value;
leftPos = (w-popW)/2;
topPos = (h-popH)/25;
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=' + popW + ',height='+popH+',top='+topPos+',left='+leftPos);");
}
}
// End popup
// -->