function Check_Form_Validator2(theform){

if (theform.name.value=="") {
		alert('please input your name!');
		theform.name.focus();
		return false; 
	}

	if (theform.tel.value=="") {
		alert('please input your tel number!');
		theform.tel.focus();
		return false; 
	}

	 if (theform.tel.value.length < 6)
	  {
		alert('tel number at least 6 digit!');
		theform.tel.focus();
		return (false);
	  }
if (theform.tel.value.length > 15){



alert('tel number should less than 15 digit!!');

theform.tel.focus();

return (false);

}
	
	var filter=/^[0-9]{6,15}$/
	if (filter.test(theform.tel.value)==0){
		alert('please input legal tel number(6-15 digit£©!');
		theform.tel.focus();
		return false;
	}

	if (theform.email.value=="") {
		alert('please input your EMAIL!');
		theform.email.focus();
		return false; 
	}
	var filter=/^.+@.+\..{2,3}$/
	if (filter.test(theform.email.value)==0){
		alert('please input legal E-mail!');
		theform.email.focus();
		return false;
	}

	if (theform.username.value=="") {
		alert('please input username!');
		theform.username.focus();
		return false; 
	}
if (theform.username.value.length < 3)

{

alert('username at least 3 character!');

theform.username.focus();

return (false);

}
if (theform.username.value.length > 15){



alert('usernamer could not more than 15 character!');

theform.username.focus();

return (false);

}
	var filter=/[^!@#$%^&*()_+=|\,./\?'\"<>]{3,15}/
	if (filter.test(theform.username.value)==0){
		alert('please input the legal username!');
		theform.username.focus();
		return false;
	}

	 if (theform.password.value=="") {
		alert('please input the password!');
		theform.password.focus();
		return false; 
	}
	 if (theform.password.value.length < 6)
	  {
		alert('the password should more 6 digit!');
		theform.password.focus();
		return (false);
	  }
	if (theform.password.value.length > 20){
	  
		alert('should less than 20 character!');
		theform.password.focus();
		return (false);
	 }

	 if (theform.confirmPassword.value=="") {
		alert('please input the password again!');
		theform.confirmPassword.focus();
		return false; 
	}
	if (theform.confirmPassword.value.length < 6)
	  {
		alert('please input at least 6 digit!');
		theform.confirmPassword.focus();
		return (false);
	  }

	 if (theform.password.value!=theform.confirmPassword.value) {
		alert('the second time type password does not match!');
		theform.password.focus();
		return false; 
	}



}
