
function CheckForm(){
	if(document.reg.ID.value==""){
		alert("Your name not is null");
		return false;
		document.reg.ID.foucs();
	}
	if(document.reg.ID.value.length<4){
		alert("The length of your name should be more than four");
		return false;
		document.reg.ID.foucs();
	}
	
	 if(document.reg.Password.value==""){
		alert("Password not is null");
		return false;
		document.reg.Password.foucs();	

	}

	if(document.reg.Password.value.length<4 || document.reg.Password.value.length>8)
					{
						alert("The length of passwords should be more than four less than eight£¡");
						return false;
						document.reg.Password.focus();
						
					}

	if(document.reg.repassword.value==""){
		alert("repassword not is null");
		return false;
		document.reg.repassword.foucs();
	}

	if(document.reg.Password.value != document.reg.repassword.value)
					{
						alert("Enter a password twice inconsistency£¡");
						return false;
						document.reg.repassword.focus();
						
					}

	             if(document.reg.mail.value=="")
					{
						alert("Email not is null£¡");
						return false;
						document.reg.mail.focus();
						
					}

					var reEmail = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
					if(!reEmail.test(document.reg.mail.value))
					{	
						alert("E-mail is not properly formatted.£¡");
						return false;
						document.reg.mail.focus();
					}

				if(document.reg.Check.value==""){
		alert("Word Verification not is null");
		return false;
		document.reg.Check.foucs();
	}	
return true;	
}


/////////////////////////////////////////////////////
function CheckForm2(){
	if(document.reg2.ID.value==""){
		alert("Your name not is null");
		return false;
		document.reg2.ID.foucs();
	}
	if(document.reg2.ID.value.length<4){
		alert("The length of your name should be more than four");
		return false;
		document.reg2.ID.foucs();
	}
	
	 if(document.reg2.Password.value==""){
		alert("Password not is null");
		return false;
		document.reg2.Password.foucs();	

	}

	if(document.reg2.Password.value.length<4 || document.reg2.Password.value.length>8)
					{
						alert("The length of passwords should be more than four less than eight£¡");
						return false;
						document.reg2.Password.focus();
						
					}

	if(document.reg2.repassword.value==""){
		alert("repassword not is null");
		return false;
		document.reg2.repassword.foucs();
	}

	if(document.reg2.Password.value != document.reg2.repassword.value)
					{
						alert("Enter a password twice inconsistency£¡");
						return false;
						document.reg2.repassword.focus();
						
					}

	             if(document.reg2.mail.value=="")
					{
						alert("Email not is null£¡");
						return false;
						document.reg2.mail.focus();
						
					}

					var reEmail = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
					if(!reEmail.test(document.reg2.mail.value))
					{	
						alert("E-mail is not properly formatted.£¡");
						return false;
						document.reg2.mail.focus();
					}

				if(document.reg2.Check.value==""){
		alert("Word Verification not is null");
		return false;
		document.reg2.Check.foucs();
	}	
return true;	
}

////////////////////////////////////////
function CheckForm3(){
	if(document.reg3.ID.value==""){
		alert("Your name not is null");
		return false;
		document.reg3.ID.foucs();
	}
	if(document.reg3.ID.value.length<4){
		alert("The length of your name should be more than four");
		return false;
		document.reg3.ID.foucs();
	}
	
	 if(document.reg3.Password.value==""){
		alert("Password not is null");
		return false;
		document.reg3.Password.foucs();	

	}

	if(document.reg3.Password.value.length<4 || document.reg3.Password.value.length>8)
					{
						alert("The length of passwords should be more than four less than eight£¡");
						return false;
						document.reg3.Password.focus();
						
					}

	if(document.reg3.repassword.value==""){
		alert("repassword not is null");
		return false;
		document.reg3.repassword.foucs();
	}

	if(document.reg3.Password.value != document.reg3.repassword.value)
					{
						alert("Enter a password twice inconsistency£¡");
						return false;
						document.reg3.repassword.focus();
						
					}

	             if(document.reg3.mail.value=="")
					{
						alert("Email not is null£¡");
						return false;
						document.reg3.mail.focus();
						
					}

					var reEmail = /\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*/;
					if(!reEmail.test(document.reg3.mail.value))
					{	
						alert("E-mail is not properly formatted.£¡");
						return false;
						document.reg3.mail.focus();
					}

				if(document.reg3.Check.value==""){
		alert("Word Verification not is null");
		return false;
		document.reg3.Check.foucs();
	}	
return true;	
}

////login.phpÒ³µÇÂ½ÑéÖ¤//////////////////////////////
function yz(){
	if(document.login.UID.value==""){
		alert("Your name not is null");
		return false;
		document.login.UID.foucs();

	}
	if(document.login.PWD.value==""){
		alert("Password not is null");
		return false;
		document.login.PWD.foucs();
	}
	if(document.login.PWD.value.length<4 || document.login.PWD.value.length>12){
		alert("Password requires a minimum of 4 characters.");
		return false;
		document.login.PWD.foucs();
	}
	if(document.login.check.value==""){
		alert("Word Verification not is null");
		return false;
		document.login.check.foucs();
	}
}



