function validate() {
document.frmhire.action = "/enquiry.asp";
document.frmhire.submit();
}


var mydate=new Date()
var theyear=mydate.getYear()
if (theyear < 1000)
theyear+=1900
var theday=mydate.getDay()
var themonth=mydate.getMonth()+1
if (themonth<10)
themonth="0"+themonth
var theday=mydate.getDate()
if (theday<10)
theday="0"+theday

var displayfirst=theday
var displaysecond=themonth
var displaythird=theyear

function validateForm() {
// *** Put Validation code here ****

	if (document.frmBooknow.FORENAME.value == "")
	{
		alert('Please enter the name');
		return;
	}
	
	if (document.frmBooknow.TELNUM.value == "")
	{
		alert('Please enter the Telephone no');
		return;
	}
		
		if (document.frmBooknow.EMAIL.value == "")
		{
			alert('Please enter the EMAIL');
			return;
		}

	if (document.frmBooknow.reg.value == "") 
	{
		alert("Please enter the vehicle");
		return;
	}

	document.frmBooknow.action = "email.asp";
	document.frmBooknow.submit();
}	


	
function submitform()
{
var myForm=document.enquiry

{
mNv=enquiry.txtName.value;
if (mNv==0) 
{
alert('Name is a required field.');
return;
}
{
mNv=enquiry.txtEmail.value;
if (mNv==0) 
{
alert('Email Address is a required field.');
return;
}
{
document.enquiry.submit();
}}}}
