// To check if all the fields in the form are correctly filled.
// Validation - Reports if all the fields are filled out correctly

function checksearchrt()
{
 if (testformsearchrt()) return true;
 else return false;	
}		

function testformsearchrt()
{

 var model = document.searchrt.model.selectedIndex;
 if (document.searchrt.model.options[model].value == '')
 {
  alert('Please select the vehicle make you are searching for');       				
  document.searchrt.model.focus();
  return false;
 }

 var place = document.searchrt.place.selectedIndex;
 if (document.searchrt.place.options[place].value == '')
 {
  alert('Please select the city / town where you need to rent from');       				
  document.searchrt.place.focus();
  return false;
 }
	
 return true;
}

