	<!-- begin javascript includes -->

<!--

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		stay_01_over = newImage("http://www.travelnow.com/images/stay_01.gif");
		stay_02_over = newImage("http://www.travelnow.com/images/stay_02.gif");
		fly_01_over = newImage("http://www.travelnow.com/images/fly_01.gif");
		fly_02_over = newImage("http://www.travelnow.com/images/fly_02.gif");
		drive_01_over = newImage("http://www.travelnow.com/images/drive_01.gif");
		drive_03_over = newImage("http://www.travelnow.com/images/drive_03.gif");
		preloadFlag = true;
	}
}

// -->

<!-- End Preload Script -->

<!--
	var help=null;
	function MM_openBrWindow(theURL,winName,features, myWidth, myHeight, isCenter) { //v3.0
	  if(window.screen)if(isCenter)if(isCenter=="true"){
	    var myLeft = (screen.width-myWidth)/2;
	    var myTop = (screen.height-myHeight)/2;
	    features+=(features!='')?',':'';
	    features+=',left='+myLeft+',top='+myTop;
	  }
	  if(help!=null)help.close();
	  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
	}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);

}


function OpenHTU(file,name,width,height) {
    attr = "width=" + width + ",height=" + height + ",resizeable=1";
    window.open(file, name, attr);
  }

function openconvert(file,input) {
  	window.open(file, input, 'width=640,height=300,resizable=1');
}
//-->


  	<!-- begin hotAvailJS includes -->

	

<!--
//var tool = java.awt.Toolkit;
//var size = new java.awt.Dimension(tool.getDefaultToolkit().getScreenSize());
//var myWidth = size.width;
//var myHeight = size.height;
//alert(myWidth+'x'+myHeight);

function OpenRes(theURL) {
  	window.open(theURL, "RES", 'scrollbars=1,width=800,height=600,resizable=1,status=1');
}

function OpenDates(file,input) {
  	window.open(file, input, 'width=300,height=300,resizable=1');
}

function OpenInfo(file,input) {
  	window.open(file, "PropInfo", 'scrollbars=1,width=520,height=100%,resizable=1');
}

function openconvert(file,input) {
  	window.open(file, input, 'width=640,height=300,resizable=1');
}

function opentnpr(file,input) {
  	window.open(file, input, 'width=300,height=340,resizable=1');
}

function OpenRateRules(file) {
        window.open(file, 'RateRules', 'width=440,height=400,resizable=1,scrollbars=1');
}

function OpenLogWindow(file,input) {
  	window.open(file, input, 'width=250,height=175,resizable=1,status=1');
}

bName = navigator.appName;
bVer = parseInt(navigator.appVersion);

if      (bName == "Netscape" && bVer >= 3) ver = "n3"; 

else if (bName == "Netscape" && bVer == 2) ver = "n2";

else if (bName == "Microsoft Internet Explorer" && bVer >= 2) ver = "e2";

if (ver == "n3"){
	processoff = new Image(103, 26);
	processoff.src = "/images/processoff.gif";
}

function procoff(imgName){
	if (ver == "n3"){
		imgOff = eval(imgName + "off.src");
//   	document.images[0].src = imgOff;
          document.img_proc.src=imgOff;
	}
}

// Checks if browser is Netscape 2.0x since the options array properties don't work with Netscape 2.0x
function isBrowserSupp() {
    // Get the version of the browser
    version =  parseFloat( navigator.appVersion );

    if ( ( version >= 2.0 ) && ( version < 2.1 ) && ( navigator.appName.indexOf( "Netscape" ) != -1 ) ) {
        return false;
    }
    else {
	return true;
    }

return true;
}
// -->


	<!-- end hotavailJS includes -->

	<!-- begin searchJS includes -->
	

<!--
//function SetFocus() {
//  document.frm_Search.city.focus();
//}

//function UpdateCityCode() {
//        document.frm_Search.city.value = document.frm_Search.cityCode.options[document.frm_Search.cityCode.selectedIndex].value;
//}

function OpenDates(file,input) {
    window.open(file, input, 'width=300,height=300,resizable=1');
}

  function OpenCalendar(dayField, day, monthField, month, yearField, year)
  {
    file = 'http://www.travelnow.com/util/calendar.jsp?formName=frm_Search';
    if ( dayField != null )
      file += '&dayField=' + dayField + '&day=' + day;
    if ( monthField != null )
      file += '&monthField=' + monthField + '&month=' + month;
    if ( yearField != null )
      file += '&yearField=' + yearField + '&year=' + year;
    window.open( file, "dates", 'width=300,height=300,resizable=1');
  }

function OpenLogWindow(file,input) {
    window.open(file, input, 'width=250,height=175,resizable=1,status=1');
}


//start new script code

// Checks if browser is Netscape 2.0x since the options array properties don't work with Netscape 2.0x
function isBrowserSupp() {
    // Get the version of the browser
    version =  parseFloat( navigator.appVersion );

    if ( ( version >= 2.0 ) && ( version < 2.1 ) && ( navigator.appName.indexOf( "Netscape" ) != -1 ) ) {
        return false;
    }
    else {
    return true;
    }

return true;
}

function isLeapYear(yrStr)
{
var leapYear=false;
var year = parseInt(yrStr, 10);
// every fourth year is a leap year
if (year%4 == 0)
	{
	leapYear=true;
	// unless it's a multiple of 100
	if (year%100 == 0)
		{
		leapYear=false;
		// unless it's a multiple of 400
		if (year%400 == 0)
			{
			leapYear=true;
			}
		}
	}
return leapYear;
}


function getDaysInMonth(mthIdx, YrStr)
{
// all the rest have 31
var maxDays=31
// expect Feb. (of course)
if (mthIdx==1) 
	{
	if (isLeapYear(YrStr))
		{
		maxDays=29;
		}
	else 
		{
		maxDays=28;
		}
	}
// thirty days hath...
if (mthIdx==3 || mthIdx==5 || mthIdx==8 || mthIdx==10)
	{
	maxDays=30;
	}
return maxDays;
}


//the function which does some magic to the date fields
// return non-zero if it is the last day of the month
function adjustDate(mthIdx, Dt) 
{
var value=0;

var today = new Date()
var theYear = parseInt(today.getYear(),10)

if (mthIdx < today.getMonth()) {
	theYear = (parseInt(today.getYear(), 10) + 1)
}
if(theYear<100){
	theYear = "19" + theYear
}
else{
	if((theYear-100) < 10){
		theYear = "0" + (theYear-100)
	}
	else{
		theYear = (theYear-100)+""
	}
	theYear = "20" + theYear
}


var numDays=getDaysInMonth(mthIdx, theYear);

if (mthIdx==1) 
	{
	if (Dt.options.selectedIndex + 1 < numDays)
		{
		return 0;
		}
	else 
		{
		Dt.options.selectedIndex=numDays - 1;
		//check for leap year
		if (numDays==29)
			{
			return 99;
			}
		else 
			{
			return 1;
			}
		}
	}
if (Dt.options.selectedIndex + 1 < numDays)
	{
	value=0;
	}
else 
	{
	if (Dt.options.selectedIndex + 1 > numDays)
		{
		Dt.options.selectedIndex--;
		value=3;
		}
	else 
		{
		//index is 31 or 30
		value=2;
		}
	}
return value;
}

//changes departure month when arrival month is changed
function amadChange(inM,inD,outM,outD) 
{
if (!isBrowserSupp())
	{
 	return;
	}

var res = adjustDate(inM.options.selectedIndex, inD);
if (res != 0)
	{
	       outD.options.selectedIndex=0;
	       if (outM.options.selectedIndex==11){
			outM.options.selectedIndex=0
	       }
	       else{
			outM.options.selectedIndex=inM.options.selectedIndex + 1;
	       }
	}
else 
	{
	outM.options.selectedIndex = inM.options.selectedIndex;
	outD.options.selectedIndex = inD.options.selectedIndex+1;
	}
return;
}

function dmddChange(outM,outD) 
{
if (!isBrowserSupp())
	{
	return;			
	}

adjustDate(outM.options.selectedIndex,outD);	
return;	
}


//end new script code from Hilton

// -->


	<!-- end searchJS includes -->

	<!-- begin mapsJS includes -->
	
<!--
function MapPopup(theURL,winName,features)
{
	fileWindow = "/popups/maps/mapPopup.jsp?cmd=Find&HotelLyr=Off&ClickMode=Center";
	fileWindow += theURL;
    window.open(fileWindow,winName,features);
}
//-->


	<!-- end mapsJS includes -->

	
	<!--
	//for the firefighters womens' and childrens fund
	function openWin2()
	{
	   thor = window.open('/firefighters1.jsp?cid=51274','thor','top=200,left=220,width=500,height=275,resizable=1');
	}

	function openWinCondo(fileName)
	{
		thor = window.open(fileName,'thor','top=200,left=220,width=300,height=450,resizable=1');
	}

	function openCondoWindow(file,input) {
 				 if(file == '/popups/hotels/condo.jsp')
                {
                    window.open(file, input,'width=300,height=540,resizable=1');
                }

	}

	function openWindow(fileName)
	{
	   thor = window.open(fileName,'thor','top=200,left=220,width=275,height=450,resizable=1,scrollbars=yes');
	}
	function opentnpr(file,input) {
                if(file == '/popups/hotels/sir.jsp')
                {
                    window.open(file, input,'width=300,height=430,resizable=1');
                }
                else if(file == '/popups/hotels/condo.jsp')
                {
                    window.open(file, input,'width=300,height=540,resizable=1');
                }
                else
                {
                    window.open(file, input,'width=300,height=450,resizable=1');
                }
	}
	//-->
