<!--
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 theHate = document.getElementById('hate');
	if (theHate.value == "")
		{
		errormessage = errormessage + "Please describe your pet hate\n";
		}
	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 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;
		}
	}

-->