

function openfenst(doc,h,w)

{

var iMyWidth;
var iMyHeight;
//gets top and left positions based on user's resolution so hint window is centered.

iMyWidth = (window.screen.width/2) - (w/2 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
iMyHeight = (window.screen.height/2) - (h/2 + 50); //half the screen height minus half the new window height (plus title and status bars).
var fenst = window.open(doc,"Window","height="+ h + ",width=" + w + ",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=yes");
fenst.focus();

}
