// jscript File
function popupCenter(filename,xWindow,yWindow,instruct){
    var myWidth=0, myHeight=0, xOffset, yOffset;
    if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
        //IE 6+ in 'standards compliant mode'
        xOffset = window.screenLeft+(document.documentElement.clientWidth-xWindow)/2;
        yOffset = window.screenTop+(document.documentElement.clientHeight-yWindow)/2;
    } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
        //IE 4 compatible
        xOffset = window.screenLeft+(document.body.clientWidth-xWindow)/2;
        yOffset = window.screenTop+(document.body.clientHeight-yWindow)/2;
    }else if( typeof( window.innerWidth ) == 'number' ) {
        //Non-IE
        xOffset = window.screenX+(window.outerWidth-xWindow)/2;
        yOffset = window.screenY+(window.outerHeight-yWindow)/2;
    }

window.open(filename,'newwindow','width='+xWindow+',height='+yWindow+',top='+yOffset+',left='+xOffset+instruct);
return false;  

}


function popupform(f)
{
f.target = 'foo';
window.open('',f.target,'menubar=no,scrollbars=no,width=606,height=480');
f.submit();
return false;
} 