var alertstringtour='Please select your program';
var alertstringnumadultsninos='Please select at least one person';
var alertstringdate='Please select your date';
var alertstringschedule='Please select your schedule';

function validateform(thisform) {	
  if (thisform.tourcode=='') {
   alert(alertstringtour);
   return false;
  }
  if (thisform.touradults==null && thisform.tourchild==null) {
   alert(alertstringnumadultsninos);
   return false;
  }
   if (thisform.touradults.value=='' && thisform.tourchild.value=='') {
   alert(alertstringnumadultsninos);
   return false;
  }
  if (thisform.touradults.value==0 && thisform.tourchild.value==0) {
   alert(alertstringnumadultsninos);
   return false;
  }   
  if (thisform.tourdate==null || thisform.tourdate.value=='') {
   alert(alertstringdate);
   return false;
  }
  if (thisform.toursched==null || thisform.toursched.value=='') {
   alert(alertstringschedule);
   return false;
  }	
 return true;
}
