// JavaScript Document
function validatePropertyEnquiry()
{var doc = document.frmEnquiry;
 var ErrFound = "False";
 var test = "";
 var msg = "";
 if(doc.Name.value == "")
	{
		ErrFound = "True";
		msg = "Your name is missing\n\n";
	}
	else
	{doc.Name.value = trim(doc.Name.value);
		test = validateString(doc.Name.value);
		if(test!="")
		{
			ErrFound = "True";
			msg = validateString(doc.Name.value) + " in name field\n\n";
		}
	}

	if(doc.Email.value == "")
	{
		ErrFound = "True";
		msg = msg + "Email Address is missing\n\n";
	}
	else
	{doc.Email.value = trim(doc.Email.value);
		var emailMsg = emailCheck(doc.Email.value);
		if(emailMsg!="")
		{
			ErrFound = "True";
			msg = msg+emailMsg;
		}
	}
	
	if(ErrFound == "True")
	{
		alert(msg);
	}
	else
	{
		doc.submit();
	}
}

