function CheckAvailabiltySec()
{
	var the_package_id=document.theResForm.pkgc.value;
	

	//alert(the_package_id);
	if (the_package_id =="All_Pk")
	 {
		document.theResForm.action="https://www.niagaracentralreservations.com/amr_1131822/Packages_ALL.asp";
	 }
	else
	 {
	  if (the_package_id =="Room")
	   {
		document.theResForm.action="https://www.niagaracentralreservations.com/amr_1131822/Build_PKG_Rooms.asp";
	   }
	
	  else
	    {
			if (the_package_id =="Corp")
			 {
				 document.theResForm.action='http://www.americananiagara.com/reserve.htm';
			 }
			 
			 else 
			 
	          {
		      document.theResForm.action="https://www.niagaracentralreservations.com/amr_1131822/Packages_Rooms.asp";
	          }
		}
	   
	}
}

function formlinks(){
if(document.theResForm.pkgc.value == "PKG_15") {
window.open('http://niagaracentralreservations.com');
return true;
}else if(document.theResForm.pkgc.value == "PKG_16") {
window.open('http://niagaracentralreservations.com');
return true;
}else if(document.theResForm.pkgc.value == "PKG_17") {
window.open('http://niagaracentralreservations.com');
return true;
}else if(document.theResForm.pkgc.value == "PKG_18") {
window.open('http://niagaracentralreservations.com');
return true;
}else if(document.theResForm.pkgc.value == "PKG_19") {
window.open('http://niagaracentralreservations.com');
return true;
}else if(document.theResForm.pkgc.value == "PKG_20") {
window.open('http://niagaracentralreservations.com');
return true;
}

}

function disable_enable(){
if (theResForm.search.value=="Room Only Rates")
theResForm.packages.disabled=true;
else
theResForm.packages.disabled=false;
}
