function checkValidation()
{
 	email = document.getElementById("email").value;
	password = document.getElementById("password").value;
	if(document.getElementById("confirm_password"))
	{
		re_password = document.getElementById("confirm_password").value;
	}
	 var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
 //'For Mobile and  phone
 var reg_number = /^([0-9]*)$/;

		 
		 if(email == "") {
		  inlineMsg('email','Required Field',4);
		  return false;
		 }
		 
		 if(reg.test(email) == false) {
		   inlineMsg('email','Enter valid mail id',4);
		   return false;
		 }
		 if(password == "") {
		 inlineMsg('password','Required Field',4);
		 return false;
		 } 
		if(password.length <6) {
		 inlineMsg('password','Password minimum 6 character',4);
		 return false;
		 }
		 if(document.getElementById("confirm_password"))
		 {
		 if(re_password == "") {
		 inlineMsg('confirm_password','Required Field',4);
		 return false;
		 }
		  if(password != re_password){
			inlineMsg('confirm_password','password mismatch',4);
			return false;
		}
		 }
	return true;
}