// smallpopup.js: small popup window for digit height

/*
	Created 6/20/03
	DATEL (datel.com)
*/

// Open and define popup window

function openSmWin(url){
var MyScreenWidth;
var MyScreenHeight;
//gets top and left positions based on user's resolution so popup window is centered.
MyScreenWidth = (window.screen.width/2) - (122 + 10); //half the screen width minus half the new window width (plus 5 pixel borders).
MyScreenHeight = (window.screen.height/2) - (27 + 50); //half the screen height minus half the new window height (plus title and status bars).
var win1 = window.open(url,"thewindow","height=135,width=250,resizable=false,left=" + MyScreenWidth + ",top=" + MyScreenHeight + ",screenX=" + MyScreenWidth + ",screenY=" + MyScreenHeight + ",scrollbars=no");
// win1.focus();
}


