<!--
function alphanum(myobject)
	{
	var theThing=document.getElementById(myobject);  
  	theThing.style.color='';
	var itsvalue = theThing.value;
	for(var j=0; j<itsvalue.length; j++)
		{
		  var theCharacter = itsvalue.charAt(j);
		  var hh = theCharacter.charCodeAt(0);
		  if((hh > 47 && hh<59) || (hh > 64 && hh<91) || (hh > 96 && hh<123) || (hh == 45) || (hh == 32))
			  {
			  }
			  else	{
			  theThing.style.color='red';
			  alert("Please enter only letters,\nnumbers and a dash for unknown\nparts of the reg number");
			  return false;
			  }
		}
	return true;
	}
function alphatext(myobject)
	{
	var theThing=document.getElementById(myobject);  
  	theThing.style.color='';
	var itsvalue = theThing.value;
	for(var j=0; j<itsvalue.length; j++)
		{
		  var theCharacter = itsvalue.charAt(j);
		  var hh = theCharacter.charCodeAt(0);
		  if((hh > 47 && hh<58) || (hh > 64 && hh<91) || (hh > 96 && hh<123) || (hh > 43 && hh < 47) || (hh == 32) || (hh == 10) || (hh == 13) || (hh == 39) || (hh == 34))
			  {
			  }
			  else	{
			  theThing.style.color='red';
			  alert("Only allowed:\nletters, numbers, full stops, quotes and commas\nNo other characters - sorry!");
			  return false;
			  }
		}
	return true;
	}

function finaltest()
	{
	var errormessage = "";
	var theMake = document.getElementById('make');
	theMake.style.color="";
	if (theMake.options[theMake.selectedIndex].value == "select")
		{
		theMake.style.color="red";
		errormessage = errormessage + "Please select Make\n";
		}
	var theColour = document.getElementById('colour');
	theColour.style.color="";
	if (theColour.options[theColour.selectedIndex].value == "select")
		{
		theColour.style.color="red";
		errormessage = errormessage + "Please select Colour\n";
		}
	var theOffence = document.getElementById('offence');
	theOffence.style.color="";
	if (theOffence.options[theOffence.selectedIndex].value == "select")
		{
		theOffence.style.color="red";
		errormessage = errormessage + "Please select Offence\n";
		}
	var theIncident = document.getElementById('incident');
	theIncident.style.color="";
	if (theIncident.value == "")
		{
		errormessage = errormessage + "Please describe what you saw\n";
		}
	var theDriver = document.getElementById('driver');
	theDriver.style.color="";
	if (theDriver.options[theDriver.selectedIndex].value == "select")
		{
		theDriver.style.color="red";
		errormessage = errormessage + "Please select Driver\n";
		}
	var theDay = document.getElementById('day');
	theDay.style.color="";
	if (theDay.options[theDay.selectedIndex].value == "select")
		{
		theDay.style.color="red";
		errormessage = errormessage + "Please select Day\n";
		}
	var theMonth = document.getElementById('month');
	theMonth.style.color="";
	if (theMonth.options[theMonth.selectedIndex].value == "select")
		{
		theMonth.style.color="red";
		errormessage = errormessage + "Please select Month\n";
		}
	var theYear = document.getElementById('year');
	theYear.style.color="";
	if (theYear.options[theYear.selectedIndex].value == "select")
		{
		theYear.style.color="red";
		errormessage = errormessage + "Please select Year\n";
		}
	var theHour = document.getElementById('hour');
	theHour.style.color="";
	if (theHour.options[theHour.selectedIndex].value == "select")
		{
		theHour.style.color="red";
		errormessage = errormessage + "Please select Hour\n";
		}
	var theMinute = document.getElementById('minute');
	theMinute.style.color="";
	if (theMinute.options[theMinute.selectedIndex].value == "select")
		{
		theMinute.style.color="red";
		errormessage = errormessage + "Please select Minutes\n";
		}
	var theAmpm = document.getElementById('ampm');
	theAmpm.style.color="";
	if (theAmpm.options[theAmpm.selectedIndex].value == "select")
		{
		theAmpm.style.color="red";
		errormessage = errormessage + "Please select AM/PM\n";
		}
	var theCounty = document.getElementById('county');
	theCounty.style.color="";
	if (theCounty.options[theCounty.selectedIndex].value == "select")
		{

		theCounty.style.color="red";
		errormessage = errormessage + "Please select County\n";
		}
	var theName = document.getElementById('name');
	theName.style.color="";
	if (theName.value == "")
		{
		errormessage = errormessage + "Please give yourself a name\n";
		}

	// any problems	
	if (errormessage != "")
		{
		window.alert(errormessage);
		return false;
		}
	}

-->
