function checkSubmitStatus(theForm){
	if(theForm.myuseremail.value==''){
		theForm.myuseremail.focus();
		alert("请您输入邮箱地址！");
		return false;
	}
	if(!NoahWebJsExpTest(theForm.myuseremail.value,/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/))
		{
			alert("请输入一个有效的邮件地址！");
			theForm.myuseremail.focus(); 
			return (false); 
		}	
	if(theForm.myuserpassword.value==''){
		alert("请输入一个有效的密码！");
			theForm.myuserpassword.focus(); 
			return (false); 
	}
}

function checkSubmitStatus_1(theForm){
	if(theForm.myuseremailother.value==''){
		theForm.myuseremailother.focus();
		alert("请您输入邮箱地址！");
		return false;
	}
	if(!NoahWebJsExpTest(theForm.myuseremailother.value,/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/))
		{
			alert("请输入一个有效的邮件地址！");
			theForm.myuseremailother.focus(); 
			return (false); 
		}	
	if(theForm.myuserpasswordother.value==''){
		alert("请输入一个有效的密码！");
			theForm.myuserpasswordother.focus(); 
			return (false); 
	}
}

function checkSubmitStatus_Modue(theForm){
	if(document.getElementById('uemail').value==''){
		document.getElementById('uemail').focus();
		alert("请您输入邮箱地址！");
		return false;
	}
	if(!NoahWebJsExpTest(theForm.uemail.value,/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/))
		{
			alert("请输入一个有效的邮件地址！");
			theForm.uemail.focus(); 
			return (false); 
		}	

}
function NoahWebJsExpTest(str,strm){
	var re = strm;if(str=='' || str==null) return true;if (!re.test(str)){return false;}return true;}


function userRegisterCheck(theForm){

	if(document.getElementById('uname').value==''){
		document.getElementById('uname').focus();
		alert("请您输入名号！");
		return false;
	}
	if(document.getElementById('uemail').value==''){
		document.getElementById('uemail').focus();
		alert("请您输入邮箱地址！");
		return false;
	}
	if(!NoahWebJsExpTest(theForm.uemail.value,/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/))
		{
			alert("请输入一个有效的邮件地址！");
			theForm.uemail.focus(); 
			return (false); 
		}	
	if(document.getElementById('upassword').value==''){
		alert("请输入一个有效的密码！");
			theForm.upassword.focus(); 
			return (false); 
	}
	if(theForm.upassword.value!=theForm.upassword2.value){
		theForm.upassword.value='';
		theForm.upassword2.value='';
		theForm.upassword.focus();
		alert("二次输入密码不一致,请您重新输入！");
		return false;	
	}
	return true;
}

function checkUserRegisterEmail(theForm){
	if(document.getElementById('uemail').value!=''){
		document.getElementById('uemail2').value=document.getElementById('uemail').value;
		ajaxchangecontentbypost(this,'checkUserEmailCss','ucheckemailForm');
	}
}

function checkRegisterInfo(theForm){
	
}
function checkTrainingLeaver(theForm){
	if(theForm.TRAINING_LEAVER.value==''){
		alert("请您输入信息！");
			theForm.TRAINING_LEAVER.focus(); 
			return (false); 
	}	
}
function checkViewTitle(theForm){
	if(theForm.VIEWTITLE.value==''){
		alert("请您输入信息！");
			theForm.VIEWTITLE.focus(); 
			return (false); 
	}	
}
function mouseMoveUser(a){
	if(a==1){
	
		document.getElementById('student1').style.display='';
document.getElementById('student2').style.display='none';
document.getElementById('student3').style.display='none';
	}
	else if(a==2){
			document.getElementById('student2').style.display='';
document.getElementById('student1').style.display='none';
document.getElementById('student3').style.display='none';}
	else if(a==3){	document.getElementById('student3').style.display='';
document.getElementById('student2').style.display='none';
document.getElementById('student1').style.display='none';}
}
function mouseMoveUserP(a){
	if(a==1){
	
		document.getElementById('parent1').style.display='';
document.getElementById('parent2').style.display='none';
document.getElementById('parent3').style.display='none';
	}
	else if(a==2){
			document.getElementById('parent2').style.display='';
document.getElementById('parent1').style.display='none';
document.getElementById('parent3').style.display='none';}
	else if(a==3){	document.getElementById('parent3').style.display='';
document.getElementById('parent2').style.display='none';
document.getElementById('parent1').style.display='none';}
}