function PopupAdultChildDiv(){var c=document.getElementById("NumberOfRooms_Popup");if(c.options[c.selectedIndex].text>1){document.getElementById("Room1LablePopup").style.display="block";document.getElementById("findhotelssd").style.border="#7f9db9 solid 1px";document.getElementById("findhotelssd").style.borderTopWidth="0px"}else{document.getElementById("Room1LablePopup").style.display="none";document.getElementById("findhotelssd").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelssd").style.borderBottomWidth="0px"}var b=new Array(4);b[0]=document.getElementById("Child1_Popup");b[1]=document.getElementById("Child2_Popup");b[2]=document.getElementById("Child3_Popup");b[3]=document.getElementById("Child4_Popup");for(var a=1;a<=4;a++){if(a<=c.options[c.selectedIndex].text){ResetValues();document.getElementById("PopupAdultChildDiv"+a).style.display="block";PopupChildAges(b[a-1],a)}else{document.getElementById("PopupAdultChildDiv"+a).style.display="none";document.getElementById("PopupChildAgesControlDiv"+a).style.display="none"}}document.getElementById("PopupChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(b[a-1].selectedIndex>0&&document.getElementById("PopupAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupChildAgeMessage").style.display="block"}}}function ResetValues(){var a=document.getElementById("NumberOfRooms_Popup");if(a.options[a.selectedIndex].text==1){document.popupform1.chdroom2.value="0";document.popupform1.chdroom3.value="0";document.popupform1.chdroom4.value="0";document.popupform1.adt2.value="1";document.popupform1.adt3.value="1";document.popupform1.adt4.value="1"}if(a.options[a.selectedIndex].text==2){document.popupform1.chdroom3.value="0";document.popupform1.chdroom4.value="0";document.popupform1.adt3.value="1";document.popupform1.adt4.value="1"}if(a.options[a.selectedIndex].text==3){document.popupform1.chdroom4.value="0";document.popupform1.adt4.value="1"}}function PopupChildAges(b,d){document.getElementById("findhotelssd").style.borderBottomWidth="1px";for(var a=1;a<=2;a++){if(a<=b.options[b.selectedIndex].text){document.getElementById("PopupChildAge"+d+""+a).style.display="block";document.getElementById("findhotelssd").style.border="#7f9db9 solid 1px";document.getElementById("findhotelssd").style.borderTopWidth="0px"}else{document.getElementById("PopupChildAge"+d+""+a).style.display="none";document.getElementById("findhotelssd").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelssd").style.borderBottomWidth="0px"}}if(b.options[b.selectedIndex].text>0){document.getElementById("PopupChildAgesControlDiv"+d).style.display="block";document.getElementById("findhotelssd").style.border="#7f9db9 solid 1px";document.getElementById("findhotelssd").style.borderTopWidth="0px"}else{document.getElementById("PopupChildAgesControlDiv"+d).style.display="none";document.getElementById("findhotelssd").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelssd").style.borderBottomWidth="0px"}var c=new Array(4);c[0]=document.getElementById("Child1_Popup");c[1]=document.getElementById("Child2_Popup");c[2]=document.getElementById("Child3_Popup");c[3]=document.getElementById("Child4_Popup");document.getElementById("PopupChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(c[a-1].selectedIndex>0&&document.getElementById("PopupAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupChildAgeMessage").style.display="block"}}}function PopupCYAdultChildDiv(){var c=document.getElementById("NumberOfRooms_PopupCY");if(c.options[c.selectedIndex].text>1){document.getElementById("Room1LablePopupCY").style.display="block";document.getElementById("findhotelcmp").style.border="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderTopWidth="0px"}else{document.getElementById("Room1LablePopupCY").style.display="none";document.getElementById("findhotelcmp").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderBottomWidth="0px"}var b=new Array(4);b[0]=document.getElementById("Child1_PopupCY");b[1]=document.getElementById("Child2_PopupCY");b[2]=document.getElementById("Child3_PopupCY");b[3]=document.getElementById("Child4_PopupCY");for(var a=1;a<=4;a++){if(a<=c.options[c.selectedIndex].text){ResetValuesCy();document.getElementById("PopupCYAdultChildDiv"+a).style.display="block";PopupCYChildAges(b[a-1],a)}else{document.getElementById("PopupCYAdultChildDiv"+a).style.display="none";document.getElementById("PopupCYChildAgesControlDiv"+a).style.display="none"}}document.getElementById("PopupCYChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(b[a-1].selectedIndex>0&&document.getElementById("PopupCYAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupCYChildAgeMessage").style.display="block"}}}function ResetValuesCy(){var a=document.getElementById("NumberOfRooms_PopupCY");if(a.options[a.selectedIndex].text==1){document.popupform2.chdroom2.value="0";document.popupform2.chdroom3.value="0";document.popupform2.chdroom4.value="0";document.popupform2.adt2.value="1";document.popupform2.adt3.value="1";document.popupform2.adt4.value="1"}if(a.options[a.selectedIndex].text==2){document.popupform2.chdroom3.value="0";document.popupform2.chdroom4.value="0";document.popupform2.adt3.value="1";document.popupform2.adt4.value="1"}if(a.options[a.selectedIndex].text==3){document.popupform2.chdroom4.value="0";document.popupform2.adt4.value="1"}}function PopupCYChildAges(c,d){document.getElementById("findhotelcmp").style.borderBottomWidth="1px";for(var a=1;a<=2;a++){if(a<=c.options[c.selectedIndex].text){document.getElementById("PopupCYChildAge"+d+""+a).style.display="block";document.getElementById("findhotelcmp").style.border="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderTopWidth="0px"}else{document.getElementById("PopupCYChildAge"+d+""+a).style.display="none";document.getElementById("findhotelcmp").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderBottomWidth="0px"}}if(c.options[c.selectedIndex].text>0){document.getElementById("PopupCYChildAgesControlDiv"+d).style.display="block";document.getElementById("findhotelcmp").style.border="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderTopWidth="0px"}else{document.getElementById("PopupCYChildAgesControlDiv"+d).style.display="none";document.getElementById("findhotelcmp").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderBottomWidth="0px"}var b=new Array(4);b[0]=document.getElementById("Child1_PopupCY");b[1]=document.getElementById("Child2_PopupCY");b[2]=document.getElementById("Child3_PopupCY");b[3]=document.getElementById("Child4_PopupCY");document.getElementById("PopupCYChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(b[a-1].selectedIndex>0&&document.getElementById("PopupCYAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupCYChildAgeMessage").style.display="block"}}}function PopupCHAdultChildDiv(){var c=document.getElementById("NumberOfRooms_PopupCH");if(c.options[c.selectedIndex].text>1){document.getElementById("Room1LablePopupCH").style.display="block";document.getElementById("findhotelch").style.border="#7f9db9 solid 1px";document.getElementById("findhotelch").style.borderTopWidth="0px";document.getElementById("sbookingpanel_chain").style.top="500px"}else{document.getElementById("Room1LablePopupCH").style.display="none";document.getElementById("findhotelch").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelch").style.borderBottomWidth="0px";document.getElementById("sbookingpanel_chain").style.top="610px";document.popupform3.chdroom2.value="0";document.popupform3.chdroom3.value="0";document.popupform3.chdroom4.value="0"}var b=new Array(4);b[0]=document.getElementById("Child1_PopupCH");b[1]=document.getElementById("Child2_PopupCH");b[2]=document.getElementById("Child3_PopupCH");b[3]=document.getElementById("Child4_PopupCH");for(var a=1;a<=4;a++){if(a<=c.options[c.selectedIndex].text){ResetValuesCh();document.getElementById("PopupCHAdultChildDiv"+a).style.display="block";PopupCHChildAges(b[a-1],a)}else{document.getElementById("PopupCHAdultChildDiv"+a).style.display="none";document.getElementById("PopupCHChildAgesControlDiv"+a).style.display="none"}}document.getElementById("PopupCHChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(b[a-1].selectedIndex>0&&document.getElementById("PopupCHAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupCHChildAgeMessage").style.display="block"}}}function ResetValuesCh(){var a=document.getElementById("NumberOfRooms_PopupCH");if(a.options[a.selectedIndex].text==1){document.popupform3.chdroom2.value="0";document.popupform3.chdroom3.value="0";document.popupform3.chdroom4.value="0";document.popupform3.adt2.value="1";document.popupform3.adt3.value="1";document.popupform3.adt4.value="1"}if(a.options[a.selectedIndex].text==2){document.popupform3.chdroom3.value="0";document.popupform3.chdroom4.value="0";document.popupform3.adt3.value="1";document.popupform3.adt4.value="1"}if(a.options[a.selectedIndex].text==3){document.popupform3.chdroom4.value="0";document.popupform3.adt4.value="1"}}function PopupCHChildAges(b,d){document.getElementById("findhotelch").style.borderBottomWidth="1px";for(var a=1;a<=2;a++){if(a<=b.options[b.selectedIndex].text){document.getElementById("PopupCHChildAge"+d+""+a).style.display="block";document.getElementById("findhotelch").style.border="#7f9db9 solid 1px";document.getElementById("findhotelch").style.borderTopWidth="0px"}else{document.getElementById("PopupCHChildAge"+d+""+a).style.display="none";document.getElementById("findhotelch").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelch").style.borderBottomWidth="0px"}}if(b.options[b.selectedIndex].text>0){document.getElementById("PopupCHChildAgesControlDiv"+d).style.display="block";document.getElementById("findhotelch").style.border="#7f9db9 solid 1px";document.getElementById("findhotelch").style.borderTopWidth="0px"}else{document.getElementById("PopupCHChildAgesControlDiv"+d).style.display="none";document.getElementById("findhotelch").style.borderBottomWidth="0px";document.getElementById("findhotelch").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelch").style.borderBottomWidth="0px"}var c=new Array(4);c[0]=document.getElementById("Child1_PopupCH");c[1]=document.getElementById("Child2_PopupCH");c[2]=document.getElementById("Child3_PopupCH");c[3]=document.getElementById("Child4_PopupCH");document.getElementById("PopupCHChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(c[a-1].selectedIndex>0&&document.getElementById("PopupCHAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupCHChildAgeMessage").style.display="block"}}}function PopupMapAdultChildDiv(){var c=document.getElementById("NumberOfRooms_PopupMap");if(c.options[c.selectedIndex].text>1){document.getElementById("Room1LablePopupMap").style.display="block";document.getElementById("findhotelmap").style.border="#7f9db9 solid 1px";document.getElementById("findhotelmap").style.borderTopWidth="0px";document.getElementById("mapbookingdetail").style.top="180px"}else{document.getElementById("Room1LablePopupMap").style.display="none";document.getElementById("findhotelmap").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelmap").style.borderBottomWidth="0px";document.getElementById("mapbookingdetail").style.top="260px"}var b=new Array(4);b[0]=document.getElementById("Child1_PopupMap");b[1]=document.getElementById("Child2_PopupMap");b[2]=document.getElementById("Child3_PopupMap");b[3]=document.getElementById("Child4_PopupMap");for(var a=1;a<=4;a++){if(a<=c.options[c.selectedIndex].text){ResetValuesMap();document.getElementById("PopupMapAdultChildDiv"+a).style.display="block";PopupMapChildAges(b[a-1],a)}else{document.getElementById("PopupMapAdultChildDiv"+a).style.display="none";document.getElementById("PopupMapChildAgesControlDiv"+a).style.display="none"}}document.getElementById("PopupMapChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(b[a-1].selectedIndex>0&&document.getElementById("PopupMapAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupMapChildAgeMessage").style.display="block"}}}function ResetValuesMap(){var a=document.getElementById("NumberOfRooms_PopupMap");if(a.options[a.selectedIndex].text==1){document.mapviewform.chdroom2.value="0";document.mapviewform.chdroom3.value="0";document.mapviewform.chdroom4.value="0";document.mapviewform.adt2.value="1";document.mapviewform.adt3.value="1";document.mapviewform.adt4.value="1"}if(a.options[a.selectedIndex].text==2){document.mapviewform.chdroom3.value="0";document.mapviewform.chdroom4.value="0";document.mapviewform.adt3.value="1";document.mapviewform.adt4.value="1"}if(a.options[a.selectedIndex].text==3){document.mapviewform.chdroom4.value="0";document.mapviewform.adt4.value="1"}}function PopupMapChildAges(b,d){for(var a=1;a<=2;a++){if(a<=b.options[b.selectedIndex].text){document.getElementById("PopupMapChildAge"+d+""+a).style.display="block";document.getElementById("findhotelmap").style.border="#7f9db9 solid 1px";document.getElementById("findhotelmap").style.borderTopWidth="0px"}else{document.getElementById("PopupMapChildAge"+d+""+a).style.display="none";document.getElementById("findhotelmap").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelmap").style.borderBottomWidth="0px"}}if(b.options[b.selectedIndex].text>0){document.getElementById("PopupMapChildAgesControlDiv"+d).style.display="block";document.getElementById("findhotelmap").style.border="#7f9db9 solid 1px";document.getElementById("findhotelmap").style.borderTopWidth="0px"}else{document.getElementById("PopupMapChildAgesControlDiv"+d).style.display="none";document.getElementById("findhotelmap").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelmap").style.borderBottomWidth="0px"}var c=new Array(4);c[0]=document.getElementById("Child1_PopupMap");c[1]=document.getElementById("Child2_PopupMap");c[2]=document.getElementById("Child3_PopupMap");c[3]=document.getElementById("Child4_PopupMap");document.getElementById("PopupMapChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(c[a-1].selectedIndex>0&&document.getElementById("PopupMapAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupMapChildAgeMessage").style.display="block"}}}function PopupVTAdultChildDiv(){var c=document.getElementById("NumberOfRooms_PopupVT");if(c.options[c.selectedIndex].text>1){document.getElementById("Room1LablePopupVT").style.display="block";document.getElementById("findhotelcmp").style.border="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderTopWidth="0px"}else{document.getElementById("Room1LablePopupVT").style.display="none";document.getElementById("findhotelcmp").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderBottomWidth="0px"}var b=new Array(4);b[0]=document.getElementById("Child1_PopupVT");b[1]=document.getElementById("Child2_PopupVT");b[2]=document.getElementById("Child3_PopupVT");b[3]=document.getElementById("Child4_PopupVT");for(var a=1;a<=4;a++){if(a<=c.options[c.selectedIndex].text){ResetValuesVt();document.getElementById("PopupVTAdultChildDiv"+a).style.display="block";PopupVTChildAges(childlistpopupct[a-1],a)}else{document.getElementById("PopupVTAdultChildDiv"+a).style.display="none";document.getElementById("PopupVTChildAgesControlDiv"+a).style.display="none"}}document.getElementById("PopupVTChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(b[a-1].selectedIndex>0&&document.getElementById("PopupVTAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupVTChildAgeMessage").style.display="block"}}}function ResetValuesVt(){var a=document.getElementById("NumberOfRooms_PopupVT");if(a.options[a.selectedIndex].text==1){document.videotourform.chdroom2.value="0";document.videotourform.chdroom3.value="0";document.videotourform.chdroom4.value="0";document.videotourform.adt2.value="1";document.videotourform.adt3.value="1";document.videotourform.adt4.value="1"}if(a.options[a.selectedIndex].text==2){document.videotourform.chdroom3.value="0";document.videotourform.chdroom4.value="0";document.videotourform.adt3.value="1";document.videotourform.adt4.value="1"}if(a.options[a.selectedIndex].text==3){document.videotourform.chdroom4.value="0";document.videotourform.adt4.value="1"}}function PopupVTChildAges(b,d){document.getElementById("findhotelcmp").style.borderBottomWidth="1px";for(var a=1;a<=2;a++){if(a<=b.options[b.selectedIndex].text){document.getElementById("PopupVTChildAge"+d+""+a).style.display="block";document.getElementById("findhotelcmp").style.border="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderTopWidth="0px"}else{document.getElementById("PopupVTChildAge"+d+""+a).style.display="none";document.getElementById("findhotelcmp").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderBottomWidth="0px"}}if(b.options[b.selectedIndex].text>0){document.getElementById("PopupVTChildAgesControlDiv"+d).style.display="block";document.getElementById("findhotelcmp").style.border="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderTopWidth="0px"}else{document.getElementById("PopupVTChildAgesControlDiv"+d).style.display="none";document.getElementById("findhotelcmp").style.borderLeft="#7f9db9 solid 1px";document.getElementById("findhotelcmp").style.borderBottomWidth="0px"}var c=new Array(4);c[0]=document.getElementById("Child1_PopupVT");c[1]=document.getElementById("Child2_PopupVT");c[2]=document.getElementById("Child3_PopupVT");c[3]=document.getElementById("Child4_PopupVT");document.getElementById("PopupVTChildAgeMessage").style.display="none";for(var a=1;a<=4;a++){if(c[a-1].selectedIndex>0&&document.getElementById("PopupVTAdultChildDiv"+a).style.display=="block"){document.getElementById("PopupVTChildAgeMessage").style.display="block"}}};