/* Function to validate the contact form*/
function validateContact()
{
	trimFields();
	if(obj.name.value == "")
	{
		alert("Please enter your Name.");
		obj.name.focus();
		return;
	}
	if(obj.email.value == "")
	{
		alert("Please enter your Email ID.");
		obj.email.focus();
		return;
	}
	if(!chkEmail(obj.email.value))
	{
		alert("Invalid Email ID!\nPlease review and correct it.");
		obj.email.focus();
		obj.email.select();
		return;
	}
	if(obj.message.value == "")
	{
		alert("Please enter your Message.");
		obj.message.focus();
		return;
	}
	if(obj.security_code.value == "")
	{
		alert("Please enter the security code correctly");
		obj.security_code.focus();
		return;
	}
	//All ok
	obj.action = "contact_us.html";
	obj.submit();
}
