function reloadPageState() { document.location.href = "/main.asp?state=" + escape(document.frmMain.state.options[document.frmMain.state.selectedIndex].value) + "&inmonth=" + document.frmMain.Monthcheckindate.options[document.frmMain.Monthcheckindate.selectedIndex].value + "&inday=" + document.frmMain.Daycheckindate.options[document.frmMain.Daycheckindate.selectedIndex].value + "&outmonth=" + document.frmMain.Monthcheckoutdate.options[document.frmMain.Monthcheckoutdate.selectedIndex].value + "&outday=" + document.frmMain.Daycheckoutdate.options[document.frmMain.Daycheckoutdate.selectedIndex].value + "&numadults=" + document.frmMain.numadults.options[document.frmMain.numadults.selectedIndex].value + "&inyear=" + document.frmMain.Yearcheckindate.options[document.frmMain.Yearcheckindate.selectedIndex].value + "&outyear=" + document.frmMain.Yearcheckoutdate.options[document.frmMain.Yearcheckoutdate.selectedIndex].value; } function reloadPageCity() { document.location.href = "/main.asp?state=" + escape(document.frmMain.state.options[document.frmMain.state.selectedIndex].value) + "&MetroID=" + escape(document.frmMain.MetroID.options[document.frmMain.MetroID.selectedIndex].value) + "&inmonth=" + document.frmMain.Monthcheckindate.options[document.frmMain.Monthcheckindate.selectedIndex].value + "&inday=" + document.frmMain.Daycheckindate.options[document.frmMain.Daycheckindate.selectedIndex].value + "&outmonth=" + document.frmMain.Monthcheckoutdate.options[document.frmMain.Monthcheckoutdate.selectedIndex].value + "&outday=" + document.frmMain.Daycheckoutdate.options[document.frmMain.Daycheckoutdate.selectedIndex].value + "&numadults=" + document.frmMain.numadults.options[document.frmMain.numadults.selectedIndex].value + "&inyear=" + document.frmMain.Yearcheckindate.options[document.frmMain.Yearcheckindate.selectedIndex].value + "&outyear=" + document.frmMain.Yearcheckoutdate.options[document.frmMain.Yearcheckoutdate.selectedIndex].value; } function showCalendar(formName, FieldName, cMonth, cDay, cYear) { remote=window.open("/IncludesProg/calendar.asp?DateSelected=7%2F25%2F2008&FieldName="+FieldName+"&formName="+formName+"&cMonth="+cMonth+"&cDay="+cDay+"&cYear="+cYear+"&WTReferrer=http%3A%2F%2Fwww%2Eextendedstayhotels%2Ecom%2Fincludes%2FresvFunctionsjs%2Easp%3F","remoteWin","width=220,height=275,screenX=50,left=230,screenY=250,top=200,status=no,scrolling=auto,resize=no,menubar=no,"); } function handleKeyPress() { if (event.keyCode == 13) { checkAvailability(); } } function pad2(number) { var output; if (number < 10) { output = '0' + number return output.toString(); } return number.toString(); } function pad4(number) { var output; if (number < 10) { output = '000' + number; return output.ToString(); } if (number < 100) { output = '00' + number; return output.toString(); } if (number < 1000) { output = '0' + number; return output.toString(); } return number.toString(); } function isAlphaNumeric(sField) { var sCheckValue; var sCheckString; var lCharCt; sCheckValue = new String(eval("document.frmMain."+sField+".value")); sCheckString = /[^(a-z|0-9)]+/gi; if (sCheckValue.length > 0) { lCharCt = sCheckString.exec(sCheckValue); } else { lCharCt = null; } if (lCharCt == null) { return true; } else { return false; } }