function clicklogin(){
	
	var email = document.getElementById("email").value;
	var password = document.getElementById("password").value;
	var sReg = /[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/;
	
	if(email.length == 0){
		document.getElementById("loginerror").innerHTML="<font style='font-size: 13px' color='red'>Error: Sorry, email can't be null !</font>"
		document.getElementById("email").focus();
		return false;
	}
	if (!sReg.test(email)){		
		document.getElementById("loginerror").innerHTML="<font style='font-size: 13px' color='red'>Error: Sorry, there is no match for that email !</font>"
		document.getElementById("email").focus();
		return false;
	}
	if(password.length == 0){	
		document.getElementById("loginerror").innerHTML="<font style='font-size: 13px' color='red'>Error: Sorry, password can't be null !</font>"
		document.getElementById("password").focus();
		return false;
	}
	return true;
}

function checkemail(){
	
	var email = document.getElementById("email").value;
	
	var sReg = /[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/;
	
	if(email.length == 0){
		document.getElementById("info").innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;<font style='font-size: 13px' color='red'>Error: sorry, email can't be null !</font>"
		document.getElementById("email").focus();
		return false;
	}
	if (!sReg.test(email)){		
		document.getElementById("info").innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;<font style='font-size: 13px' color='red'>Error: sorry, there is no match for that email !</font>"
		document.getElementById("email").focus();
		return false;
	}
	return true;
}

function checkuwant(){
	var email = document.getElementById("uemail").value;
	var phone = document.getElementById("uphone").value;	
	var content = document.getElementById("ucontent").value;
	var sReg = /[_a-zA-Z\d\-\.]+@[_a-zA-Z\d\-]+(\.[_a-zA-Z\d\-]+)+$/;	
	if(email.length == 0){
		document.getElementById("uinfo").innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;<font style='font-size: 13px' color='red'>Error: sorry, email can't be null !</font>"
		document.getElementById("uemail").focus();
		return false;
	}
	if (!sReg.test(email)){		
		document.getElementById("uinfo").innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;<font style='font-size: 13px' color='red'>Error: sorry, there is no match for that email !</font>"
		document.getElementById("uemail").focus();
		return false;
	}
	if(phone.length == 0){
		document.getElementById("uinfo").innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;<font style='font-size: 13px' color='red'>Error: sorry, phone can't be null !</font>"
		document.getElementById("uphone").focus();
		return false;
	}
	if(content.length == 0){
		document.getElementById("uinfo").innerHTML="&nbsp;&nbsp;&nbsp;&nbsp;<font style='font-size: 13px' color='red'>Error: sorry, describe can't be null !</font>"
		document.getElementById("ucontent").focus();
		return false;
	}
	return true;
}