function getWindowWidth() {

    winW = (ie) ? screen.width : window.outerWidth;

	return winW;		
}


function getWindowHeight() {

    winH = (ie) ? screen.Availheight : window.outerHeight;

	return winH;		
}


function popIt(theFile,windowW,windowH){

bWidth = getWindowWidth();
bHeight = getWindowHeight();

bTop = (ie) ? 0 : this.window.screenY;
bLeft = (ie) ? 0 : this.window.screenX;

popLeft = ((bWidth - windowW)/2) + bLeft;
popTop = ((bHeight - windowH)/2) + bTop;

var popWindow = window.open(theFile,'pop','width='+windowW+',height='+windowH+',top='+popTop+',left='+popLeft+',scrollbars=no,resizable=no');

popWindow.focus();

}


function popen(theFile,theWindow,theAttributes){

var popWindow = window.open(theFile,theWindow,theAttributes);

popWindow.focus();

}
