

function checkEnquiryForm(form)
	{
	form.enq_name.value = cDenyChars(form.enq_name.value, '"<>', false);
	form.enq_email.value = cAllowChars(form.enq_email.value, 'abcdefghijklmnopqrstuvwxyz0123456789-_.@', false);
	form.enq_tel.value = cAllowChars(form.enq_tel.value, "0123456789 -.()[]ext", false);
	form.enq_message.value = cDenyChars(form.enq_message.value, '"<>', false);
	form.enq_captchagiven.value = cDenyChars(form.enq_captchagiven.value, '"<>', false);
	if (form.enq_name.value.length < 1)
		{
		alert("You must enter your name."); 
		return false
		}
	if (!cEmailCheck(form.enq_email.value))
		{
		alert("You must enter a valid email address.");
		return false
		}
	if (enq_message.length < 1)
		{
		alert("You must enter a message for us."); 
		return false
		}
	if (form.enq_captchagiven.value.length < 1)
		{
		alert("You must enter the text in the image."); 
		return false
		}
	return true
	}


