// JavaScript Document
function ckNamea3()
	{
		var name=document.getElementById("UserInfoControl1_txtun1").value;
		if(name.length<2 || name.length>15)
		{
			alert("用户名必须在2-15位之间");
			return false;
		}else{
			tChk = /^[^ \s~!@#$%\^\&\*\(\)_\+|\-\=\/\?:;'"\[\{\]\}`\.>,<\\]+$/;
			if(!tChk.exec(name)){
				alert("请输入正确的用户名！不得含有特殊符号！");
				return false;
			}else{
				return true;
			}
		}
		
	}
function ckPass3(){
		var pw=document.getElementById("UserInfoControl1_txtups").value;
		if(pw.length==0 ||pw.length<6  ){
			alert("密码至少六位!");
			return false;
		}
		return true;
	}
	function ckNameaU3()
	{
		var name=document.getElementById("Pageleft1_TextBox1").value;
		if(name.length<2 || name.length>15)
		{
			alert("用户名必须在2-15位之间");
			return false;
		}else{
			tChk = /^[^ \s~!@#$%\^\&\*\(\)_\+|\-\=\/\?:;'"\[\{\]\}`\.>,<\\]+$/;
			if(!tChk.exec(name)){
				alert("请输入正确的用户名！不得含有特殊符号！");
				return false;
			}else{
				return true;
			}
		}
		
	}
function ckPassU3(){
		var pw=document.getElementById("Pageleft1_TextBox2").value;
		if(pw.length==0 ||pw.length<6  ){
			alert("密码至少六位!");
			return false;
		}
		return true;
	}
function ckall(){
	if(ckNamea3()&&ckPass3()){
		return true;
	}else{
		return false;
	}
}
function ckallU1(){
	if(ckNameaU3()&&ckPassU3()){
		return true;
	}else{
		return false;
	}
}
	function ckNameas()
	{
		var name=document.getElementById("TextBox1").value;
		if(name.length<2 || name.length>15)
		{
			alert("用户名必须在2-15位之间");
			return false;
		}else{
			tChk = /^[^ \s~!@#$%\^\&\*\(\)_\+|\-\=\/\?:;'"\[\{\]\}`\.>,<\\]+$/;
			if(!tChk.exec(name)){
				alert("请输入正确的用户名！不得含有特殊符号！");
				return false;
			}else{
				return true;
			}
		}
		
	}
	function ckPasss(){
		var pw=document.getElementById("TextBox2").value;
		if(pw.length==0 ||pw.length<6  ){
			alert("密码至少六位!");
			return false;
		}
		return true;
	}
	function ckall2(){
	if(ckNameas()&&ckPasss()){
		return true;
	}else{
		return false;
	}
}
