   function openModalWindowsOnStartCTC() {
    if(tempCTCEmail=="1") {
      openModalClickToCallAnswer();
    }
    if(tempCTC=="1") {
      openModalClickToCallAnswer();
    }
  }

  function openModalWindowsOnStartCTQ() {
    if(tempCTQEmail=="1") {
      openModalClickToQuoteAnswer();
    }
    if(tempCTQEmail=="1") {
      openModalClickToQuoteAnswer();
    }
  }

  function checkMandatoryFields() {
    var complete ="false";
    var defaultValues ="false";
    var title_error ="true";
    var firstnamne_error ="true";
    var lastname_error ="true";
    var areacode_error ="true";
    var phone_error ="true";
    var county_error ="true";

    if (document.getElementById("country_ctc").value=="") {
      if (document.getElementById("title_ctc").value=="") {
        if (document.getElementById("last_name_ctc").value=="") {
          if (document.getElementById("first_name_ctc").value=="") {
            if (document.getElementById("area_code_ctc").value=="") {
              if (document.getElementById("phone_ctc").value=="") {
                defaultValues="true";
              } else {defaultValues ="false"}
            } else {defaultValues ="false"}
          } else {defaultValues ="false"}
        } else {defaultValues ="false"}
      } else {defaultValues ="false"}
    } else {defaultValues ="false"}


    if (defaultValues =="true") {
      Modalbox.hide();
    } else {

      if (document.getElementById("title_ctc").value!="") {
        title_error ="true";document.getElementById("titletext").style.color="#666666";
      } else {title_error ="false";document.getElementById("titletext").style.color="red";}

      if (document.getElementById("last_name_ctc").value!="") {
        lastname_error ="true";document.getElementById("lastnametext").style.color="#666666";
      }else {lastname_error ="false";document.getElementById("lastnametext").style.color="red";}

      if (document.getElementById("first_name_ctc").value!="") {
        firstnamne_error ="true";document.getElementById("firstnametext").style.color="#666666";
      }else {firstnamne_error ="false";document.getElementById("firstnametext").style.color="red";}

      if (document.getElementById("area_code_ctc").value!=""){
        areacode_error ="true";document.getElementById("phone_area_text").style.color="#666666";
      } else {areacode_error ="false";document.getElementById("phone_area_text").style.color="red";}

      if (document.getElementById("phone_ctc").value!="") {
        phone_error ="true";document.getElementById("phone_area_text").style.color="#666666";
      } else {phone_error ="false";document.getElementById("phone_area_text").style.color="red";}

      if ((phone_error =="false") || (areacode_error =="false")) {
        document.getElementById("phone_area_text").style.color="red";
      }

      if (document.getElementById("country_ctc").value!="") {
        county_error ="true";document.getElementById("countrytext").style.color="#666666";
      } else {county_error ="false";document.getElementById("countrytext").style.color="red";}

      if ((title_error =="false") || (lastname_error =="false") || (firstnamne_error =="false") || (areacode_error =="false") || (phone_error =="false") || (county_error =="false")) {
        complete = "false";
      } else {complete = "true";}
      if (complete=="true") {
        return (true);
      } else if (complete=="false"){
        alert("Please fill in all mendatory fields.");
        return (false);
      }
    }
  }

  function checkEmail() {
    reg = new RegExp('^([a-zA-Z0-9\\-\\.\\_]+)'+    //Name
                  '(\\@)'+                       //@-Zeichen
                  '([a-zA-Z0-9\\-\\.]+)'+        //Domain
                  '(\\.)'+                       //Punkt
                  '([a-zA-Z]{2,4})$');           //TLD
    //alert(document.getElementById("email_address_ctq").value);
    if(reg.test(document.getElementById("email_address_ctq").value) == false){
      //alert("email falsch");
      return (false);
    } else {
      //alert("email richtig");
      return (true);
    }
  }

  function setEmail() {
    if (document.getElementById("allowemailspecial_ctc").checked == true) {
      document.getElementById("email_label_ctc").style.display="";
      document.getElementById("email_address_ctc").style.display="";
    } else {
      document.getElementById("email_label_ctc").style.display="none";
      document.getElementById("email_label_ctc").value="";
      document.getElementById("email_address_ctc").style.display="none";
      document.getElementById("email_address_ctc").value="";
    }
  }

  function checkMandatoryFieldsCTQ() {
    var complete ="false";
    var defaultValues ="false";
    var title_error ="true";
    var firstnamne_error ="true";
    var lastname_error ="true";
    var email_error ="true";
    var country_error ="true";
    var message_error ="true";

    if (document.getElementById("country_ctq").value=="") {
      if (document.getElementById("title_ctq").value=="") {
        if (document.getElementById("last_name_ctq").value=="") {
          if (document.getElementById("first_name_ctq").value=="") {
            if (document.getElementById("email_address_ctq").value=="") {
              if (document.getElementById("message_ctq").value=="") {
                defaultValues="true";
              } else {defaultValues ="false"}
            } else {defaultValues ="false"}
          } else {defaultValues ="false"}
        } else {defaultValues ="false"}
      } else {defaultValues ="false"}
    } else {defaultValues ="false"}

    if (defaultValues =="true") {
      Modalbox.hide();
    } else {
      if (document.getElementById("title_ctq").value!="") {
        title_error ="true";document.getElementById("titletext_ctq").style.color="#666666";
      } else {title_error ="false";document.getElementById("titletext_ctq").style.color="red";}

      if (document.getElementById("last_name_ctq").value!="") {
        lastname_error ="true";document.getElementById("lastnametext_ctq").style.color="#666666";
      }else {lastname_error ="false";document.getElementById("lastnametext_ctq").style.color="red";}

      if (document.getElementById("first_name_ctq").value!="") {
        firstname_error ="true";document.getElementById("firstnametext_ctq").style.color="#666666";
      }else {firstname_error ="false";document.getElementById("firstnametext_ctq").style.color="red";}

      if (document.getElementById("email_address_ctq").value!="") {
        emailCheck=checkEmail();
        if (emailCheck==true) {
          //alert ("test"+emailCheck);
          email_error ="true";document.getElementById("email_label_ctq").style.color="#666666";
          //alert(email_error);
        } else {email_error ="false";document.getElementById("email_label_ctq").style.color="red";}
      } else {email_error ="false";document.getElementById("email_label_ctq").style.color="red";}

      if (document.getElementById("country_ctq").value!="") {
        country_error ="true";document.getElementById("countrytext_ctq").style.color="#666666";
      } else {country_error ="false";document.getElementById("countrytext_ctq").style.color="red";}

      if (document.getElementById("message_ctq").value!="") {
        message_error ="true";document.getElementById("message_text_ctq").style.color="#666666";
      } else {message_error ="false";document.getElementById("message_text_ctq").style.color="red";}

      if ((title_error =="false") || (lastname_error =="false") || (firstname_error =="false")  || (email_error =="false") || (country_error =="false") || (message_error =="false")) {
        complete = "false";
      } else {complete = "true";}
      if (complete=="true") {
        return (true);
      } else if (complete=="false"){
        if (email_error =="false") {
          alert("Please fill in a valid email address.");
        } else {
          alert("Please fill in all mendatory fields.");
        }
        return (false);
      }
    }
  }

  function showAgencyCTQ(show) {
    if (show==1) {
      document.getElementById('agencylabel_ctq').style.display="";
      document.getElementById('agencyname_ctq').style.display="";
      document.getElementById('agency').value="true";
    }
    if (show==2) {
      document.getElementById('agencylabel_ctq').style.display="none";
      document.getElementById('agencyname_ctq').style.display="none";
      document.getElementById('agencyname_ctq').value="";
      document.getElementById('agency').value="false";
    }
  }

  function showAgencyCTC(show) {
    if (show==1) {
      document.getElementById('agencylabel_ctc').style.display="";
      document.getElementById('agencyname_ctc').style.display="";
    }
    if (show==2) {
      document.getElementById('agencylabel_ctc').style.display="none";
      document.getElementById('agencyname_ctc').style.display="none";
      document.getElementById('agencyname_ctc').value="";
    }
  }

  function showResNumCTQ(show) {
    if (show==1) {
      document.getElementById('res_num_text_ctq').style.display="";
      document.getElementById('res_num_ctq').style.display="";
      document.getElementById('NumberPassangersText').style.display="none";
      document.getElementById('NumberChildsText').style.display="none";
      document.getElementById('desttext').style.display="none";
      document.getElementById('dest_ctq').style.display="none";
      document.getElementById('shiptext_ctq').style.display="none";
      document.getElementById('ship_ctq').style.display="none";
      document.getElementById('travel_period_text').style.display="none";
      document.getElementById('travel_period_ctq').style.display="none";
      document.getElementById('travel_period_ctq').style.display="none";
    }
    if (show==2) {
      document.getElementById('res_num_text_ctq').style.display="none";
      document.getElementById('res_num_ctq').style.display="none";
      document.getElementById('res_num_ctq').value="";
      document.getElementById('NumberPassangersText').style.display="";
      document.getElementById('NumberChildsText').style.display="";
      document.getElementById('desttext').style.display="";
      document.getElementById('dest_ctq').style.display="";
      document.getElementById('shiptext_ctq').style.display="";
      document.getElementById('ship_ctq').style.display="";
      document.getElementById('travel_period_text').style.display="";
    }
  }

  function showResNumCTC(show) {
    if (show==1) {
      document.getElementById('res_num_text_ctc').style.display="";
      document.getElementById('res_num_ctc').style.display="";
    }
    if (show==2) {
      document.getElementById('res_num_text_ctc').style.display="none";
      document.getElementById('res_num_ctc').style.display="none";
      document.getElementById('res_num_ctc').value="";
    }
  }

  function showContactForm(show) {
    if (show==1) {
      document.getElementById('ctq-form').style.display="none";
      document.getElementById('ctc-form').style.display="";
      document.getElementById('header_phone_text').style.fontWeight="bold";
      document.getElementById('header_email_text').style.fontWeight="normal";
    }
    if (show==2) {
      document.getElementById('ctq-form').style.display="";
      document.getElementById('ctc-form').style.display="none";
      document.getElementById('header_phone_text').style.fontWeight="normal";
      document.getElementById('header_email_text').style.fontWeight="bold";
    }
  }
  function checkValue() {
    if (document.getElementById("aufmerksam_ctc").value=="others") {
      document.getElementById('others_ctc').style.display="";
    } else {
      document.getElementById('others_ctc').style.display="none";
      document.getElementById('others_ctc').value="";
    }
  }
  function checkValueCTQ() {
    if (document.getElementById("aufmerksam_ctq").value=="others") {
      document.getElementById('others_ctq').style.display="";
    } else {
      document.getElementById('others_ctq').style.display="none";
      document.getElementById('others_ctq').value="";
    }
  }

  function openModalContact(calender) {
    var header= "<div class=\"block\"><img alt=\"Signup_header\" src=\"http://www.ncl.eu/web/images/ctc/callback_header1.jpg\" align=\"right\"/ height=\"70px\"><p class=\"billing\" style=\"font-size:18px\"></p></div>";
    header +="<p class=\"billing\" style=\"margin-bottom:0px;margin-top:0px;font-weight:normal\">We’re happy to provide you with your individual offer.<br><br>It's your choice: Do you prefer to be contacted via phone or via e-mail?<br>Please choose below, give us some information we need for your individual offer and we will call or e-mail you.<br><br><div class=\"header_Border_left\"><span class=\"header_back_top\"><span class=\"header_resultBorder\"><span class=\"noDist\" name=\"header_phone_text\" id=\"header_phone_text\" style=\"font-weight:bold;\"><a href=\"javascript:showContactForm(1)\">&nbsp;&nbsp;&nbsp;&nbsp;via phone&nbsp;&nbsp;</a></span><span class=\"header_Border_right\">&nbsp;&nbsp;</span>&nbsp;&nbsp;<span class=\"noDist\" name=\"header_email_text\" id=\"header_email_text\"><a href=\"javascript:showContactForm(2)\">&nbsp;&nbsp;via e-mail&nbsp;&nbsp;&nbsp;&nbsp;</a></span></div><div class=\"dotDivider\"></div></p>";

    var tableContactCTQ = "<table>";
    tableContactCTQ += "<tr><td valign=\"top\"><label><p style=\"margin-bottom:1px;margin-top:0px;\" name=\"countrytext_ctq\" id=\"countrytext_ctq\">Where do you live?*</p></label>";
    tableContactCTQ += "<select name=\"country_ctq\" id=\"country_ctq\" size=\"1\" style=\"width:160px;font-size:9pt\" tabindex=\"7\"><option value=\"\">Please select<option value=\"AL\">Albania<option value=\"AD\">Andorra<option value=\"AT\">Austria<option value=\"BY\">Belarus<option value=\"BE\">Belgium<option value=\"BA\">Bosnia and Herzegovina<option value=\"BG\">Bulgaria<option value=\"HR\">Croatia/Hrvatska<option value=\"CY\">Cyprus<option value=\"CZ\">Czech Republic<option value=\"DK\">Danmark<option value=\"EE\">Estonia<option value=\"FO\">Faroe Islands<option value=\"FI\">Finland<option value=\"FR\">France<option value=\"DE\">Germany<option value=\"GR\">Greece<option value=\"HU\">Hungary<option value=\"IS\">Iceland<option value=\"IT\">Italy<option value=\"LV\">Latvia<option value=\"LI\">Liechtenstein<option value=\"LT\">Lithuania<option value=\"LU\">Luxembourg<option value=\"MK\">Macedonia<option value=\"MT\">Malta<option value=\"MD\">Moldova, Republic of<option value=\"MC\">Monaco<option value=\"NL\">Netherlands<option value=\"NO\">Norway<option value=\"PL\">Poland<option value=\"PT\">Portugal<option value=\"RO\">Romania<option value=\"RU\">Russian Federation<option value=\"SM\">San Marino<option value=\"SK\">Slovak Republic<option value=\"SI\">Slovenia<option value=\"ES\">Spain<option value=\"SE\">Sweden<option value=\"CH\">Switzerland<option value=\"TR\">Turkey<option value=\"UA\">Ukraine<option value=\"VA\">Vatican City State<option value=\"YU\">Yugoslavia</select></td>";
    tableContactCTQ += "<td valign=\"top\" colspan=\"3\"><label><p style=\"margin-left:3px;margin-bottom:1px;margin-top:0px;\" name=\"titletext_ctq\" id=\"titletext_ctq\">Title*</p></label><select name=\"title_ctq\" id=\"title_ctq\" size=\"1\" style=\"margin-left:3px;font-size:9pt;width:150px;font-size:9pt\"><option value=\"\">Please select<option value=\"Mr.\">Mr.<option value=\"Mrs.\">Mrs.<option value=\"Family\">Family</select></td></tr>";
    tableContactCTQ += "<tr><td valign=\"top\">";
    tableContactCTQ += "<label><p style=\"margin-bottom:0px;margin-top:0px\" name=\"firstnametext_ctq\" id=\"firstnametext_ctq\">First Name*</p></label>";
    tableContactCTQ += "<input name=\"first_name_ctq\" id=\"first_name_ctq\" style=\"width:152px;font-size:9pt\" tabindex=\"5\" type=\"text\" >";
    tableContactCTQ += "</td><td valign=\"top\">";
    tableContactCTQ += "<label><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px\" name=\"lastnametext_ctq\" id=\"lastnametext_ctq\">Last Name*</p></label>";
    tableContactCTQ += "<input name=\"last_name_ctq\" id=\"last_name_ctq\" style=\"margin-left:3px;width:145px;font-size:9pt\" tabindex=\"6\" type=\"text\">";
    tableContactCTQ += "</td></tr>";
    tableContactCTQ += "<tr><td colspan=\"2\"><label><p style=\"margin-bottom:0px;margin-top:0px;\" name=\"email_label_ctq\" id=\"email_label_ctq\" tabindex=\"11\">E-mail*</p></label>";
    tableContactCTQ += "<input type=\"text\" name=\"email_address_ctq\" id=\"email_address_ctq\" style=\"font-size:9pt\" tabindex=\"12\" style=\"width:315px\">";
    tableContactCTQ += "<tr><td colspan=\"2\"><p style=\"margin-bottom:0px;margin-top:0px\"><input type=\"checkbox\" name=\"allowemailspecial_ctq\" id=\"allowemailspecial_ctq\" tabindex=\"10\">Please email me NCL Specials & Promotions</p></td></tr>";
    tableContactCTQ += "<tr><td colspan=\"2\"><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px\">Are you a travel agent?*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    tableContactCTQ += "<input name=\"agency_ctq\" id=\"agency_ctq\" type=\"radio\" value=\"true\" tabindex=\"1\" onclick=\"javascript:showAgencyCTQ(1)\">";
    tableContactCTQ += "<label>Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;";
    tableContactCTQ += "<input name=\"agency_ctq\" id=\"agency_ctq\" type=\"radio\" value=\"false\" checked tabindex=\"2\" onclick=\"javascript:showAgencyCTQ(2)\">";
    tableContactCTQ += "<label>No</label></p></td></tr>";
    tableContactCTQ += "<tr><td colspan=\"2\"><label><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px;display:none\" id=\"agencylabel_ctq\" name=\"agencylabel_ctq\">Agency Name&nbsp;&nbsp;</label>";
    tableContactCTQ += "<input name=\"agencyname_ctq\" id=\"agencyname_ctq\" type=\"text\" style=\"margin-left:3px;display:none;width:225px;font-size:9pt\"></p></td></tr>";
    tableContactCTQ += "<tr><td colspan=\"3\"><label><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px;\" id=\"aufmerksam_ctq_text\" name=\"aufmerksam_ctq_text\">How did you learn about NCL Freestyle Cruising?*</label></p></td></tr>";
    tableContactCTQ += "<tr><td colspan=\"3\"><label><p><select name=\"aufmerksam_ctq\" id=\"aufmerksam_ctq\" size=\"1\" style=\"margin-left:3px;font-size:9pt;width:180px;\" onChange=\"javascript:checkValueCTQ();\"><option value=\"\">Please select from the following<option value=\"customer\">I am NCL client already<option value=\"searchengine\">search engine (e.g. google)<option value=\"travel_agency\">travel agency<option value=\"friends\">friends<option value=\"advertising_newspaper\">newsletter/magazine advertisement<option value=\"advertising_online\">internet advertisement<option value=\"others\">others</select>";
    tableContactCTQ += "<input name=\"others_ctq\" id=\"others_ctq\" type=\"text\" style=\"margin-left:3px;display:none;width:127px;font-size:9pt\"></p></td></tr>";
    tableContactCTQ += "</table>";

    var cruiseDetailsCTQ ="<table><tr><td colspan=\"3\"><p style=\"margin-bottom:0px;margin-top:0px\">Do you already have a reservation with NCL?<br>";
    cruiseDetailsCTQ += "<input name=\"boobing_ctq\" id=\"boobing_ctq\" type=\"radio\" value=\"true\" tabindex=\"3\" onclick=\"javascript:showResNumCTQ(1)\">";
    cruiseDetailsCTQ += "<label>Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;";
    cruiseDetailsCTQ += "<input name=\"boobing_ctq\" id=\"boobing_ctq\" type=\"radio\" value=\"false\" checked tabindex=\"4\" onclick=\"javascript:showResNumCTQ(2)\">";
    cruiseDetailsCTQ += "<label>No</label></p></td></tr>";
    cruiseDetailsCTQ += "<tr><td valign=\"top\"><label><p style=\"margin-bottom:0px;margin-top:0px;display:none\" name=\"res_num_text_ctq\" id=\"res_num_text_ctq\">Reservation Number</label>&nbsp;&nbsp;&nbsp;&nbsp;";
    cruiseDetailsCTQ += "<input name=\"res_num_ctq\" id=\"res_num_ctq\" style=\"width:140px;display:none;font-size:9pt\" tabindex=\"5\" type=\"text\"><br><span class=\"small_text\">(If available)</span></p></td></tr>";
    cruiseDetailsCTQ += "<tr><td><label><p style=\"margin-bottom:0px;margin-top:0px\" id=\"NumberPassangersText\" name=\"NumberPassangersText\">No. of Adults:</label>&nbsp;&nbsp;&nbsp;<select name=\"num_adults_ctq\" id=\"num_adults_ctq\" size=\"1\" style=\"width:40px;font-size:9pt\"><option value=\"0\">0<option value=\"1\">1<option value=\"2\" selected>2<option value=\"3\">3<option value=\"4\">4<option value=\"5\">5<option value=\"6\">6<option value=\"7\">7<option value=\"8\">8<option value=\"9\">9<option value=\"10\">10<option value=\"11\">11<option value=\"12\">12<option value=\"13\">13<option value=\"14\">14<option value=\"15\">15<option value=\"16\">16<option value=\"17\">17<option value=\"18\">18<option value=\"19\">19<option value=\"20\">20<option value=\"21\">21<option value=\"22\">22<option value=\"23\">23<option value=\"24\">24<option value=\"25\">25<option value=\"26\">26<option value=\"27\">27<option value=\"28\">28<option value=\"29\">29<option value=\"30\">30<option value=\"31\">31<option value=\"32\">32<option value=\"33\">33<option value=\"34\">34<option value=\"35\">35<option value=\"36\">36<option value=\"37\">37<option value=\"38\">38<option value=\"39\">39<option value=\"40\">40<option value=\"41\">41<option value=\"42\">42<option value=\"43\">43<option value=\"44\">44<option value=\"45\">45<option value=\"46\">46<option value=\"47\">47<option value=\"48\">48<option value=\"49\">49<option value=\"50\">50<option value=\"51\">51<option value=\"52\">52<option value=\"53\">53<option value=\"54\">54<option value=\"55\">55<option value=\"56\">56<option value=\"57\">57<option value=\"58\">58<option value=\"59\">59<option value=\"60\">60<option value=\"61\">61<option value=\"62\">62<option value=\"63\">63<option value=\"64\">64<option value=\"65\">65<option value=\"66\">66<option value=\"67\">67<option value=\"68\">68<option value=\"69\">69<option value=\"70\">70<option value=\"71\">71<option value=\"72\">72<option value=\"73\">73<option value=\"74\">74<option value=\"75\">75<option value=\"76\">76<option value=\"77\">77<option value=\"78\">78<option value=\"79\">79<option value=\"80\">80<option value=\"81\">81<option value=\"82\">82<option value=\"83\">83<option value=\"84\">84<option value=\"85\">85<option value=\"86\">86<option value=\"87\">87<option value=\"88\">88<option value=\"89\">89<option value=\"90\">90<option value=\"91\">91<option value=\"92\">92<option value=\"93\">93<option value=\"94\">94<option value=\"95\">95<option value=\"96\">96<option value=\"97\">97<option value=\"98\">98<option value=\"99\">99</select></p></td></tr>";
    cruiseDetailsCTQ += "<tr><td><label><p style=\"margin-bottom:0px;margin-top:0px\" id=\"NumberChildsText\" name=\"NumberChildsText\">No. of Children:</label>&nbsp;<span>Under 17</span>&nbsp;&nbsp;&nbsp;<select name=\"num_child_u17_ctq\" id=\"num_child_u17_ctq\" size=\"1\" style=\"width:40px;font-size:9pt\"><option value=\"0\">0<option value=\"1\">1<option value=\"2\">2<option value=\"3\">3<option value=\"4\">4<option value=\"5\">5<option value=\"6\">6<option value=\"7\">7<option value=\"8\">8<option value=\"9\">9<option value=\"10\">10<option value=\"11\">11<option value=\"12\">12<option value=\"13\">13<option value=\"14\">14<option value=\"15\">15<option value=\"16\">16<option value=\"17\">17<option value=\"18\">18<option value=\"19\">19<option value=\"20\">20<option value=\"21\">21<option value=\"22\">22<option value=\"23\">23<option value=\"24\">24<option value=\"25\">25<option value=\"26\">26<option value=\"27\">27<option value=\"28\">28<option value=\"29\">29<option value=\"30\">30<option value=\"31\">31<option value=\"32\">32<option value=\"33\">33<option value=\"34\">34<option value=\"35\">35<option value=\"36\">36<option value=\"37\">37<option value=\"38\">38<option value=\"39\">39<option value=\"40\">40<option value=\"41\">41<option value=\"42\">42<option value=\"43\">43<option value=\"44\">44<option value=\"45\">45<option value=\"46\">46<option value=\"47\">47<option value=\"48\">48<option value=\"49\">49<option value=\"50\">50<option value=\"51\">51<option value=\"52\">52<option value=\"53\">53<option value=\"54\">54<option value=\"55\">55<option value=\"56\">56<option value=\"57\">57<option value=\"58\">58<option value=\"59\">59<option value=\"60\">60<option value=\"61\">61<option value=\"62\">62<option value=\"63\">63<option value=\"64\">64<option value=\"65\">65<option value=\"66\">66<option value=\"67\">67<option value=\"68\">68<option value=\"69\">69<option value=\"70\">70<option value=\"71\">71<option value=\"72\">72<option value=\"73\">73<option value=\"74\">74<option value=\"75\">75<option value=\"76\">76<option value=\"77\">77<option value=\"78\">78<option value=\"79\">79<option value=\"80\">80<option value=\"81\">81<option value=\"82\">82<option value=\"83\">83<option value=\"84\">84<option value=\"85\">85<option value=\"86\">86<option value=\"87\">87<option value=\"88\">88<option value=\"89\">89<option value=\"90\">90<option value=\"91\">91<option value=\"92\">92<option value=\"93\">93<option value=\"94\">94<option value=\"95\">95<option value=\"96\">96<option value=\"97\">97<option value=\"98\">98<option value=\"99\">99</select>&nbsp;&nbsp;<span>Under 2</span>&nbsp;&nbsp;&nbsp;<select name=\"num_child_u2_ctq\" id=\"num_adults_ctq\"\"num_child_u2_ctq\" size=\"1\" style=\"width:40px;font-size:9pt\"><option value=\"0\">0<option value=\"1\">1<option value=\"2\">2<option value=\"3\">3<option value=\"4\">4<option value=\"5\">5<option value=\"6\">6<option value=\"7\">7<option value=\"8\">8<option value=\"9\">9<option value=\"10\">10<option value=\"11\">11<option value=\"12\">12<option value=\"13\">13<option value=\"14\">14<option value=\"15\">15<option value=\"16\">16<option value=\"17\">17<option value=\"18\">18<option value=\"19\">19<option value=\"20\">20<option value=\"21\">21<option value=\"22\">22<option value=\"23\">23<option value=\"24\">24<option value=\"25\">25<option value=\"26\">26<option value=\"27\">27<option value=\"28\">28<option value=\"29\">29<option value=\"30\">30<option value=\"31\">31<option value=\"32\">32<option value=\"33\">33<option value=\"34\">34<option value=\"35\">35<option value=\"36\">36<option value=\"37\">37<option value=\"38\">38<option value=\"39\">39<option value=\"40\">40<option value=\"41\">41<option value=\"42\">42<option value=\"43\">43<option value=\"44\">44<option value=\"45\">45<option value=\"46\">46<option value=\"47\">47<option value=\"48\">48<option value=\"49\">49<option value=\"50\">50<option value=\"51\">51<option value=\"52\">52<option value=\"53\">53<option value=\"54\">54<option value=\"55\">55<option value=\"56\">56<option value=\"57\">57<option value=\"58\">58<option value=\"59\">59<option value=\"60\">60<option value=\"61\">61<option value=\"62\">62<option value=\"63\">63<option value=\"64\">64<option value=\"65\">65<option value=\"66\">66<option value=\"67\">67<option value=\"68\">68<option value=\"69\">69<option value=\"70\">70<option value=\"71\">71<option value=\"72\">72<option value=\"73\">73<option value=\"74\">74<option value=\"75\">75<option value=\"76\">76<option value=\"77\">77<option value=\"78\">78<option value=\"79\">79<option value=\"80\">80<option value=\"81\">81<option value=\"82\">82<option value=\"83\">83<option value=\"84\">84<option value=\"85\">85<option value=\"86\">86<option value=\"87\">87<option value=\"88\">88<option value=\"89\">89<option value=\"90\">90<option value=\"91\">91<option value=\"92\">92<option value=\"93\">93<option value=\"94\">94<option value=\"95\">95<option value=\"96\">96<option value=\"97\">97<option value=\"98\">98<option value=\"99\">99</select></p></td></tr>";
    cruiseDetailsCTQ += "<tr><td><label><p style=\"margin-bottom:0px;margin-top:0px\" name=\"desttext\" id=\"desttext\">Destination</p></label><select name=\"dest_ctq\" id=\"dest_ctq\" size=\"1\" style=\"font-size:9pt;width:287px;\"><option value=\"\">Please select<option value=\"Mediterranean & Baltic Sea\">Mediterranean & Baltic Sea<option value=\"Caribbean & Bahamas\">Caribbean & Bahamas<option value=\"Hawaii\">Hawaii<option value=\"Alaska, Canada/New England\">Alaska, Canada/New England<option value=\"South America, Panama Canal, Mexican Riviera\">South America, Panama Canal, Mexican Riviera<option value=\"General Information\">General Information</select></label></td></tr>";
    cruiseDetailsCTQ += "<tr><td colspan=\"2\" valign=\"top\"><table><tr><td valign=\"top\" width=\"140px\"><label><p style=\"margin-bottom:0px;margin-top:0px\" name=\"shiptext_ctq\" id=\"shiptext_ctq\">Ship:</p></label><select name=\"ship_ctq\" id=\"ship_ctq\" size=\"1\" style=\"font-size:9pt;width:130px;\"><option value=\"\">Please select<option value=\"Dawn\">Norwegian Dawn<option value=\"Epic\">Norwegian Epic<option value=\"Gem\">Norwegian Gem<option value=\"Jade\">Norwegian Jade<option value=\"Jade\">Norwegian Jade<option value=\"Jewel\">Norwegian Jewel<option value=\"Majesty\">Norwegian Majesty<option value=\"Pearl\">Norwegian Pearl<option value=\"Sky\">Norwegian Sky<option value=\"Spirit\">Norwegian Spirit<option value=\"Star\">Norwegian Star<option value=\"Sun\">Norwegian Sun<option value=\"PAM\">Pride of America</select></label></td>";
    cruiseDetailsCTQ += "<td><label><p style=\"margin-bottom:0px;margin-top:0px\" name=\"travel_period_text\" id=\"travel_period_text\">When do you want to cruise?</p></label><input name=\"travel_period_ctq\" id=\"travel_period_ctq\" style=\"font-size:9pt;width:133px\" tabindex=\"9\" type=\"text\"></td></tr>";
    cruiseDetailsCTQ += "<tr><td valign=\"top\"><label><p style=\"margin-bottom:0px;margin-top:0px\" name=\"prefered_lang_text\" id=\"prefered_lang_text\">Prefered Language:</p></label><select name=\"lang_ctq\" id=\"lang_ctq\" size=\"1\" style=\"font-size:9pt;width:130px;\"><option value=\"\">Please select<option value=\"en\">English<option value=\"de\">German<option value=\"es\">Spanish<option value=\"it\">Italian<option value=\"fr\">French</select></label></td></tr></table></td></tr>";
    cruiseDetailsCTQ += "<tr><td><label><p style=\"margin-bottom:0px;margin-top:0px\" name=\"message_text_ctq\" id=\"message_text_ctq\">Additional information / requirements*</p><textarea name=\"message_ctq\" id=\"message_ctq\" cols=\"33\" rows=\"5\"></textarea></label></td></tr>";
    cruiseDetailsCTQ += "</table>";

    var tableCompleteCTQ ="<table><tr><td width=\"335px\" valign=\"top\"><fieldset style=\"height:325px;width:320px\">"+cruiseDetailsCTQ+"</fieldset><div><span class=\"small_text\" style=\"margin-top:0px;margin-bottom:0px\">We don’t share your personal data with third parties.</span></div></td>";
    tableCompleteCTQ += "<td width=\"340px\" valign=\"top\"><fieldset style=\"height:325px;340px\">"+tableContactCTQ+"</fieldset></td></tr>";
    tableCompleteCTQ += "</td></tr><tr><td><input type=\"hidden\" name=\"agency\" value=\"false\">";
    tableCompleteCTQ += "</td></tr><tr><td><input type=\"hidden\" name=\"modal_type\" value=\"modal_ctq\">";
    tableCompleteCTQ += "<span style=\"margin-top:0px;margin-bottom:0px\"><input type=\"submit\" value=\"Submit/Close\"><span class=\"small_text\">&nbsp;&nbsp;* Required field</span></span></td></tr></table>";

    var tableContactCTC = "<table>";
    var tableDate ="<table><tr><td>"+calendar+"</td></tr></table>";

    tableContactCTC += "<tr><td colspan=\"3\" valign=\"top\">";
    tableContactCTC += "<table><tr><td valign=\"top\">";
    tableContactCTC += "<label><p style=\"margin-bottom:0px;margin-top:5px\" name=\"countrytext\" id=\"countrytext\">Where do you live?*</p></label>";
    tableContactCTC += "<select name=\"country_ctc\" id=\"country_ctc\" size=\"1\" style=\"font-size:9pt;width:150px;\" tabindex=\"7\"><option value=\"\">Please select<option value=\"AL\">Albania<option value=\"AD\">Andorra<option value=\"AT\">Austria<option value=\"BY\">Belarus<option value=\"BE\">Belgium<option value=\"BA\">Bosnia and Herzegovina<option value=\"BG\">Bulgaria<option value=\"HR\">Croatia/Hrvatska<option value=\"CY\">Cyprus<option value=\"CZ\">Czech Republic<option value=\"DK\">Danmark<option value=\"EE\">Estonia<option value=\"FO\">Faroe Islands<option value=\"FI\">Finland<option value=\"FR\">France<option value=\"DE\">Germany<option value=\"GR\">Greece<option value=\"HU\">Hungary<option value=\"IS\">Iceland<option value=\"IT\">Italy<option value=\"LV\">Latvia<option value=\"LI\">Liechtenstein<option value=\"LT\">Lithuania<option value=\"LU\">Luxembourg<option value=\"MK\">Macedonia<option value=\"MT\">Malta<option value=\"MD\">Moldova, Republic of<option value=\"MC\">Monaco<option value=\"NL\">Netherlands<option value=\"NO\">Norway<option value=\"PL\">Poland<option value=\"PT\">Portugal<option value=\"RO\">Romania<option value=\"RU\">Russian Federation<option value=\"SM\">San Marino<option value=\"SK\">Slovak Republic<option value=\"SI\">Slovenia<option value=\"ES\">Spain<option value=\"SE\">Sweden<option value=\"CH\">Switzerland<option value=\"TR\">Turkey<option value=\"UA\">Ukraine<option value=\"VA\">Vatican City State<option value=\"YU\">Yugoslavia</select></td>";
    tableContactCTC += "<td><label><p style=\"margin-bottom:0px;margin-top:5px\" name=\"phone_area_text\" id=\"phone_area_text\">Phone Area Code*&nbsp;/&nbsp;&nbsp;Phone*</p></label>";
    tableContactCTC += "<input name=\"area_code_ctc\" id=\"area_code_ctc\" style=\"width:40px;font-size:9pt\" tabindex=\"8\" type=\"text\"> / <input name=\"phone_ctc\" id=\"phone_ctc\" style=\"width:70px;font-size:9pt\" tabindex=\"9\" type=\"text\">";
    tableContactCTC += "</td></tr></table>";
    tableContactCTC += "<tr><td valign=\"top\" colspan=\"3\"><label><p style=\"margin-left:3px;margin-bottom:1px;margin-top:5px\" name=\"titletext\" id=\"titletext\">Title*</p></label><select name=\"title_ctc\" id=\"title_ctc\" size=\"1\" style=\"margin-left:3px;font-size:9pt;width:150px;\"><option value=\"\">Please select<option value=\"Mr.\">Mr.<option value=\"Mrs.\">Mrs.<option value=\"Family\">Family</select>";
    tableContactCTC += "</td></tr><tr><td valign=\"top\">";
    tableContactCTC += "<label><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px\" name=\"firstnametext\" id=\"firstnametext\">First Name*</p></label>";
    tableContactCTC += "<input name=\"first_name_ctc\" id=\"first_name_ctc\" style=\"margin-left:3px;width:144px;font-size:9pt\" tabindex=\"5\" type=\"text\" >";
    tableContactCTC += "</td><td valign=\"top\">";
    tableContactCTC += "<label><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px\" name=\"lastnametext\" id=\"lastnametext\">Last Name*</p></label>";
    tableContactCTC += "<input name=\"last_name_ctc\" id=\"last_name_ctc\" style=\"margin-left:3px;width:160px;font-size:9pt\" tabindex=\"6\" type=\"text\" >";
    tableContactCTC += "</td><td>&nbsp;</td></tr>";
    tableContactCTC += "<tr><td colspan=\"3\"><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px\">Do you already have a reservation with NCL?&nbsp;&nbsp;&nbsp;&nbsp;";
    tableContactCTC += "<input name=\"boobing_ctc\" id=\"boobing_ctc\" type=\"radio\" value=\"true\" tabindex=\"3\" onclick=\"javascript:showResNumCTC(1)\">";
    tableContactCTC += "<label>Yes</label>&nbsp;&nbsp;";
    tableContactCTC += "<input name=\"boobing_ctc\" id=\"boobing_ctc\" type=\"radio\" value=\"false\" checked tabindex=\"4\" onclick=\"javascript:showResNumCTC(2)\">";
    tableContactCTC += "<label>No</label></p></td></tr>";
    tableContactCTC += "<tr><td valign=\"top\" colspan=\"2\"><label><p style=\"margin-bottom:0px;margin-top:0px;display:none;font-size:9pt\" name=\"res_num_text_ctc\" id=\"res_num_text_ctc\">Reservation Number</label>&nbsp;&nbsp;&nbsp;&nbsp;";
    tableContactCTC += "<input name=\"res_num_ctc\" id=\"res_num_ctc\" style=\"width:140px;display:none;font-size:9pt\" tabindex=\"5\" type=\"text\"><br><span class=\"small_text\">(If available)</span></p></td></tr>";
    tableContactCTC += "<tr><td colspan=\"2\"><p style=\"margin-bottom:0px;margin-top:0px\"><input type=\"checkbox\" name=\"allowemailspecial_ctc\" id=\"allowemailspecial_ctc\" tabindex=\"10\" onclick=\"javascript:setEmail()\">Please email me NCL Specials & Promotions</p></td></tr>";
    tableContactCTC += "<tr><td colspan=\"2\"><label><p style=\"margin-bottom:0px;margin-top:0px;display:none\" name=\"email_label_ctc\" id=\"email_label_ctc\" tabindex=\"11\" >Email&nbsp;&nbsp;</label>";
    tableContactCTC += "<input type=\"text\" name=\"email_address_ctc\" id=\"email_address_ctc\" tabindex=\"12\" style=\"display:none;width:285px;font-size:9pt\"></p></td></tr>";
    tableContactCTC += "<tr><td colspan=\"3\"><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px\">Are you a travel agent?*&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
    tableContactCTC += "<input name=\"agency_ctc\" name=\"agency_ctc\" id=\"agency_ctc\" type=\"radio\" value=\"true\" tabindex=\"1\" onclick=\"javascript:showAgencyCTC(1)\">";
    tableContactCTC += "<label>Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;";
    tableContactCTC += "<input name=\"agency_ctc\" name=\"agency_ctc\" id=\"agency_ctc\" type=\"radio\" value=\"false\" checked tabindex=\"2\" onclick=\"javascript:showAgencyCTC(2)\">";
    tableContactCTC += "<label>No</label></p></td></tr>";
    tableContactCTC += "<tr><td colspan=\"3\"><label><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px;display:none\" id=\"agencylabel_ctc\" name=\"agencylabel_ctc\">Agency Name&nbsp;&nbsp;</label>";
    tableContactCTC += "<input name=\"agencyname_ctc\" id=\"agencyname_ctc\" type=\"text\" style=\"margin-left:3px;display:none;width:235px;font-size:9pt\"></p></td></tr>";
    tableContactCTC += "<tr><td colspan=\"3\"><label><p style=\"margin-left:3px;margin-bottom:0px;margin-top:0px;\" id=\"aufmerksam_ctc_text\" name=\"aufmerksam_ctc_text\">How did you learn about NCL Freestyle Cruising?*</label></p></td></tr>";
    tableContactCTC += "<tr><td colspan=\"3\"><label><p><select name=\"aufmerksam_ctc\" id=\"aufmerksam_ctc\" size=\"1\" style=\"margin-left:3px;font-size:9pt;width:167px;\" onChange=\"javascript:checkValue();\"><option value=\"\">Please select from the following<option value=\"customer\">I am NCL client already<option value=\"searchengine\">search engine (e.g. google)<option value=\"travel_agency\">travel agency<option value=\"friends\">friends<option value=\"advertising_newspaper\">newsletter/magazine advertisement<option value=\"advertising_online\">internet advertisement<option value=\"others\">others</select>";
    tableContactCTC += "<input name=\"others_ctc\" id=\"others_ctc\" type=\"text\" style=\"margin-left:3px;display:none;width:150px;font-size:9pt\"></p></td></tr>";

    tableContactCTC += "</table>";

    var tableCompleteCTC ="<table><tr><td width=\"285px\" valign=\"top\"><fieldset style=\"height:325px;width:285px\">"+tableDate+"</fieldset><div><span class=\"small_text\" style=\"margin-top:0px;margin-bottom:0px\">We don’t share your personal data with third parties.</span></td></div>";
    tableCompleteCTC += "<td width=\"360px\" valign=\"top\"><fieldset style=\"height:325px;width:355px\">"+tableContactCTC+"</fieldset></td></tr>";
    tableCompleteCTC += "<tr><td><input type=\"hidden\" name=\"modal_type\" value=\"ctc\">";
    tableCompleteCTC += "<span style=\"margin-top:0px;margin-bottom:0px\"><input type=\"submit\" value=\"Submit/Close\"><span class=\"small_text\">&nbsp;&nbsp;* Required field</span></span></td></tr></table>";


    var ShowText = header;
    ShowText += "<div name=\"ctq-form\" id=\"ctq-form\" style=\"display:none;\"><form class=\"new_signup_request_ctq\" id=\"callback_form_ctq\" name=\"callback_form_ctq\" method=\"post\" action=\"http://www.ncl.eu/itinerary/insert_ctq.php\" onsubmit=\"return checkMandatoryFieldsCTQ(this)\">"+tableCompleteCTQ+"<span class=\"small_text\" style=\"margin-top:0px\">If you prefer to call us, we’re happy, too: 00800 03 10 21 21 (toll-free from landline network) or if you call from France: +49 1805 62 55 27<br>(€ 0,14/min. from landline network)</span></form></div>";
    ShowText += "<div name=\"ctc-form\" id=\"ctc-form\"><form class=\"new_signup_request_ctc\" id=\"callback_form_ctc\" name=\"callback_form_ctc\" method=\"post\" action=\"http://www.ncl.eu/itinerary/insert_ctc.php\" onsubmit=\"return checkMandatoryFields(this)\">"+tableCompleteCTC+"<span class=\"small_text\" style=\"margin-top:0px\">If you prefer to call us, we’re happy, too: 00800 03 10 21 21 (toll-free from landline network) or if you call from France: +49 1805 62 55 27<br>(€ 0,14/min. from landline network)</span></form></div>";

    Modalbox.show(ShowText, {title: "Are you interested in an individual offer?", height: 575, width: 725}); return false;
  }

  function openModalClickToQuoteAnswer() {
      var test="<p class=\"billing\">Thank you for your inquiry and your interest in NCL Freestyle Cruising.<br><br>We will get back to you by e-mail as soon as possible.<br><br>If you also registered for our Newsletter you will be receiving an e-mail with a confirmation link soon.<br>In order to receive the NCL Newsletter simply click on the link in the e-mail.<br><br>Your NCL Freestyle Cruising Team</p>";
      Modalbox.show(test, {title: "Thank you very much for your registration.", height: 250, width: 450 }); return false;
  }

   function openModalClickToCallAnswer() {
      var test="<p class=\"billing\">Thank you very much for your registration.<br><br>It will be our pleasure to call you at the selected time.<br><br>If you also registered for our Newsletter you will be receiving an e-mail with a confirmation link soon.<br>In order to receive the NCL Newsletter simply click on the link in the e-mail.<br><br>Your NCL Freestyle Cruising Team</p>";
      Modalbox.show(test, {title: "Thank you very much for your registration.", height: 250, width: 450 }); return false;
  }