  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="black";
      } 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="black";
      }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="black";
      }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="black";
      } 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="black";
      } 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="black";
      } 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 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 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 openModalClickToCall() {
    var ShowText = "<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)\">";
    var header= "<div class=\"block\"><img alt=\"Signup_header\" src=\"http://www.ncl.eu/web/images/ctc/callback_header.jpg\" align=\"left\"/><h6 class=\"title16px\">Let me help you plan your Freestyle cruise!</h6></div>";
    header += "<br><p style=\"margin-top:0px\">NCL Cruise Consultants are available Mon &ndash; Fri: 09:00 &ndash; 19:00, Sat : 09:00 &ndash; 14:00</p><br>";
    header += "<br><div id=\"another_search_ctc\"><div class=\"dotDivider\"></div><p style=\"margin-top:2px;margin-bottom:2px;margin-left:5px;\"><b>Fill out the form below to have a Cruise Consultant call you or contact your local travel agent.</b></p><div class=\"dotDivider\"></div></div>";
    header += "<p class=\"small_text\">* Required field</p><br>";
    var text = "<table><tr><td colspan=\"2\"><p style=\"margin-bottom:0px;margin-top:0px;\">Are you a travel agent?*&nbsp;&nbsp;&nbsp;";
    text += "<input name=\"agency_ctc\" id=\"agency_ctc\" type=\"radio\" value=\"true\" tabindex=\"1\" onclick=\"javascript:showAgencyCTC(1)\">";
    text += "<label>Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;";
    text += "<input name=\"agency_ctc\" id=\"agency_ctc\" type=\"radio\" value=\"false\" checked tabindex=\"2\" onclick=\"javascript:showAgencyCTC(2)\">";
    text += "<label>No</label></p></td></tr>";
    text += "<tr><td><label><p style=\"margin-bottom:0px;margin-top:0px;display:none\" name=\"agencylabel_ctc\" id=\"agencylabel_ctc\">Agency Name</p></label>";
    text += "<input name=\"agencyname_ctc\" id=\"agencyname_ctc\" type=\"text\" style=\"display:none;width:363px\"></td></tr>";
    text += "<tr><td colspan=\"3\"><p style=\"margin-bottom:0px;margin-top:0px;\">Do you already have a reservation with NCL?&nbsp;&nbsp;&nbsp;&nbsp;";
    text += "<input name=\"boobing_ctc\" id=\"boobing_ctc\" type=\"radio\" value=\"true\" tabindex=\"3\">";
    text += "<label>Yes</label>&nbsp;&nbsp;&nbsp;&nbsp;";
    text += "<input name=\"boobing_ctc\" id=\"boobing_ctc\" type=\"radio\" value=\"false\" checked tabindex=\"4\">";
    text += "<label>No</label></p></td></tr></table>";
    text += "<table id=\"cb_layout\"><tr><td valign=\"top\"><label><p style=\"margin-bottom:1px;\" name=\"titletext\" id=\"titletext\">Title*</p></label><select name=\"title_ctc\" id=\"title_ctc\" size=\"1\" style=\"font-size:13px;width:100px;\"><option value=\"\">Please select<option value=\"Mr.\">Mr.<option value=\"Mrs.\">Mrs.<option value=\"Family\">Family</select></p>";
    text += "</td><td valign=\"top\">";
    text += "<label><p style=\"margin-bottom:0px\" name=\"firstnametext\" id=\"firstnametext\">First Name*</p></label>";
    text += "<input name=\"first_name_ctc\" id=\"first_name_ctc\" style=\"width:175px\" tabindex=\"5\" type=\"text\" >";
    text += "</td><td valign=\"top\">";
    text += "<label><p style=\"margin-bottom:0px\" name=\"lastnametext\" id=\"lastnametext\">Last Name*</p></label>";
    text += "<input name=\"last_name_ctc\" id=\"last_name_ctc\"  style=\"width:178px\" tabindex=\"6\" type=\"text\" >";
    text += "</td></tr></table><table><tr><td>";
    text += "<label><p style=\"margin-bottom:0px\" name=\"countrytext\" id=\"countrytext\">Where do you live?*</p></label>";
    text += "<select name=\"country_ctc\" id=\"country_ctc\" size=\"1\" style=\"font-size:13px\" 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>";
    text += "</td><td>";
    text += "<label><p style=\"margin-bottom:0px\" name=\"phone_area_text\" id=\"phone_area_text\">Phone Area Code*&nbsp;/&nbsp;&nbsp;Phone*</p></label>";
    text += "<input name=\"area_code_ctc\" id=\"area_code_ctc\" style=\"width:60px\" tabindex=\"8\" type=\"text\" > / <input name=\"phone_ctc\" id=\"phone_ctc\" style=\"width:100px\" tabindex=\"7\" type=\"text\" >";
    text += "</td></tr>";
    text += "<tr><td colspan=\"2\"><p><input type=\"checkbox\" name=\"allowemailspecial_ctc\" id=\"allowemailspecial_ctc\" tabindex=\"9\" onclick=\"javascript:setEmail();\">Please email me NCL Specials & Promotions</p></td></tr>";
    text += "<tr><td colspan=\"2\">";
    text += "<label><p style=\"margin-bottom:0px;margin-top:0px;display:none\" name=\"email_label_ctc\" id=\"email_label_ctc\">Email</p></label>";
    text += "<input name=\"email_address_ctc\" id=\"email_address_ctc\" size=\"24\" tabindex=\"10\" type=\"text\" style=\"display:none;width:360px\">";
    text += "</td></tr></table>";
    text += "<input type=\"hidden\" name=\"modal_type\" value=\"ctc\">";
    text += "<p><input type=\"submit\" value=\"Submit/Close\"></p>";
    ShowText += header + text;
    ShowText += "</form>";
    Modalbox.show(ShowText, {title: "&nbsp;", height: 550, width: 700}); return false;
  }
