/****************************************
'* 功能：打开窗口
'* 名称：Window_Open(URL,w,h,l,t)
'* 输入：URL,w,h,l,t
'* 输出：窗口句柄
'****************************************/
function Window_Open(URL,w,h,l,t)
{
	window.open(URL,"_blank","copyHistory=1,directories=0,location=0,menubar=0,resizable=0,scrollbars=1,status=0,toolbar=0,width="+w+",height="+h+",top="+(t=="center"?((screen.height-h)/2):t)+",left="+(l=="center"?((screen.width-w)/2):l));
}

function WO_1(URL,w,h,l,t)
{
	window.open(URL,"_blank","copyHistory=1,directories=0,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0,width="+w+",height="+h+",top="+(t=="center"?((screen.height-h)/2):t)+",left="+(l=="center"?((screen.width-w)/2):l));
}

function WO_2(URL,w,h,l,t)
{
	window.open(URL,"_blank","copyHistory=1,directories=0,location=0,menubar=0,resizable=1,scrollbars=1,status=0,toolbar=0,width="+w+",height="+h+",top="+(t=="center"?((screen.height-h)/2):t)+",left="+(l=="center"?((screen.width-w)/2):l));
}
/****************************************
'* 功能：检查用户输入数据的长度
'* 名称：CheckLength(str,min,max,word)
'* 输入：str,min,max,word
'* 输出：true/false
'****************************************/
function CheckLength(str,min,max,word)
{
	if(str.length<min||str.length>max)
	{
		alert(word+"输入的长度不对！")
		return false;
	}
	else
	{
		return true;
	}
}