function checkform ( form )
{
 	if (form.name.value == "") {
        alert( "Please enter your Name!" );
        form.name.focus();
        return false ;
    }
		if (form.country.value == "") {
        alert( "Please enter your Country!" );
        form.country.focus();
        return false ;
    }
	if (form.email_address.value == "") {
        alert( "Please enter your email address!" );
        form.email_address.focus();
        return false ;
    }
	return true ;
}

function chkMonth(dd,mm,yy)
{	
endDate=0; opt_array= new Array;
zIndex=0;i=0;k=0;

if (isNav4){
		oDay=document.layers[zIndex].document.frm_reservation[dd]
		oMonth=document.layers[zIndex].document.frm_reservation[mm]
		oYear=document.layers[zIndex].document.frm_reservation[yy]
	
} else {	
		oDay=document.frm_reservation[dd]
		oMonth=document.frm_reservation[mm]
		oYear=document.frm_reservation[yy]
}

dayVal=oDay.options[oDay.selectedIndex].text
monthVal=oDay.options[oMonth.selectedIndex].text
yearVal=oDay.options[oYear.selectedIndex].text

switch(monthVal)
   {
   	 case "1" : endDate="31"; break;
	 case "2" : if(yearVal % 4 == 0){
	               endDate="29"; break;   
                }else{
	               endDate="28"; break;   
	            }
	 case "3" : endDate="31"; break;
	 case "4" : endDate="30"; break;
	 case "5" : endDate="31"; break;	 	 
	 case "6" : endDate="30"; break;
   	 case "7" : endDate="31"; break;
   	 case "8" : endDate="31"; break;
   	 case "9" : endDate="30"; break;
   	 case "10" : endDate="31"; break;
   	 case "11" : endDate="30"; break;
   	 case "12" : endDate="31"; break;
   }
   
for (j=1;j<=endDate;j++){
opt_array[i++]=new Option(j,j)
}

oDay.length=opt_array.length;
maxwidth=0;

for(i=0;i<opt_array.length;i++){
     oDay.options[i]=opt_array[i];
     if (oDay.options[i]>maxwidth){ 
     	 maxwidth=oDay.options[i];
     }
   }	 
oDay.width=maxwidth ;

if (dayVal<oDay.length){
     oDay.selectedIndex=dayVal-1;
   }else {
     oDay.selectedIndex=oDay.length-1
   }      
}

