var a_cruLenAssignment = new Array; function changeMapping(theForm) { var monthMapArray = new Array(18); var monthTextArray = new Array(28); var monthValueArray = new Array(28); monthTextArray[0] = "July-2010"; monthValueArray[0] = "2010-07"; monthTextArray[1] = "August-2010"; monthValueArray[1] = "2010-08"; monthTextArray[2] = "September-2010"; monthValueArray[2] = "2010-09"; monthTextArray[3] = "October-2010"; monthValueArray[3] = "2010-10"; monthTextArray[4] = "November-2010"; monthValueArray[4] = "2010-11"; monthTextArray[5] = "December-2010"; monthValueArray[5] = "2010-12"; monthTextArray[6] = "January-2011"; monthValueArray[6] = "2011-01"; monthTextArray[7] = "February-2011"; monthValueArray[7] = "2011-02"; monthTextArray[8] = "March-2011"; monthValueArray[8] = "2011-03"; monthTextArray[9] = "April-2011"; monthValueArray[9] = "2011-04"; monthTextArray[10] = "May-2011"; monthValueArray[10] = "2011-05"; monthTextArray[11] = "June-2011"; monthValueArray[11] = "2011-06"; monthTextArray[12] = "July-2011"; monthValueArray[12] = "2011-07"; monthTextArray[13] = "August-2011"; monthValueArray[13] = "2011-08"; monthTextArray[14] = "September-2011"; monthValueArray[14] = "2011-09"; monthTextArray[15] = "October-2011"; monthValueArray[15] = "2011-10"; monthTextArray[16] = "November-2011"; monthValueArray[16] = "2011-11"; monthTextArray[17] = "December-2011"; monthValueArray[17] = "2011-12"; monthTextArray[18] = "January-2012"; monthValueArray[18] = "2012-01"; monthTextArray[19] = "February-2012"; monthValueArray[19] = "2012-02"; monthMapArray[0]= new Array("1201","2010-10","2010-12"); monthMapArray[1]= new Array("2050","2010-08","2010-09","2011-05","2011-06","2011-07","2011-08","2011-09"); monthMapArray[2]= new Array("1704","2010-08","2010-09","2010-10","2010-11","2011-02","2011-03"); monthMapArray[3]= new Array("89","2010-09","2010-10","2010-11","2010-12","2011-01","2011-02","2011-03","2011-04"); monthMapArray[4]= new Array("1295","2010-08","2010-09","2010-10","2010-11","2010-12","2011-01","2011-02","2011-03","2011-04","2011-05","2011-06","2011-07","2011-08","2011-09","2011-10","2011-11","2011-12","2012-01","2012-02","2012-03"); monthMapArray[5]= new Array("1035","2010-08","2010-09","2010-10","2011-04","2011-05","2011-06","2011-07","2011-08","2011-09","2011-10"); monthMapArray[6]= new Array("1294","2010-08","2010-09","2010-10"); monthMapArray[7]= new Array("24","2010-08","2010-09","2010-10","2010-11","2010-12","2011-01","2011-02","2011-03","2011-04","2011-05","2011-06","2011-07","2011-08","2011-09","2011-10","2011-11","2011-12","2012-01","2012-02","2012-03"); monthMapArray[8]= new Array("23","2010-08","2010-09","2010-10","2010-11","2010-12","2011-02","2011-03","2011-04","2011-05","2011-06","2011-07","2011-08","2011-09","2011-10"); monthMapArray[9]= new Array("26","2010-08","2010-09","2010-10","2010-11","2010-12","2011-01","2011-02","2011-03","2011-04","2011-05","2011-06","2011-07","2011-08","2011-09","2011-10","2011-11","2011-12","2012-01"); monthMapArray[10]= new Array("7","2010-08","2010-09","2010-10","2010-11","2010-12","2011-01","2011-02","2011-03","2011-04","2011-07","2011-10","2011-11","2012-03"); monthMapArray[11]= new Array("1977","2011-07"); monthMapArray[12]= new Array("2017","2010-09","2010-10","2011-01"); monthMapArray[13]= new Array("240","2010-09","2010-10","2010-11","2010-12","2011-01","2011-02","2011-03","2011-04"); monthMapArray[14]= new Array("1296","2010-08","2010-09","2010-10","2010-11","2010-12"); monthMapArray[15]= new Array("579","2010-09"); monthMapArray[16]= new Array("1896","2010-09","2010-10","2011-05"); monthMapArray[17]= new Array("2047",""); a_cruLenAssignment['1201'] = ['18','14']; a_cruLenAssignment['2050'] = ['14','6']; a_cruLenAssignment['1704'] = ['26','4']; a_cruLenAssignment['89'] = ['35','2']; a_cruLenAssignment['1295'] = ['10','2']; a_cruLenAssignment['1035'] = ['9','5']; a_cruLenAssignment['1294'] = ['17','4']; a_cruLenAssignment['24'] = ['21','4']; a_cruLenAssignment['23'] = ['32','4']; a_cruLenAssignment['26'] = ['31','7']; a_cruLenAssignment['7'] = ['30','3']; a_cruLenAssignment['1977'] = ['4','4']; a_cruLenAssignment['2017'] = ['2','1']; a_cruLenAssignment['240'] = ['21','10']; a_cruLenAssignment['1296'] = ['23','7']; a_cruLenAssignment['579'] = ['16','16']; a_cruLenAssignment['1896'] = ['10','1']; a_cruLenAssignment['2047'] = ['','']; var monthDefaultOption = new Option(); monthDefaultOption.text = "Select Month"; monthDefaultOption.value = ""; theForm.fromMonthYear.options[0] = monthDefaultOption; var destinationId = theForm.geographicRegion.options[theForm.geographicRegion.selectedIndex].value; if (destinationId != "") { updateOptions( destinationId, monthMapArray, monthTextArray, monthValueArray, theForm.fromMonthYear ); } else { populateDefaultOptions( monthValueArray, monthTextArray, theForm.fromMonthYear); } populateCruLengthOpt(destinationId); } function updateOptions( destinationId, mapArray, textArray, valueArray, selectElement) { var optionIndex = 0; for (i=0;i= 3 && s_cruLen <= 6) { s_showOptSegment = '2' } else if (s_cruLen >= 7 && s_cruLen <= 9) { s_showOptSegment = '3' } else if (s_cruLen >= 10 && s_cruLen <= 14) { s_showOptSegment = '4' } else { s_showOptSegment = '5' } return s_showOptSegment; } function specRates(e,cbxMode,dep) { eL = document.getElementById(e); switch(cbxMode) { case "sp1": if (eL.checked || eL.checked == "checked") { noneBlock('cb_resSt!1'); } else { noneBlock('cb_resSt!0','prevCruise!0'); if(dep) { cbxdep = dep.split("!"); for (i=0;i < cbxdep.length;i++) { document.getElementById(cbxdep[i]).checked = false; } } document.getElementById('resSt').options.selectedIndex = "0"; prevCruiseCk = document.getElementById('prevCruise').getElementsByTagName("input"); for (j=0;j < prevCruiseCk.length;j++) { if (prevCruiseCk[j].name == "ppV"){prevCruiseCk[j].checked = false;} } } break; case "sp2": if (eL.checked || eL.checked == "checked") { noneBlock('prevCruise!1'); } else { noneBlock('prevCruise!0'); prevCruiseCk = document.getElementById('prevCruise').getElementsByTagName("input"); for (j=0;j < prevCruiseCk.length;j++) { if (prevCruiseCk[j].name == "ppV"){prevCruiseCk[j].checked = false;} } } break; } } var destSelectList = ' '; var monthSelectList = ''; var sList ="opt_Azamara Club Cruises_opt!223|Azamara Journey!251|Azamara Questopt_Carnival Cruise Lines_opt!146|Carnival Conquest - Refurbished!!11|Carnival Destiny - Refurbished!!260|Carnival Dream - New!!3|Carnival Ecstasy!7|Carnival Elation!4|Carnival Fantasy - Refurbished!!1|Carnival Fascination!217|Carnival Freedom!168|Carnival Glory!6|Carnival Imagination !25|Carnival Inspiration !151|Carnival Legend!200|Carnival Liberty!275|Carnival Magic - New!!182|Carnival Miracle!8|Carnival Paradise!145|Carnival Pride!27|Carnival Sensation!106|Carnival Spirit!254|Carnival Splendor!82|Carnival Triumph!190|Carnival Valor!81|Carnival Victory opt_Celebrity Cruises_opt!264|Celebrity Eclipse - New!!259|Celebrity Equinox - New!!283|Celebrity Silhouette - New!!255|Celebrity Solstice - Editor's Favorite!!187|Celebrity Xpedition!62|Century!148|Constellation!118|Infinity!9|Mercury!80|Millennium!117|Summitopt_Costa Cruises_opt!222|Costa Allegra!225|Costa Atlantica!226|Costa Classica!227|Costa Concordia!272|Costa Deliziosa - New!!282|Costa Favolosa - New!!229|Costa Fortuna!271|Costa Luminosa - New!!224|Costa Magica!230|Costa Marina!231|Costa Mediterranea!273|Costa Pacifica - New!!232|Costa Romantica!250|Costa Serena!249|Costa Victoriaopt_Crystal Cruises_opt!154|Crystal Harmony!167|Crystal Serenity!155|Crystal Symphonyopt_Cunard_opt!274|Queen Elizabeth!236|Queen Mary 2!235|Queen Victoriaopt_Disney Cruise Line_opt!270|Disney Dream®- New!!74|Disney Magic!73|Disney Wonder®opt_Holland America Line_opt!84|Amsterdam!253|Eurodam!47|Maasdam!269|Nieuw Amsterdam - New!!213|Noordam!169|Oosterdam!150|Prinsendam!49|Rotterdam!51|Ryndam - Refurbished!!50|Statendam - Refurbished!!34|Veendam - Refurbished!!85|Volendam!178|Westerdam!86|Zaandam!153|Zuiderdam - Refurbished!opt_MSC Cruises_opt!243|Armonia!267|Fantasia - New!!208|Lirica!263|Magnifica - New!!244|Melody!246|Musica!209|Opera!252|Orchestra!262|Poesia - New!!248|Sinfonia!268|Splendida - New!opt_Norwegian Cruise Line_opt!156|Norwegian Dawn!265|Norwegian Epic - New!!221|Norwegian Gem!257|Norwegian Jade - Refurbished!!202|Norwegian Jewel!218|Norwegian Pearl!176|Norwegian Sky - Refurbished!!186|Norwegian Spirit!129|Norwegian Star!119|Norwegian Sun!181|Pride of Americaopt_Oceania Cruises_opt!206|Insignia!276|Marina - New!!207|Nautica - Refurbished!!205|Regattaopt_Orient Lines_opt!211|Marco Poloopt_Paul Gauguin Cruises_opt!159|Paul Gauguin - Refurbished!opt_Princess Cruises_opt!185|Caribbean Princess - Refurbished!!152|Coral Princess!212|Crown Princess !99|Dawn Princess!170|Diamond Princess!219|Emerald Princess !113|Golden Princess - Refurbished!!103|Grand Princess!166|Island Princess!97|Ocean Princess - Refurbished!!41|Pacific Princess!216|Royal Princess!258|Ruby Princess- New!!171|Sapphire Princess!94|Sea Princess!132|Star Princess - Refurbished!!95|Sun Princessopt_Regent Seven Seas Cruises_opt!162|Seven Seas Mariner - Refurbished!!158|Seven Seas Navigator - Refurbished!!161|Seven Seas Voyager - Refurbished!opt_Royal Caribbean Int'l_opt!115|Adventure of the Seas!266|Allure of the Seas - New!!149|Brilliance of the Seas!23|Enchantment of the Seas!105|Explorer of the Seas!204|Freedom of the Seas!22|Grandeur of the Seas!256|Independence of the Seas - New!!180|Jewel of the Seas!78|Legend of the Seas!220|Liberty of the Seas!18|Majesty of the Seas !174|Mariner of the Seas!19|Monarch of the Seas!165|Navigator of the Seas!261|Oasis of the Seas - New!!116|Radiance of the Seas!20|Rhapsody of the Seas!173|Serenade of the Seas!63|Splendour of the Seas!17|Vision of the Seas!79|Voyager of the Seasopt_Yachts of Seabourn_opt!278|Seabourn Legend!279|Seabourn Odyssey!280|Seabourn Pride!284|Seabourn Quest!277|Seabourn Sojourn!281|Seabourn Spirit"; function doShipSel(sId){ sopt = sList.split("opt_"); defOpt = '0'; document.getElementById(sId).innerHTML = ''; defVal = doShipSel.arguments[1]; for(i=0;i