function CheckEmail( a ) {
   var i = a.length;
   var temp = a.indexOf( '@' );
   var tempd = a.indexOf( '.' );
   if ( temp > 1 )
		{
		  if ( ( i - temp ) > 3 )
			   {
				 if ( ( i - tempd ) > 0 )
					  {
						return 1;
					  }
			   }
		}
   return 0;
}
	function check_null(){
		if (document.form3.mail.value==""){
			alert("The Msn or E-mail can't be empty!");
			return false;
		}
		if (CheckEmail(document.form3.mail.value)==""){
			alert("Be sure to fill in accurate email address, for the connection !");
			return false;
		}
		return true;
	}
	
	

	function checknull4(){
	alert('aa')
	}
	function checknull2(){
	if(document.repass2.answer.value==""){
	alert("Pls input answer!")
	return false;
	}
	return true;
	}
	function checknull3(){
	if(document.repass3.password1.value==""){
	alert("Pls input new password!")
	return false;
	}
	if(document.repass3.password2.value==""){
	alert("Pls input confirm new password!")
	return false;
	}
	if(document.repass3.password1.value!=document.repass3.password2.value){
	alert("New password is different to the comfirm password!")
	}
	return true;
	}
	
