/* EAS */

/* global variables */
var titles = new Array('Mr', 'Miss', 'Mrs', 'Ms');

var locations = {
"HK": "Hong Kong",
"KLN": "Kowloon",
"NT": "New Territories"
};

var statuses = {
'ARV': 'Pending review by the HKMC',
'AOH': 'Pending further information from the bank',
'COH': 'Pending further information from the bank',
'AIP': 'Approved in principal',
'CMD': 'Approved',
'WDN': 'Withdrawn by the bank',
'AEX': 'Application has expired',
'CEX': 'Application has expired',
'ARJ': 'Rejected',
'CRJ': 'Rejected'
};

var banks = {
"BCHK": "Bank of China (Hong Kong) Limited",
"BCMK": "Bank of Communications Co. Ltd.",
"BOAK": "China Construction Bank (Asia) Corporation Limited",
"AIGF": "China Construction Bank (Asia) Finance Limited",
"CYBC": "Chiyu Banking Corporation Limited",
"LCHB": "Chong Hing Bank Limited",
"CIHK": "Citibank (Hong Kong) Limited",
"KWHK": "CITIC Bank International Limited",
"DSFX": "Dah Sing Bank Limited",
"DHHK": "DBS Bank (Hong Kong) Limited",
"IBAX": "Fubon Bank (Hong Kong) Limited",
"GECF": "GE Capital (Hong Kong) Limited",
"HSHK": "Hang Seng Bank Limited",
"INCC": "Inchroy Credit Corporation Limited",
"UBHK": "Industrial and Commercial Bank of China (Asia) Limited",
"MEBL": "MEVAS Bank Limited",
"NYCB": "Nanyang Commercial Bank Limited",
"ACBL": "Public Bank (Hong Kong) Limited",
"SCBH": "Shanghai Commercial Bank Limited",
"CBHK": "Standard Chartered Bank (Hong Kong) Limited",
"BEAH": "The Bank of East Asia Limited",
"HSBC": "The Hongkong and Shanghai Banking Corporation Limited",
"ABNK": "The Royal Bank of Scotland N.V.",
"WIHB": "Wing Hang Bank Limited",
"WLHK": "Wing Lung Bank Limited"
};

var MSG_REQUIRE_HKID = 'Please enter your HKID!';
var MSG_VALID_HKID = 'Please enter a valid HKID!';
var MSG_VALID_DOB = 'Please enter your date of birth!';
var MSG_VALID_LOCATION = 'Please select your location!';
var MSG_VALID_BANK = 'Please select name of bank!';
var MSG_AGREE = 'Please accept the terms and conditions!';
var MSG_TERMS_TITLE = 'Terms &amp; Conditions';
var MSG_TERMS = "<div class=\"arial12_just\">I confirm and acknowledge that the following terms and conditions govern my use of the Status Enquiry for the Mortgage Insurance Programme (\"MIP\"):<ol type=\"a\"><li>my application records are confidential and The Hong Kong Mortgage Corporation Limited (\"HKMC\") has taken steps to safeguard this confidentiality. However, my cooperation is required in order for the confidentiality of the application records to be maintained. Accordingly, I am required to take necessary precautionary measures to ensure that no unauthorized access is given to my application records and I should not allow anyone else to access these records;</li><li>I agree to notify the HKMC immediately if I suspect that an unauthorized person has accessed my application records;</li><li>I accept full responsibility for and all risks associated with viewing, printing or otherwise accessing the information available to me on this site and/or each time I use the Status Enquiry;</li><li>the personal details which I input into the site for accessing my application records and/or the use of the Status Enquiry shall constitute evidence of my acceptance of these terms and conditions, the HKMC's Legal Statement and Privacy Policy Statement;</li><li>the HKMC reserves the rights to revoke the approval status of the application and the approval status obtained through Status Enquiry is not final and conclusive;</li><li>the HKMC does not guarantee that the information and application records are correct and expressly disclaims all liability whatsoever in connection therewith; and</li><li>in the event of any conflict or discrepancy between the English version of these terms and conditions and the Chinese version, the English version shall prevail.</li></ol></div>";
// search result page
var MSG_NOTFOUND = 'Application record not found. Please contact our MIP Enquiry Hotline at 2536 0136.</div><div class="arial12red">(Office Hours:    Mon - Fri 8:50am - 6:15pm - except public holidays)</p>';
var MSG_FOUND = 'Thank you for using Status Enquiry!  Here are the results of your enquiry:';
var MSG_ENQUIRY_DATE = 'Date of enquiry';
var MSG_APP_RECEIVED = 'Application received by HKMC on';
var MSG_BANK_NAME = 'Name of bank';
var MSG_REPLY_DATE = 'Date of latest reply made by the HKMC to bank';
var MSG_APP_STATUS = 'Approval status';
var MSG_FURTHER_ENQUIRY = '<div class="arial12red"><b>For enquiry,<ol><li>Please e-mail us by clicking <input type="submit" class="arial12" value="here" />; or</li><li>Call our Mortgage Insurance Programme Enquiry Hotline at 2536 0136.</b> <br>(Office Hours: Mon - Fri 8:50am - 6:15pm - except public holidays)</div></li></ol><br>';
// contact form
var MSG_CONTACT_FORM_HEADER = 'Please fill in your personal information to facilitate our follow-up.';
var MSG_CONTACT_FORM_TITLE = 'Title :';
var MSG_CONTACT_FORM_NAME = 'Surname :';
var MSG_CONTACT_FORM_PHONE = 'Contact Phone Number :';
var MSG_CONTACT_FORM_EMAIL = 'E-mail Address :';
var MSG_CONTACT_FORM_MSG = 'Message :<br /><small>(The maximum number of English characters allowed in a message is 1500.)</small>';
var MSG_CONTACT_FORM_VERIFY = 'Enter the code shown';
var MSG_REQUIRE_TITLE = 'Please select your title!';
var MSG_REQUIRE_NAME = 'Please enter your name!';
var MSG_REQUIRE_PHONE = 'Please enter your phone number!';
var MSG_REQUIRE_EMAIL = 'Please enter your email address!';
var MSG_REQUIRE_MESSAGE = 'Please enter your message!';
var MSG_LONG_MESSAGE = 'Please enter a shorter message!';
var MSG_REQUIRE_VERIFY = 'Please enter image verification text!';
var MSG_CONTACT_FORM_COMPLETE = 'Thank you for your enquiry! Our Mortgage Insurance Programme Enquiry Hotline staff will contact you as soon as possible.';