<!--
function checkform(theForm){
var filter=/^\s*[A-Za-z0-9]{3,16}\s*$/;
if (!filter.test(theForm.username.value)) { 
 alert("用户名填写不正确,请重新填写！\n\n可使用的字符为（A-Z a-z以及0-9）\n\n长度不小于4个字符，不超过16个字符，注意不要使用空格。"); 
 theForm.username.focus();
 return false; 
} 
if (theForm.password.value=="" || theForm.password.value.length<6 || theForm.password.value.length>16){ 
 alert("密码填写不正确,请重新填写！\n\n可使用任意字符\n\n长度不小于6个字符，不超过16个字符，注意不要使用空格。"); 
 theForm.password.focus();
 return false; 
} 
var filter=/^\s*[0-9]{6}\s*$/;
if (!filter.test(theForm.CheckCode.value)){ 
 alert("验证码填写不正确,请重新填写！\n\n可使用的字符为（ 0-9 ）\n\n长度为必须为6个字符，注意不要使用空格。"); 
 theForm.CheckCode.focus();
 return false; 
} 
return true;
}

function CheckLogining(theForm){
var LErr = false;
var filter=/^\s*[A-Za-z0-9]{4,16}\s*$/;
if (!filter.test(theForm.username.value)) { 
 alert("用户名填写不正确,请重新填写！\n\n可使用的字符为（A-Z a-z以及0-9）\n\n长度不小于4个字符，不超过16个字符，注意不要使用空格。"); 
 theForm.username.focus();
 LErr = true;
 return false;
} 
if (theForm.password.value=="" || theForm.password.value.length<6 || theForm.password.value.length>16){ 
 alert("密码填写不正确,请重新填写！\n\n可使用任意字符\n\n长度不小于6个字符，不超过16个字符，注意不要使用空格。"); 
 theForm.password.focus();
 LErr = true; 
 return false;
} 
if(theForm.CheckCode.value==""){
 window.alert("请输入验证码！");
 theForm.CheckCode.focus();
 LErr = true ;
 return false;
 }
var filter=/^\s*[0-9]{6}\s*$/;
if (!filter.test(theForm.CheckCode.value)){ 
 alert("验证码填写不正确,请重新填写！\n\n可使用的字符为（0-9 ）\n\n长度为必须为6个字符，注意不要使用空格。"); 
 theForm.CheckCode.focus();
 LErr = true; 
 return false;
} 
if(LErr == false){
   Logining(theForm.username.value,theForm.password.value,theForm.CheckCode.value);
}

}
//-->