function validateContactForm(opt)
{
	trimFields();
	if(obj.full_name.value == "")
	{
		alert("Please enter the Full Name.");
		obj.full_name.focus();
		return;
	}
	if(obj.email.value == "")
	{
		alert("Please enter the Email Address.");
		obj.email.focus();
		return;
	}
	if(!chkEmail(obj.email.value))
	{
		alert("Invalid Email Address!\nPlease review and correct it..");
		obj.email.focus();
		obj.email.select();
		return;
	}
	if(obj.phone.value == "")
	{
		alert("Please enter the Phone Number.");
		obj.phone.focus();
		return;
	}
	if(obj.message.value == "")
	{
		alert("Please enter the Message.");
		obj.message.focus();
		return;
	}
	if(obj.captcha1.value == "")
	{
		alert("Please enter the security code correctly");
		obj.captcha1.focus();
		return;
	}
	//All Okay??
	obj.action = "contact_us.php?opt="+opt;
	obj.submit();
}


function validateEquipForm(opt)
{
	trimFields();
	if(obje.equipment.value == "")
	{
		alert("Please enter the Equipment.");
		obje.equipment.focus();
		return;
	}
	if(obje.purchase_date.value == "")
	{
		alert("Please enter the Purchase Date.");
		obje.purchase_date.focus();
		return;
	}

	if(obje.serial_number.value == "")
	{
		alert("Please enter the Serial Number.");
		obje.serial_number.focus();
		return;
	}
	if(obje.fullname.value == "")
	{
		alert("Please enter the Full Name.");
		obje.fullname.focus();
		return;
	}
	if(obje.email_id.value == "")
	{
		alert("Please enter the Email Address.");
		obje.email_id.focus();
		return;
	}
	if(!chkEmail(obje.email_id.value))
	{
		alert("Invalid Email Address!\nPlease review and correct it..");
		obje.email_id.focus();
		obje.email_id.select();
		return;
	}
	if(obje.phone_no.value == "")
	{
		alert("Please enter the Phone Number.");
		obje.phone_no.focus();
		return;
	}
	if(obje.captcha2.value == "")
	{
		alert("Please enter the security code correctly");
		obje.captcha2.focus();
		return;
	}
	//All Okay??
	obje.action = "contact_us.php?opt="+opt;
	obje.submit();
}

