// open a new centered browser window

// new window
function nw(l,w,h,name) {
	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 win2 = window.open(l,name,"status,height="+h+",width="+w+",resizable=yes,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight+" ,scrollbars=yes");
	win2.focus();
}

// new window now resize
function nwnr(l,w,h,name) {
	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 win2 = window.open(l,name,"status,height="+h+",width="+w+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight+" ,scrollbars=yes");
	win2.focus();
}

