ame="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> class="desktop_container"> l" -->

This website uses Cookies in order to deliver to you a personalized responsive service, give you the best possible experience and help us improve the website. By closing this message and continuing to browse this website without changing your Cookies settings, you consent to our use of Cookies on this device. For more details, please click here to read our Privacy Policy Statement. [Close]

BOOK NOW
/about/">ABOUT US
  • NEWS & PROMOTIONS
  • ACCOMMODATION
  • FOOD & BEVERAGE
  • SERVICES & FACILITIES
  • LOCATION
  • DISCOVERY
  • -->
    success = false; } if ($('#last_name').val() == "") { $('#err_last_name').html('Please input your Last Name.'); $('#err_last_name').show(); success = false; } if ($('#email').val() == "") { $('#err_email').html('Please input your email address.'); $('#err_email').show(); success = false; } else if (chk_email($('#email').val()) == false) { $('#err_email').html('Please input a valid email address.'); $('#err_email').show(); success = false; } if ($('#email2').val() == "" || $('#email').val() != $('#email2').val()) { $('#err_email2').html('Invalid re-type email.'); $('#err_email2').show(); success = false; } if ($('#area_code').val() == "") { $('#err_area_code').html('Please input your area code.'); $('#err_area_code').show(); success = false; } /*if ($('#phone').val() == "") { $('#err_phone').html('Please input your mobile phone.'); $('#err_phone').show(); success = false; }*/ /*if ($('#message').val() == "") { $('#err_message').html('Please input your Message.'); $('#err_message').show(); success = false; }*/ if ($('#verification_code').val() == "") { $('#err_verification_code').html('Please input your verification code.'); $('#err_verification_code').show(); success = false; } if (!document.getElementById('agree').checked) { $('#err_agree').html('You must tick "AGREE" to make the eNews subscription complete and valid.'); $('#err_agree').show(); success = false; } if ($('input[name=salutation]:checked').length == 0) { $('#err_salutation').html('Please select prefix.'); $('#err_salutation').show(); success = false; } return success; } function hide_errmsg() { $('#err_first_name').hide(); $('#err_last_name').hide(); $('#err_email').hide(); $('#err_email2').hide(); $('#err_area_code').hide(); $('#err_phone').hide(); $('#err_verification_code').hide(); $('#err_agree').hide(); $('#err_salutation').hide(); } function chk_email(emailStr) { var checkTLD = 1; var knownDomsPat = /^(com|net|org|edu|int|mil|gov|arpa|biz|aero|name|coop|info|pro|museum)$/; var emailPat = /^(.+)@(.+)$/; var specialChars = "\\(\\)><@,;:\\\\\\\"\\.\\[\\]"; var validChars = "\[^\\s" + specialChars + "\]"; var quotedUser = "(\"[^\"]*\")"; var ipDomainPat = /^\[(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\]$/; var atom = validChars + '+'; var word = "(" + atom + "|" + quotedUser + ")"; var userPat = new RegExp("^" + word + "(\\." + word + ")*$"); var domainPat = new RegExp("^" + atom + "(\\." + atom + ")*$"); var matchArray = emailStr.match(emailPat); if (matchArray == null) { return false; } var user = matchArray[1]; var domain = matchArray[2]; for (i = 0; i < user.length; i++) { if (user.charCodeAt(i) > 127) { return false; } } for (i = 0; i < domain.length; i++) { if (domain.charCodeAt(i) > 127) { return false; } } if (user.match(userPat) == null) { return false; } var IPArray = domain.match(ipDomainPat); if (IPArray != null) { for (var i = 1; i <= 4; i++) { if (IPArray[i] > 255) { return false; } } return true; } var atomPat = new RegExp("^" + atom + "$"); var domArr = domain.split("."); var len = domArr.length; for (i = 0; i < len; i++) { if (domArr[i].search(atomPat) == -1) { return false; } } if (checkTLD && domArr[domArr.length - 1].length != 2 && domArr[domArr.length - 1].search(knownDomsPat) == -1) { return false; } if (len < 2) { return false; } return true; } $(function(){ $("#siimage").attr("src","../captcha/securimage3/securimage_show.php?sid=" + Math.random()).load(function() {$("#siimage").show();}); }); function reloadCaptcha(){ $("#siimage").attr("src","../captcha/securimage3/securimage_show.php?sid=" + Math.random()); } $("#savebtn").click(function (e) { e.preventDefault(); if (chk_form()){ var data = {"action": "contactus"}; data = $("#form1").serialize() + "&" + $.param(data); //alert(data); $.ajax({ url: "../common/submitform.php", type: "POST", data: data, cache: false, dataType: "json", success: function (data) { if (data.result == 1){ reloadCaptcha(); $("#input-form").hide(); $("#thankyou_page").show(); }else{ reloadCaptcha(); $( "#verification_code" ).focus(); $( "#verification_code" ).val(''); $('#err_verification_code').html('Invalid verification code.'); $('#err_verification_code').show(); } //alert('Result : ' + data['result'] + ', Message : ' + data['message']); } }); } }); $(document).ready(function () { $(".integeronly").keydown(function (e) { if (e.shiftKey) e.preventDefault(); else { var nKeyCode = e.keyCode; if (nKeyCode == 8 || nKeyCode == 9) return; if (nKeyCode < 95) { if (nKeyCode < 48 || nKeyCode > 57) e.preventDefault(); } else { if (nKeyCode < 96 || nKeyCode > 105) e.preventDefault(); } } }); });