//<![CDATA[
			function valForm(oForm){
			if(!checkDate('Start')	){alert('Past date specified - only future bookings can be accepted');oForm.StartDay.focus();return false;}
			var s_M 	= oForm.Males.selectedIndex; 				var n_M	= oForm.Males.options[s_M].value;
			var s_FM	= oForm.Females.selectedIndex;			var n_FM	= oForm.Females.options[s_FM].value;	
			var s_JM	= oForm.JuniorMales.selectedIndex;		var n_JM	= oForm.JuniorMales.options[s_JM].value;		
			var s_JF	= oForm.JuniorFemales.selectedIndex;	var n_JF	= oForm.JuniorFemales.options[s_JF].value;	
			if(n_M == 0 && n_FM == 0 && n_JM == 0 && n_JF == 0){alert('Too few people - there must be at least one person for a booking.');oForm.Males.focus();return false;}
			if((parseInt(n_M) + parseInt(n_FM) + parseInt(n_JM) + parseInt(n_JF)) > 9 ){alert ("Too many people - there is a maximum limit of 9 people");oForm.Males.focus();return false;}
			if((parseInt(n_M)+parseInt(n_FM)) == 0 && (parseInt(n_JM)+parseInt(n_JF)) >= 0){
				alert('The SYHA Child Protection policy requires at least one adult for every booking');
				return false;
			}
			if( (n_M >= 1 && n_JF >= 1 && n_FM ==0) || (n_FM >= 1 && n_JM >= 1 && n_M ==0) ){
				if(!confirm('The SYHA Child Protection policy prohibits Juniors staying in dormitory accommodation without Adult supervision. A private room may be available for you to book. If no private rooms are available, we cannot accept your booking.\n\nPress OK to proceed to the next step.')){
					return false;
				}
			}			
			return true;	}
//]]>