function isValidEmail(strEmail){
  validRegExp = /^[^@]+@[^@]+.[a-z]{2,}$/i;
    if (strEmail.search(validRegExp) == -1) 
      return false;

    return true; 
}


function checkvalidation()
{	
	msg="";	
	
	
			if (document.getElementById("name").value=="")
	{         
			 msg="Please fill in your Name";
			 document.getElementById("name").style.backgroundColor="yellow";
			 alert(msg);
	    	 return(false);
	}

		if (document.getElementById("company").value=="")
	{         
			 msg="Please fill in your Company Name";
			 document.getElementById("company").style.backgroundColor="yellow";
			 alert(msg);
	    	 return(false);
	}      
	
			if (document.getElementById("email").value=="")
	{         
			 msg="Please fill in your Email Address";
			 document.getElementById("email").style.backgroundColor="yellow";
			 alert(msg);
	    	 return(false);
	}   

if (document.getElementById("product").value=="")
	{         
			 msg="Please select our product in list";
			 document.getElementById("product").style.backgroundColor="yellow";
			 alert(msg);
	    	 return(false);
	}   

	
 if (document.getElementById("port").value=="")
	{         
			 msg="Please select your port";
			 document.getElementById("port").style.backgroundColor="Yellow";
			 alert(msg);
	    	 return(false);
	}  
	

 if (document.getElementById("birth_day").value=="")
	{         
			 msg="Please Fill in your birth Day";
			 document.getElementById("birth_day").style.backgroundColor="#FF0000";
			 alert(msg);
	    	 return(false);
	}  

 if (document.getElementById("birth_year").value=="")
	{         
			 msg="Please Fill in your birth Year";
			 document.getElementById("birth_year").style.backgroundColor="#FF0000";
			 alert(msg);
	    	 return(false);
	}  

 if (document.getElementById("comments").value=="")
	{         
			 msg="Please Fill in Comments";
			 document.getElementById("comments").style.backgroundColor="#919191";
			 alert(msg);
	    	 return(false);
	}  

if (document.getElementById("name1").value=="" && document.getElementById("mobile").value=="")
	{         
			 msg="Please fill your contact name";
			 document.getElementById("name1").style.backgroundColor="#FF0000";
			 alert(msg);
	    	 return(false);
	}

	if (document.getElementById("email2").value=="")
	{         
			 msg="Please fill in your Email";
			 document.getElementById("email2").style.backgroundColor="#FF0000";
			 alert(msg);
	    	 return(false);
	}  
	

	
	if (!isValidEmail(document.getElementById("email1").value))
	{         
			 msg="Please provide us a valid email address";
			 document.getElementById("email1").style.backgroundColor="#FF0000";
			 alert(msg);
	    	 return(false);
	}

	if (document.getElementById("email2").value=="")
	{         
			 msg="Please fill in Confirmation Email";
			 document.getElementById("email2").style.backgroundColor="#FF0000";
			 alert(msg);
	    	 return(false);
	}
		
	if (document.getElementById("email2").value!=document.getElementById("email1").value)
	{         
			 msg="Email address and confirmation email adresses are not match";
			 document.getElementById("email2").style.backgroundColor="#FF0000";
			 alert(msg);
	    	 return(false);
	}
	
	
	

	
}
