function verifydata( incoming )
	{
		errorlog = ""
	
		// CHECK ALL THE FIELDS TO VERIFY THEIR EXISTENCE
		if ( incoming.name.value == "" )
			errorlog += "Please Enter Your Name.\n";

		if ( incoming.lname.value == "" )
			errorlog += "Please Enter Your Last Name.\n";

		if ( incoming.company.value == "" )
			errorlog += "Please Enter Company Name.\n";

		if ( incoming.phone.value == "" )
			errorlog += "Please Enter Your Phone No.\n";
			
		if ( (eval(vld_Email).test(incoming.email.value)==false) || incoming.email.value == "" )
			errorlog += "Please Enter Valid Email Address.\n";
			
		if ( incoming.service1.checked == false && incoming.service2.checked == false && incoming.service3.checked == false && incoming.service4.checked == false)
			errorlog += "Please Select the Service Required\n";

		if ( incoming.project.value == "none" )
			errorlog += "Please Select the Time Frame for the Project\n";
			
		if ( incoming.comments.value == "")
			errorlog += "Please Fill your Comments/Query.\n";

		if ( incoming.how.value == "" )
			errorlog += "Please tell how you find us?\n";
			
		if ( errorlog != "" )
		{
			alert (errorlog)
			return false;
		}
		else
		{	
			 return true;
		}
}


function trim1(inputString)
{
if (typeof inputString != "string")
{
return inputString;
}
var retValue = inputString;
var ch = retValue.substring(0, 1);
while (ch == " ")
{ // Check for spaces at the beginning of the string
retValue = retValue.substring(1, retValue.length);
ch = retValue.substring(0, 1);
}
ch = retValue.substring(retValue.length-1, retValue.length);
while (ch == " ")
{ // Check for spaces at the end of the string
retValue = retValue.substring(0, retValue.length-1);
ch = retValue.substring(retValue.length-1, retValue.length);
}
//while (retValue.indexOf(" ") != -1) { // Note that there are two
//spaces in the string - look for multiple spaces within the string
//retValue = retVal
//}
return retValue;
}
var vld_Email =
/^(([a-zA-Z0-9_\-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([a-zA-Z0-9\-]+\.)+))([a-zA-Z]{2,5}|[0-9]{1,3})(\]?))?$/;

