// JavaScript Document
function ckNamet()
	{
		var name=document.getElementById("Top1_TextBox1").value;
		//alert(name.length);
		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 ckPasst(){
		var pw=document.getElementById("Top1_TextBox2").value;
		if(pw.length<6|| pw.length>15){
			alert("密码在6-15个字符以内");
			return false;
		}
		//alert("密码填写正确","ckpw");
		return true;
	}
function logint(){
	if(ckNamet()&&ckPasst()){
		return true;
	}else{
		return false;
	}
}
