function check_contact_form()
{
	formname = window.document.ContactForm;

// check name
	formname.name.value = TrimString(formname.name.value);
	if (!checkTxtLen(formname.name,1,50,'Name'))
		return false;
	
// check email
	formname.email.value = TrimString(formname.email.value);
	if (!checkFeildval(formname.email,5,250,'Email',/^[a-zA-Z0-9][_a-zA-Z0-9\.\-]*@[a-zA-Z0-9][a-zA-Z0-9\-]+([\.]+[a-zA-Z0-9\-]+)*[a-zA-Z0-9]$/,'The contact Email format is wrong. Make sure you have not added a space at the end.'))
		return false;


// check company
	formname.Company.value = TrimString(formname.Company.value);
	if (!checkTxtLen(formname.Company,1,50,'Company Name'))
		return false;

// check message
	formname.Message.value = TrimString(formname.Message.value);
	if (!requiredFeild(formname.Message, 'Message'))
		return false;

return true;
}

