var alertstringnumadultsninos='Please select at least one person';
var alertstringdate='Please select your date';
var alertstringschedule='Please select your schedule';
var alertstringmaxp='A maximum of 5 kids per adult is allowed';

function validateform(thisform) {	
  
  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;
  }
  var numerosumado=parseInt(thisform.tourchild.value,10);
  var compara=parseInt(thisform.touradults.value,10)*5;
    
	  if (numerosumado>compara){
		  alert (alertstringmaxp);
		  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;
}