function submitForm(action) { document.forms[0].action.value = action; document.forms[0].submit(); } function resetSubmitForm(action) { //document.forms[0].reset(); submitForm(action); } function submitFormID(formId, action) { var oFormObject = document.forms[formId]; oFormObject.elements["action"].value = action; oFormObject.submit(); } function resetSubmitFormID(formId, action) { //document.forms[0].reset(); submitFormID(formId, action); } function showHotelDetail(blockID) { var Parms = "width=500,height=600,resizable=1,status=0,location=0,toolbar=0,scrollbars=1"; window.open("hotelDetail.jsp?blockID=" + blockID, "hotelDetailWin", Parms); } function showNewHotelDetail(blockID) { var Parms = "width=500,height=600,resizable=1,status=0,location=0,toolbar=0,scrollbars=1"; window.open("newHotelDetail.jsp?blockID=" + blockID, "hotelDetailWinNew", Parms); } function showItemDetail(itemID) { var Parms = "width=350,height=400,resizable=1,status=0,location=0,toolbar=0,scrollbars=1"; window.open("itemDetail.jsp?itemID=" + itemID, "itemDetailWin", Parms); } function explainConfirmCode() { var Parms = "width=430,height=600,resizable=1,status=0,location=0,toolbar=0,scrollbars=1"; window.open("explainConfirmCode.jsp", "explainConfirmCodeWin", Parms); } function resetForm(rform) { rform.reset(); } function resetForms() { for (var i = 0; i < document.forms.length; i++) { resetForm(document.forms[i]); } } function stateFix(davalue, davalue2) { visible_state = 'block'; hidden_state = 'none'; if (document.forms[0].country.value == "USA" || document.forms[0].country.value == "CANADA")//document.all.american.value == "OTHER") { if (document.all) { //IS IE 4 or 5 (or 6 beta) eval("document.all." + davalue + ".style.display = 'block'"); eval("document.all." + davalue2 + ".style.display = 'none'"); //document.all.Name.style.visibility = davalue; } if (document.layers) { //IS NETSCAPE 4 or below document.layers[davalue].visibility = visible_state; document.layers[davalue2].visibility = hidden_state; } if (document.getElementById && !document.all) { maxwell_smart = document.getElementById(davalue); maxwell_smart.style.display = 'block'; maxwell_smart2 = document.getElementById(davalue2); maxwell_smart2.style.display = 'none'; //document.getElementById(Name).style.display = visible_state; } } else { if (document.all) { //IS IE 4 or 5 (or 6 beta) eval("document.all." + davalue + ".style.display = 'none'"); eval("document.all." + davalue2 + ".style.display = 'block'"); //document.all.Name.style.visibility = davalue; } if (document.layers) { //IS NETSCAPE 4 or below document.layers[davalue].visibility = hidden_state; document.layers[davalue2].visibility = visible_state; } if (document.getElementById && !document.all) { maxwell_smart = document.getElementById(davalue); maxwell_smart.style.display = 'none'; maxwell_smart2 = document.getElementById(davalue2); maxwell_smart2.style.display = 'block'; //document.getElementById(Name).style.display = visible_state; } //eval( "document.all." + davalue + ".style.visibility = hidden_state"); //eval( "document.all." + davalue2 + ".style.visibility = hidden_state"); } } function stateFixByFormID(formId, davalue, davalue2) { visible_state = 'block'; hidden_state = 'none'; var oFormObject = document.forms[formId]; if (oFormObject.elements["country"].value == "USA" || oFormObject.elements["country"].value == "CANADA")//document.all.american.value == "OTHER") { if (document.all) { //IS IE 4 or 5 (or 6 beta) eval("document.all." + davalue + ".style.display = 'block'"); eval("document.all." + davalue2 + ".style.display = 'none'"); //document.all.Name.style.visibility = davalue; } if (document.layers) { //IS NETSCAPE 4 or below document.layers[davalue].visibility = visible_state; document.layers[davalue2].visibility = hidden_state; } if (document.getElementById && !document.all) { maxwell_smart = document.getElementById(davalue); maxwell_smart.style.display = 'block'; maxwell_smart2 = document.getElementById(davalue2); maxwell_smart2.style.display = 'none'; //document.getElementById(Name).style.display = visible_state; } } else { if (document.all) { //IS IE 4 or 5 (or 6 beta) eval("document.all." + davalue + ".style.display = 'none'"); eval("document.all." + davalue2 + ".style.display = 'block'"); //document.all.Name.style.visibility = davalue; } if (document.layers) { //IS NETSCAPE 4 or below document.layers[davalue].visibility = hidden_state; document.layers[davalue2].visibility = visible_state; } if (document.getElementById && !document.all) { maxwell_smart = document.getElementById(davalue); maxwell_smart.style.display = 'none'; maxwell_smart2 = document.getElementById(davalue2); maxwell_smart2.style.display = 'block'; //document.getElementById(Name).style.display = visible_state; } //eval( "document.all." + davalue + ".style.visibility = hidden_state"); //eval( "document.all." + davalue2 + ".style.visibility = hidden_state"); } } function printPage(printArea) { var printContent = document.getElementById(printArea); var printWindow = window.open(); printWindow.document.write(printContent.innerHTML); printWindow.document.close(); printWindow.focus(); printWindow.print(); printWindow.close(); }