function checkform(){
if(document.myform.my_id.value.length<4||document.myform.my_id.value.length>12)
{alert("请按要求填写用户名！");
document.myform.my_id.focus();
return false;}
if(document.myform.my_id.value.indexOf("?")>-1 || document.myform.my_id.value.indexOf("\\")>-1 || document.myform.my_id.value.indexOf("/")>-1 || document.myform.my_id.value.indexOf(".")>-1 || document.myform.my_id.value.indexOf(",")>-1 || document.myform.my_id.value.indexOf("<")>-1 || document.myform.my_id.value.indexOf(">")>-1){
alert("您填写的用户名含有非法字符！");
document.myform.my_id.focus();
return false;}
if(document.myform.password.value.length<6 || document.myform.password.value.length>12)
{alert("请按要求填写密码！");
document.myform.password.focus();
return false;}
if(document.myform.password.value.indexOf("?")>-1 || document.myform.password.value.indexOf("\\")>-1 || document.myform.password.value.indexOf("/")>-1 || document.myform.password.value.indexOf(".")>-1 || document.myform.password.value.indexOf(",")>-1 || document.myform.password.value.indexOf("<")>-1 || document.myform.password.value.indexOf(">")>-1){
alert("您填写的密码含有非法字符！");
document.myform.password.focus();
return false;}
if(document.myform.password.value!=document.myform.password2.value){
alert("您两次输入的密码不一致！")
document.myform.password2.focus();
return false;}
if(document.myform.email.value.length==0){
alert("请输入E-Mail地址！")
document.myform.email.focus();
return false;} 
if(document.myform.email.value.indexOf("@")==-1){
alert("请输入正确的E-Mail地址！")
document.myform.email.focus();
return false;} 
if(document.myform.name.value.length==0){
alert("请输入姓名！")
document.myform.name.focus();
return false;}
if(document.myform.age.value.length==0){
alert("请输入年龄！")
document.myform.age.focus();
return false;}
if(document.myform.danwei.value.length==0){
alert("请输入工作单位！")
document.myform.danwei.focus();
return false;}    
if(document.myform.zhichen.value.length==0){
alert("请输入技术职称！")
document.myform.zhichen.focus();
return false;}
if(document.myform.zhuanye.value.length==0){
alert("请输入专业！")
document.myform.zhuanye.focus();
return false;}        
return true;
}