/* Name: PopUp_js.aspx - Common JS Functions */ /* Method: PopUp_OpenWindow Description: Popup is always centered on the screen Note: don't set the top,left,screenx,screeny properties Code By: SG */ PopUp_intWindow=0; function PopUp_OpenWindow(strUrl,intHeight,intWidth,strProperties){ // Find middle of screen strLeft = (screen.width/2) - (intWidth/2); strTop = (screen.height/2) - (intHeight/2); PopUp_intWindow = PopUp_intWindow + 1 objWindow = window.open(strUrl, "msgWindow" + PopUp_intWindow, 'left=' + strLeft + ',top=' + strTop + ',screenX=' + strLeft + ',screenY=' + strTop + ',width=' + intWidth + ',height=' + intHeight + ',' + strProperties); } function PopUp_OpenWindowControl(strUrl,intHeight,intWidth,objWindow,strProperties){ // Find middle of screen strLeft = (screen.width/2) - (intWidth/2); strTop = (screen.height/2) - (intHeight/2); PopUp_intWindow = PopUp_intWindow + 1 objWindow = window.open(strUrl, objWindow, 'left=' + strLeft + ',top=' + strTop + ',screenX=' + strLeft + ',screenY=' + strTop + ',width=' + intWidth + ',height=' + intHeight + ',' + strProperties); }