	if (document.layers) {		//Load the DHTML code for NS4 and Opera		if(navigator.userAgent.indexOf("Opera") != -1){			document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='/nav_opera.js'><\/scr"+"ipt>");		} else {			document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='/nav_ns4.js'><\/scr"+"ipt>");		}	} else {		//Load the DHTML code for IE and NS 6		document.write("<scr"+"ipt language='JavaScript' type='text/javascript' src='/nav.js'><\/scr"+"ipt>");	}sectname="pack";
// ---------------------------------------------------------------------------------------

	//MAKES THE ICONS ROLLOVER
	function facroll(icondesc, iconname, count, state) {		whatlabel=eval("venhead"+count);		whatlabel.innerText = icondesc;	if (document.all) {		if (state==0) eval(iconname).src = "/images/holidaysandspecials/icons/" + iconname + ".gif";		if (state==1) eval(iconname).src = "/images/holidaysandspecials/icons/" + iconname + "_on.gif";	} else {		if (state==0) document.getElementById(iconname).src = "/images/holidaysandspecials/icons/" + iconname + ".gif";		if (state==1) document.getElementById(iconname).src = "/images/holidaysandspecials/icons/" + iconname + "_on.gif";	}	}
// ---------------------------------------------------------------------------------------	// Pack & Cat Search page
	function go(loc, hotelcat, hotelcode) {
		if (hotelcode!=0) {
			if (hotelcode=="all") {
				window.location="catsearchresults.asp?hotel=all&location="+loc;
			} else {
				window.location="/locations/Rydges.asp?hotel="+hotelcode+"&cat="+hotelcat;
				//window.location="/locations/locationchooser.asp?hotel="+hotelcode;
			}
		}
	}
// ---------------------------------------------------------------------------------------		// DATE & MONTH CALENDER CHANGE 		function dateChange(dd, selitem) {			if (dd=="arrdd") { document.quicksearch.depdd.selectedIndex=selitem };			if (dd=="arrmm") { document.quicksearch.depmm.selectedIndex=selitem-1 };			if (dd=="arryy") { document.quicksearch.depyy.selectedIndex=document.quicksearch.arryy.selectedIndex };		}		function openCal(arrdep) {			window.open('/calendar.asp?mnth=0&arrdep='+arrdep, 'cal', 'top=280, left=400, width=165, height=184, scrollbars=no, address=no, location=no, status=yes')		}// ---------------------------------------------------------------------------------------	// Check Rates and Availability - Booking Panel		function checkForm_Best(){			errs="";			arrday=document.quicksearch.arrdd.options[document.quicksearch.arrdd.selectedIndex].value;
			arrmonth=document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value;
			arryear=document.quicksearch.arryy.options[document.quicksearch.arryy.selectedIndex].value;

			depday=document.quicksearch.depdd.options[document.quicksearch.depdd.selectedIndex].value;
			depmonth=document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value;
			depyear=document.quicksearch.depyy.options[document.quicksearch.depyy.selectedIndex].value;			ArrDate = new Date(arryear,arrmonth,arrday);
			DepDate = new Date(depyear,depmonth,depday);			// Checking if Departure D/M/Y is less than Start Date
			if (DepDate.getTime() < ArrDate.getTime())
			{ errs+=" - Departure Date - Your Departure date is less than the Arrival Date"+"\n"; }
			// if (document.quicksearch.pro.value=="") errs+=" - Please select a hotel"+"\n";			if (errs!="") {				alert("Please ensure the following elements are completed correctly"+"\n\n"+errs);			} else {				document.quicksearch.submit();			}		}	// ---------------------------------------------------------------------------------------		// Generic function for all packages.		function checkForm_Spring(){
		errs="";
		arrday=document.quicksearch.arrdd.options[document.quicksearch.arrdd.selectedIndex].value;
		arrmonth=document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value;
		arryear=document.quicksearch.arryy.options[document.quicksearch.arryy.selectedIndex].value;

		depday=document.quicksearch.depdd.options[document.quicksearch.depdd.selectedIndex].value;
		depmonth=document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value;
		depyear=document.quicksearch.depyy.options[document.quicksearch.depyy.selectedIndex].value;

		// Spring Pack - 1 September - 30 November, 2005
		PackFrom = new Date(2005,09,01);
		ArrDate = new Date(arryear,arrmonth,arrday);
		PackTo = new Date(2005,11,30);
		DepDate = new Date(depyear,depmonth,depday);

			if (document.quicksearch.pro.value=="") errs+=" - Please select a hotel"+"\n";
		// Checking if Arrival D/M/Y is less than Package start date
			if (PackFrom.getTime() > ArrDate.getTime() || PackTo.getTime() < ArrDate.getTime()) 
			{ errs+=" - Arrival Date - Please choose a date between 1 September - 30 November, 2005 "+"\n"; }

		// Checking if Departure D/M/Y is less than Package end date
			if (PackTo.getTime() < DepDate.getTime() || PackTo.getTime() < DepDate.getTime() || PackFrom.getTime() > DepDate.getTime())
			{ errs+=" - Departure Date - Please choose a date between 1 September - 30 November, 2005"+"\n"; }

			if (errs!="") {
				alert("Please ensure the following elements are completed correctly"+"\n\n"+errs);
			} else {
			
			//	alert("Submission OK");				document.quicksearch.submit();
			}
		}
// ---------------------------------------------------------------------------------------- // WINTER - Booking Panel	function checkForm_Winter(){		errs="";		if (document.quicksearch.pro.value=="") errs+=" - Please select a hotel"+"\n";		//NZ All		if (document.quicksearch.pro.value=="RZAUCK" || document.quicksearch.pro.value=="RZCHCH" || document.quicksearch.pro.value=="RZQUEE" || document.quicksearch.pro.value=="RZHAMI" || document.quicksearch.pro.value=="RZROTO" || document.quicksearch.pro.value=="RZPALM") {			if (document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value < 6)			{	errs+=" - Arrival Date - Please choose a date between 1 June - 30 September"+"\n"; }			//NZ & arrmm > Sep			if (document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value > 9) 			{	errs+=" - Arrival Date - Please choose a date between 1 June - 30 September"+"\n"; }			//NZ & depmm < June 			if (document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value < 6)			{	errs+=" - Departure - Please choose a date between 1 June - 30 September"+"\n"; }			//NZ & depmm > Sep 			if (document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value > 9) 			{	errs+=" - Departure - Please choose a date between 1 June - 30 September"+"\n"; }		}	//All Other Hotels	if (document.quicksearch.pro.value=="RAEAGL" || document.quicksearch.pro.value=="RTHOBA" || document.quicksearch.pro.value=="RVNMEL" || document.quicksearch.pro.value=="RQOASI" || document.quicksearch.pro.value=="RVPRES" || document.quicksearch.pro.value=="RSADEL" || document.quicksearch.pro.value=="RNCAMP" || document.quicksearch.pro.value=="RVMELB" || document.quicksearch.pro.value=="RNNSYD" || document.quicksearch.pro.value=="RNBANK" || document.quicksearch.pro.value=="RNCAPS" || document.quicksearch.pro.value=="RACANB" || document.quicksearch.pro.value=="RVRIVE" || document.quicksearch.pro.value=="RACAPH" || document.quicksearch.pro.value=="RQCAPR" || document.quicksearch.pro.value=="RNCRON" || document.quicksearch.pro.value=="RNWOLL" || document.quicksearch.pro.value=="RQESPL" || document.quicksearch.pro.value=="RNJAMI" || document.quicksearch.pro.value=="RNPARR" || document.quicksearch.pro.value=="RWPERT" || document.quicksearch.pro.value=="RQCAIR" || document.quicksearch.pro.value=="RNPMAC" || document.quicksearch.pro.value=="RQPDUG" || document.quicksearch.pro.value=="RQSOUT") { 		if (document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value == 6  && document.quicksearch.arrdd.options[document.quicksearch.arrdd.selectedIndex].value < 1)		{	errs+=" - Please choose a date between 1 June - 30 August"+"\n"; }		if (document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value > 8 )		{	errs+=" - Please choose a date between 1 June - 30 August"+"\n"; }	  		if (document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value < 6)		{	errs+=" - Please choose a date between 1 June - 30 August"+"\n"; }		if (document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value == 8  && document.quicksearch.depdd.options[document.quicksearch.depdd.selectedIndex].value > 30)		{	errs+=" - Please choose a date between 1 June - 30 August"+"\n"; }		if (document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value == document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value && parseInt(document.quicksearch.arrdd.options[document.quicksearch.arrdd.selectedIndex].value) > parseInt(document.quicksearch.depdd.options[document.quicksearch.depdd.selectedIndex].value))		{	errs+=" - Please choose a date between 1 June - 30 August \n Arrival date must be earlier than departure date"+"\n"; }	}	if (errs!="") {			alert("Please ensure the following elements are completed correctly"+"\n\n"+errs);		} else {			document.quicksearch.submit();		}	}// ---------------------------------------------------------------------------------------	// SUMMER - Booking Panel	function checkForm_Summer(){
		errs="";
		if (document.quicksearch.pro.value=="") errs+=" - Please select a hotel"+"\n";
		if (errs!="") {
			alert("Please ensure the following elements are completed correctly"+"\n\n"+errs);
		} else {
			document.quicksearch.submit();
		}
	}// ---------------------------------------------------------------------------------------	// Below are for New L&F of the Packages page.
		function go_pack(loc, hotelcat, hotelcode) {
			if (hotelcode!=0) {
				if (hotelcode=="all") {
					window.location="searchresults.asp?hotel=all&location="+loc;
				} else {
					window.location="/packagesandspecials/packages.asp?hotel="+hotelcode;
				//	window.location="/packagesandspecials/packages.asp?hotel="+hotelcode+"&cat="+hotelcat;
				}
			}
		}

		function go2(loc, hotelcat, hotelcode) {
			if (loc!=0) {window.location="/packagesandspecials/packages.asp?location="+loc+"&cat="+hotelcat};
		}// ---------------------------------------------------------------------------------------       // SPRING - Booking Panel		function checkForm_Spring_OLD(){			errs="";			if (document.quicksearch.pro.value=="") errs+=" - Please select a hotel"+"\n";			if (document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value < 9)			{	errs+=" - Arrival Date - Please choose a date between 1 September - 30 November"+"\n"; }			if (document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value > 11)			{	errs+=" - Arrival Date - Please choose a date between 1 September - 30 November"+"\n"; }			if (document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value > 11)			{	errs+=" - Departure Date - Please choose a date between 1 September - 30 November"+"\n"; }			if (document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value < 9)			{	errs+=" - Departure Date - Please choose a date between 1 September - 30 November"+"\n"; }			if (document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value == document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value && parseInt(document.quicksearch.arrdd.options[document.quicksearch.arrdd.selectedIndex].value) > parseInt(document.quicksearch.depdd.options[document.quicksearch.depdd.selectedIndex].value))			{	errs+=" - Arrival date must be earlier than departure date"+"\n"; }					if (errs!="") {				alert("Please ensure the following elements are completed correctly"+"\n\n"+errs);			} else {		//		alert("Submission OK");				document.quicksearch.submit();			}		}// ---------------------------------------------------------------------------------------		// Summer Hol-@-day		function checkForm_Holiday(){
		errs="";
		arrday=document.quicksearch.arrdd.options[document.quicksearch.arrdd.selectedIndex].value;
		arrmonth=document.quicksearch.arrmm.options[document.quicksearch.arrmm.selectedIndex].value;
		arryear=document.quicksearch.arryy.options[document.quicksearch.arryy.selectedIndex].value;

		depday=document.quicksearch.depdd.options[document.quicksearch.depdd.selectedIndex].value;
		depmonth=document.quicksearch.depmm.options[document.quicksearch.depmm.selectedIndex].value;
		depyear=document.quicksearch.depyy.options[document.quicksearch.depyy.selectedIndex].value;

		// Summer Package - 15 Dec 2005 - 31 Jan 2006
		PackFrom = new Date(2005,12,15);
		ArrDate = new Date(arryear,arrmonth,arrday);
		PackTo = new Date(2006,01,31);
		DepDate = new Date(depyear,depmonth,depday);

			if (document.quicksearch.pro.value=="") errs+=" - Please select a hotel"+"\n";
		// Checking if Arrival D/M/Y is less than Package start date
			if (PackFrom.getTime() > ArrDate.getTime() || PackTo.getTime() < ArrDate.getTime()) 
			{ errs+=" - Arrival Date - Please choose a date between 15 December 2005 - 31 January, 2006"+"\n"; }

		// Checking if Departure D/M/Y is less than Package end date
			if (PackTo.getTime() < DepDate.getTime() || PackTo.getTime() < DepDate.getTime() || PackFrom.getTime() > DepDate.getTime())
			{ errs+=" - Departure Date - Please choose a date between 15 December 2005 - 31 January, 2006"+"\n"; }

			if (errs!="") {
				alert("Please ensure the following elements are completed correctly"+"\n\n"+errs);
			} else {
			
			//	alert("Submission OK");				document.quicksearch.submit();
			}
		}
// ----------------------------------------------------------------------------------------