<!--
function  isEnglish(name) 
{  
if(name.length  ==  0)
return  false;
for(i  =  0;  i  <  name.length;  i++)  {  
if(name.charCodeAt(i)  >  128)
return  false;
}
return  true;
}
//10. 判断用户名是否为数字字母下滑线 
//---------------------------------------      
function notchinese(str){ 
var reg=/[^A-Za-z0-9_]/g 
    if (reg.test(str)){ 
    return (false); 
    }else{ 
return(true);    } 
} 

//判断两个值是否相等
//常用于密码验证中
function issame(str1,str2)  
{  
if (str1==str2)  

{return(true);}  
else  
{return(false);}  
}  
//  字符串包含测试函数
function  contain(str,charset)
{  
var  i;
for(i=0;i<charset.length;i++)
if(str.indexOf(charset.charAt(i))>=0)
return  true;
return  false;
}

function fucCheckTEL(TEL)     
{     
var i,j,strTemp;     
strTemp="0123456789-()# ";     
for (i=0;i<TEL.length;i++)     
{     
j=strTemp.indexOf(TEL.charAt(i));     
if (j==-1)     
{     
//说明有字符不合法     
return 0;     
}     
}     
//说明合法     
return 1;     
}    

//会员注册表单验证
function checkform()
{  
	if  (document.myform.username.value.length  ==  0)
	{  
		alert("请输入您用户名!");
		document.myform.username.focus();
		return  false;
	}
	if (contain(document.myform.username.value,"%\(\)><"))
	{  
		alert("输入了非法用户名");
		document.myform.username.focus();
		return  false;
	}
	if  (document.myform.username.value.length  >  12  ||  document.myform.username.value.length  <  1)
	{  
		alert("用户名长度不得超过12 小于1!");
		document.myform.username.focus();
		return  false;
	}
	if  (document.myform.userpwd.value.length  ==  0)
	{  
		alert("请输入您密码!");
		document.myform.userpwd.focus();
		return  false;
	}
	if  (document.myform.userpwdtwo.value.length  ==  0)
	{  
		alert("请输入确认密码!");
		document.myform.userpwdtwo.focus();
		return  false;
	}
	if (document.myform.userpwd.value != document.myform.userpwdtwo.value) 
	{
		alert("输入俩次密码不一致,请重新输入!");
		document.myform.userpwdtwo.value = '';
		document.myform.userpwdtwo.focus();
		return false;
	}
	if  (document.myform.question.value.length  ==  0)
	{  
		alert("请输入密码保护问题!");
		document.myform.question.focus();
		return  false;
	}
	if  (document.myform.answer.value.length  ==  0)
	{  
		alert("请输入密码保护答案!");
		document.myform.answer.focus();
		return  false;
	}
	if  (document.myform.realname.value.length  ==  0)
	{  
		alert("请输入真实姓名!");
		document.myform.realname.focus();
		return  false;
	}
	if  (document.myform.age.value.length  ==  0)
	{  
		alert("请输入年龄!");
		document.myform.age.focus();
		return  false;
	}
	if  (document.myform.address.value.length  ==  0)
	{  
		alert("请输入用户地址!");
		document.myform.address.focus();
		return  false;
	}
	if  (document.myform.postcode.value.length  ==  0)
	{  
		alert("请输入用户邮编!");
		document.myform.postcode.focus();
		return  false;
	}
	if  (document.myform.tel.value.length  ==  0)
	{  
		alert("请输入用户电话!");
		document.myform.tel.focus();
		return  false;
	}
	/*if (fucCheckTEL(document.myform.tel.value))
	{  
		alert("用户电话不合法!");
		document.myform.tel.focus();
		return  false;
	}*/
	if  (document.myform.email.value ==  '')
	{  
		alert("请输入电子邮件!");
		document.myform.email.focus();
		return  false;
	}
	if  (document.myform.email.value !=  '')
	{
		if(!/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/.test(document.myform.email.value)) 
		{ 
			alert("mail格式不对，请重新输入"); 
			document.myform.email.value =  '';
			document.myform.email.focus(); 
			return false; 
		} 
	}
} 
-->
