// JavaScript Document
	function CheckForm()
	{
		if(document.UserLogin.UserName.value=="")
		{
			alert("请输入用户名！");
			document.UserLogin.UserName.focus();
			return false;
		}
		if(document.UserLogin.Password.value == "")
		{
			alert("请输入密码！");
			document.UserLogin.Password.focus();
			return false;
		}
	}
	function openScript(url, width, height)
	{
		var Win = window.open(url,"UserControlPad",'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=yes,status=yes' );
	}

function openwindow( url, winName, width, height) 
{ 
xposition=0; yposition=0; 
if ((parseInt(navigator.appVersion) >= 4 )) 
{ 
xposition = (screen.width - width) / 2; 
yposition = (screen.height - height) / 2; 
} 
theproperty= "width=" + width + "," 
+ "height=" + height + "," 
+ "location=0," 
+ "menubar=0," 
+ "resizable=1," 
+ "scrollbars=1," 
+ "status=0," 
+ "titlebar=0," 
+ "toolbar=0," 
+ "hotkeys=0," 
+ "screenx=" + xposition + "," //仅适用于Netscape 
+ "screeny=" + yposition + "," //仅适用于Netscape 
+ "left=" + xposition + "," //IE 
+ "top=" + yposition; //IE 
window.open( url,winName,theproperty ); 
} 

