function genPopUp(width, height, genPopupURL, pScrollbar) {
leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
if (screen.height && (screen.height <= 600)) { topPosition = 0; } else { topPosition = (screen.height) ? (screen.height-height)/4 : 0; }
pScrollbar = pScrollbar != undefined ? '1' : '0';
var settings='width='+width+',height='+height+',left='+leftPosition+',top='+topPosition+'toolbar=0,location=0,directories=0,menubar=0,scrollbars='+pScrollbar+',resizable='+pScrollbar+',status=0';
var zyWin=window.open(genPopupURL, '', settings); zyWin.focus();
}
