<!--
function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
MM_reloadPage(true);

function selectCurrentDateMonthYear(checkInDate,checkInMonth,checkInYear,checkOutDate,checkOutMonth,checkOutYear)
{
	var today=new Date();
	var nextdate=new Date();
	var thisDay = today.getDate();
	var thisMonth = today.getMonth() + 1;
	var thisYear = today.getFullYear();
	
	nextdate.setDate(thisDay+1);
	
	var nextDay = nextdate.getDate();
	var nextMonth = nextdate.getMonth() + 1;
	var nextYear = nextdate.getFullYear();
	
	for (var i = 0; i < checkInDate.length; ++i)
	{
		if (checkInDate.options[i].value==thisDay)
		{
			checkInDate.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkInMonth.length; ++i)
	{
		if (checkInMonth.options[i].value == thisMonth)
		{
			checkInMonth.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkInYear.length; ++i)
	{
		if (checkInYear.options[i].value == thisYear)
		{
			checkInYear.options[i].selected = true;
		}
	}

	for (var i = 0; i < checkOutDate.length; ++i)
	{
		if (checkOutDate.options[i].value== nextDay)
		{
			checkOutDate.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutMonth.length; ++i)
	{
		if (checkOutMonth.options[i].value == nextMonth)
		{
			checkOutMonth.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutYear.length; ++i)
	{
		if (checkOutYear.options[i].value == nextYear)
		{
			checkOutYear.options[i].selected = true;
		}
	}
	
}

function selectCheckOutDateMonthYear(checkInDate,checkInMonth,checkInYear,checkOutDate,checkOutMonth,checkOutYear)
{
	
	var d = checkInDate.value;
	var m = checkInMonth.value;
	m= m-1;
	s = new Date();
	//y = s.getFullYear();
	y = checkInYear.value;

	var nextDate = new Date(y, m, d);
	
	d = nextDate.getDate();
	
	nextDate.setDate(d+1);
	
	var nextDay = nextDate.getDate();
	var nextMonth = nextDate.getMonth() + 1;
	var nextYear = nextDate.getFullYear();
	
	for (var i = 0; i < checkOutDate.length; ++i)
	{
		if (checkOutDate.options[i].value== nextDay)
		{
			checkOutDate.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutMonth.length; ++i)
	{
		if (checkOutMonth.options[i].value == nextMonth)
		{
			checkOutMonth.options[i].selected = true;
		}
	}
	for (var i = 0; i < checkOutYear.length; ++i)
	{
		if (checkOutYear.options[i].value == nextYear)
		{
			checkOutYear.options[i].selected = true;
		}
	}

}

function CJL_saveLink(anchorId, linkTitle, url, bookmarkText, tabText)
{
   function set(innerHTML, href)
   {
      elem = document.getElementById(anchorId);

      elem.innerHTML = innerHTML;

      elem.href = "javascript:" + href;
   }

   function quote(s)
   {
	  return "'" + s + "'";
	  
   }


   url = quote(url ? url : location.href);
   linkTitle = quote(linkTitle ? linkTitle : document.title);

   if( window.external &&  /Win/.test(navigator.userAgent) )
   {
      set(
          bookmarkText ? bookmarkText : "Bookmark Page",
          "external.AddFavorite(" + url + "," + linkTitle + ")"
         );
   }
   else if( window.sidebar && sidebar.addPanel )
   {
      set(
          tabText ? tabText : "Add to Sidebar",
          "sidebar.addPanel(" + linkTitle + "," + url + ",'')"
         );
   }
}
//-->