function check_available_hours()
{
// var xmlHttp;
// try
//   {
//   // Firefox, Opera 8.0+, Safari
//   xmlHttp=new XMLHttpRequest();
//   }
// catch (e)
//   {
//   // Internet Explorer
//   try
//     {
//     xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
//     }
//   catch (e)
//     {
//     try
//       {
//       xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
//       }
//     catch (e)
//       {
//       alert("Your browser does not support AJAX!");
//       return false;
//       }
//     }
//   }
//   xmlHttp.onreadystatechange=function()
//     {
//     if(xmlHttp.readyState==4)
//       {
//       	//document.mot_sd.test.innerHTML=xmlHttp.responseText;
// 		document.save_date_form.msd_time.innerHTML=xmlHttp.responseText;
//       }
//     }
//   xmlHttp.open("GET","hours.php?date="+document.save_date_form.msd_date.value,true);
//   xmlHttp.send(null);
var url = 'hours.php?date=' + encodeURIComponent($('msd_date').value);
new Ajax.Request(url, {
  method: 'get'
//   onSuccess: function(transport) {
//       // yada yada yada
//   }
});

}

function check_mot_dates(form)
{
	if ( form.date.value.length < 1 || form.email.value.length < 1 ||
		form.phone.value < 1 || form.f_name.value < 1 || form.l_name.value < 1 || 
		form.make.value < 1 || form.model.value < 1 || form.registration.value < 1 ||
		form.time.selectedIndex == 0 || form.time.selectedIndex.value==0 )
	{
		alert('Please fill in all fields!');
		return false;
	}
	else
		return true;
}