function validate(what)
{
	
	if (what.make.value=="")
	{
		alert("Please choose a Make");
		what.make.focus();
		return (false);
	}
	
}

function validatemore(what)
{
	what.idmodel.value=what.make.selectedIndex
}

function checkadv(what)
{
	if (what.county.value=="")
	{
  		alert("Please choose a County");
   		what.county.focus();
   		return (false);
 	}
	if (what.make.value=="")
	{
  		alert("Please choose a Make");
   		what.make.focus();
   		return (false);
 	}
}

function checkcontact(what)
{
	if (what.name.value=="")
	{
  		alert("Please insert the name");
   		what.name.focus();
   		return (false);
 	}
	if (what.email.value == "")
	{
		alert("Please insert the email");
	   	what.email.focus();
	   	return (false);
	}
	else
	{
		apos=what.email.value.indexOf("@");
		dotpos=what.email.value.lastIndexOf(".");
		lastpos=what.email.value.length-1;
		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
		{
			alert("Please insert a Valid Email Address");
		    what.email.focus();
		    return (false);
		}
	}

	if (what.county[what.county.selectedIndex].value=="")
	{
  		alert("Please choose a County");
   		what.county.focus();
   		return (false);
 	}
	if (what.enquiry_type.value=="")
	{
  		alert("Please choose a enquiry type");
   		what.enquiry_type.focus();
   		return (false);
 	}
	if (what.comment.value=="")
	{
  		alert("Please write a comment");
   		what.comment.focus();
   		return (false);
 	}
}
