// JavaScript Document
//window.onerror=new Function ("return true")

function inCell(cell, newcolor) {
	if (!cell.contains(event.fromElement)) {
		cell.bgColor = newcolor;
	}
}

function outCell(cell, newcolor) {
	if (!cell.contains(event.toElement)) {
		cell.bgColor = newcolor;
	}
}

function highlightButton(s) {
	if ("INPUT"==event.srcElement.tagName) {
		event.srcElement.className=s;
	}
}

function validate() {
   if (document.ReqReserv.Name.value < 1) { 
      	window.alert("You must enter your name.");
      	return false;
	}
   if (document.ReqReserv.Telephone.value < 1) { 
      	window.alert("You must enter your telephone number.");
      	return false;
	}
   if (document.ReqReserv.Email.value < 1) { 
      	window.alert("You must enter your e-mail address.");
      	return false;
	}
   if (document.ReqReserv.DateRequested.value < 1) { 
      	window.alert("You must enter your requested date of service.");
      	return false;
	}
   if (document.ReqReserv.FromTime.value < 1) { 
      	window.alert("You must enter the start time requested.");
      	return false;
	}
   if (document.ReqReserv.ToTime.value < 1) { 
      	window.alert("You must enter the end time requested.");
      	return false;
	}
   if (document.ReqReserv.Pickup.value < 1) { 
      	window.alert("You must enter a pick-up location.");
      	return false;
	}
   if (document.ReqReserv.Dropoff.value < 1) { 
      	window.alert("You must enter a drop-off location.");
      	return false;
	}
   if (document.ReqReserv.Car.value < 1) { 
      	window.alert("Please select which car you prefer.");
      	return false;
	}
   if (document.ReqReserv.FoundSite.value < 1) { 
      	window.alert("Please tell us how you found our web site.");
      	return false;
	}
}
