<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
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();
}
MM_reloadPage(true);


	function isBlank(s)
	{
		var len,k,flg;
		flg=true;
		if(s!=null)
		{
			len = s.length;
			for(k=0;k<len;k++)
			{
				if(s.substring(k,k+1) != " ")				
				if(((s.charCodeAt(k)) != 13) && ((s.charCodeAt(k)) != 10))
				flg=false;
			}
		}
		return flg;
	}
	
	// Declaring valid date character, minimum year and maximum year
	var dtCh= "/";
	var minYear=1900;
	var maxYear=2100;
	
	function isInteger(s){
		var i;
	    for (i = 0; i < s.length; i++){   
	        // Check that current character is number.
	        var c = s.charAt(i);
	        if (((c < "0") || (c > "9"))) return false;
	    }
	    // All characters are numbers.
	    return true;
	}
	
	function stripCharsInBag(s, bag){
		var i;
	    var returnString = "";
	    // Search through string's characters one by one.
	    // If character is not in bag, append to returnString.
	    for (i = 0; i < s.length; i++){   
	        var c = s.charAt(i);
	        if (bag.indexOf(c) == -1) returnString += c;
	    }
	    return returnString;
	}
	
	function writeOptions(startNumber, endNumber)
{
  var optionCounter;
  for (optionCounter = startNumber; optionCounter <= endNumber; optionCounter++)
  {
      document.write('<OPTION value=' + optionCounter + '>' + optionCounter);
  }
}

function writeMonthOptions()
{
   var theMonth;
   var monthCounter;
   var theDate = new Date();

   for (monthCounter = 0; monthCounter < 12; monthCounter++)
   {
      theDate.setMonth(monthCounter);
      theMonth = theDate.toString();
      theMonth = theMonth.substr(4,3);
      document.write('<OPTION value=' + theMonth + '>' + theMonth);
   }
}


function window_onload()
{
   var theForm = document.search;
   var nowDate = new Date();

   theForm.checkInMonth.options[nowDate.getDate() - 1].selected = true;
   
   theForm.checkInDate.options[nowDate.getMonth()].selected = true;

 theForm.checkInYear.options[nowDate.getFullYear()].selected = true;
}

function selectCurrentDateMonthYear(checkInDate,checkInMonth,checkInYear)
{
	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;
		}
	}


	
}


//-->
