<!--
//Author: Krasimir Makaveev | kmakaveev@yahoo.com | 2003
//
//This script opens a new blank window in the center of the screen. First we must solve really important problem...
//
//For NN the position of the browser's window on the screen depends on "screenX" and "screenY" attributes.
//For IE the position of the browser's window on the screen depends on "top" and "left" attributes.
//Using a "browser-detection"-like function, we first detect the browser and then open the window with the appropriate for the browser attributes.
//So...

function winOpen(winname,w,h)
{
	var sw = screen.width;
	var sh = screen.height;
	
	//Simple mathematical transformations
	var sh_off = (sw - w)/2;
	var sw_off = (sh - h)/2;
	
	if(navigator.appName.indexOf("MSIE"))
	{
		ext_win = window.open("",winname,"toolbar=no,copyhistory=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,top="+sw_off+",left="+sh_off+",width="+w+",height="+h+"");
		ext_win.focus();
	}
	else
	{
		ext_win = window.open("",winname,"toolbar=no,copyhistory=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizeable=no,screenX="+sw_off+",screenY="+sh_off+",width="+w+",height="+h+"");
		ext_win.focus();
	}
}

//-->
