//<!--

// The below function is used because when using a 'select' box on a form, you
// cannot use the field.select() method. If you do, 'true' is always returned.
function checkNone(field, msg)
{
	  var value = field.value;

	  if (!(value=="none")) { // if syntax is valid
		return true;
	  }
	  alert(msg); 
	  field.focus();

	  return false;
}

function validSearch(form) 
{

	if(	!checkNone(form.countryID, "Please select a country to search")  )
	{
		return false;
	}
	

	if((form.county.value =="")&&(form.town.value ==""))
	{
		alert("Please fill out one more box.\nYour results will return all hire shops for that country.");
		return false;
	}

	return true;

}
// -->