// JavaScript Document

function validateForm()



{



	



	var name = trim(document.getElementById('name').value);	



	var phone = trim(document.getElementById('phone').value);



	var emailid = trim(document.getElementById('email').value);



	var comment = trim(document.getElementById('comment').value);

	

	//var disclaimer = document.getElementById('disclaimer').value;



	



	var phoneRegx=/^[\d]*$/;



	var emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;



	//alert(disclaimer);



	if(name=='') {



		 inlineMsg('name','Please Enter Name',2);



    return false;



	}



	if(phone=='') {



		



		inlineMsg('phone','Please Enter Phone',2);



		



		return false;



	}



	



	

	if(emailid=='') {



		



		inlineMsg('email','Please Enter Email Id',2);



		



		return false;



	}



	



	if(!(emailid.match(emailRegex)) && emailid!="") {



		inlineMsg('email','Please Enter Valid Email Id',2);



		return false;



	}



	if(comment=='') {



		 inlineMsg('comment','Please Enter Comment',2);



    return false;



	}

	return true;



	}



















// JavaScript Document

function  checkName()



{



	var name = trim(document.getElementById('name').value);	



	//alert(disclaimer);

	if(name=='') {



		 inlineMsg('name','Please Enter Name',2);



    return false;



	}

}







function  checkPhone(){





var phone = trim(document.getElementById('phone').value);



	

	if(phone=='') {



		



		inlineMsg('phone','Please Enter Phone',2);



		



		return false;



	}



}





function  checkEmail(){

var emailid = trim(document.getElementById('email').value);



	



	var emailRegex = /^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/;





	

	if(emailid=='') {



		



		inlineMsg('email','Please Enter  Email Id',2);



		



		return false;



	}



	



	if(!(emailid.match(emailRegex)) && emailid!="") {



		inlineMsg('email','Please Enter Valid Email Id',2);



		return false;



	}

}





function  checkComment(){

var comment = trim(document.getElementById('comment').value);

	

	if(comment=='') {



		 inlineMsg('comment','Please Enter Comment',2);



    return false;



	}

	return true;



	}


