	/****************************************************************/
	/*****   CREATED BY	 : Dileep Kumar  			 			*****/
	/*****   CREATION DATE  : 30 Jan 2009		 			    *****/
	/*****											 			*****/
	/*****    MODIFIED  BY   : 					     			*****/
	/*****    MODIFIED ON	 : 							 		*****/
	/*****											 			*****/
	/*****   CODE BRIEFING : contain the JS functions to 		*****/
	/*****					validate the contact us form		*****/
	/*****   COMPANY		: Chetu India Pvt Ltd.	 			*****/
	/*****											 			*****/
	/****************************************************************/
/*
* Company: Chetu Inc;
* Created By: Dileep Kumar;
* Created On: 30 Jan 2009;
* Description: function is used validate the email ID;
*/
function is_email(email){
	if(!email.match(/^[A-Za-z0-9\._\-+]+@[A-Za-z0-9_\-+]+(\.[A-Za-z0-9_\-+]+)+$/))
		return false;
	return true;
}
/*
* Company: Chetu Inc;
* Created By: Dileep Kumar;
* Created On: 30 Jan 2009;
* Description: function is used validate the Number;
*/
function is_validPhone(number){
	if(!number.match(/^[0-9-]+$/))
		return false;
	return true;
}
/*
* Company: Chetu Inc;
* Created By: Dileep Kumar;
* Created On: 30 Jan 2009;
* Description: function is used validate the contact us form;
*/
function validateContact(){
	var name = document.frmcontact.name.value;
	var phone = document.frmcontact.phone.value;
	var email = document.frmcontact.email.value;
	if(name == ''){
		alert("Please enter Name!");
		document.frmcontact.name.focus();
		return false;
	}
	if(!is_validPhone(phone)){
		alert("Please enter valid Phone!");
		document.frmcontact.phone.focus();
		return false;
	}
	if(!is_email(email)){
		alert("Please enter valid Email!");
		email = document.frmcontact.email.focus();
		return false;
	}
	return true;
}