// JavaScript Document

document.write("<script type='text/javascript' src='js/zipcode.js'></script>");

function ValidateForm()
{				
	//alert("Amitava");
	CValidator("obj_13", "When will you be needing this service?");
	CheckRadio("14","Where this work going to be done?");
	///****Common validation *****//
	CValidator("txtname", "First Name");

	//pooja added below code  on jan 19 2010  start
	CValidator("lastname", "Last Name");
	//pooja end


	if(CValidator("txtmail", "Email")){
		emailCheck("txtmail");	
	}

	//pooja added below code  on jan 19 2010  start
	CValidator("besttimetocall", "Best Time To Call");
	//pooja end

	CValidator("txtarea", "Area Code");
	CValidator("txtphone", "Phone Number");
	CheckPhoneNumber("txtarea","txtphone");

	//pooja added below code  on jan 19 2010  start
	CValidator("address", "Address");
	//pooja end 

	CValidator("UnIDStates", "State");
	CValidator("UnIDCities", "City");
	CValidator("txteventzip", "Zip Code");


	zipcodevalue=zipcodeValidation(document.getElementById("txteventzip").value);
	if(zipcodevalue==false && document.getElementById("txteventzip").value!="")
	{
		ErrorText=ErrorText + "\n>> " + zipEroor;
	}
	
	return DisplayMessage();
}