﻿// JScript File
//*******************************************************************
//Created By:Pardhu
//Created Date:1/15/2009
//Modified by:
//MOdified Date
//*******************************************************************
//Constants
//*******************************************************************
//My details(Get myki,edit mydetails,register myki)
//*******************************************************************
var Err_CardHolder = "Card Holder ";
var Err_AccountHolder = "Account Holder ";
var Err_Title = "<b>Title</b> is required. Please try again.";
var Err_Inv_Title = "The <b>title</b> selected is invalid. Please check your selection and try again.";
var Err_GivenName = "<b>Given name</b> is required. Please try again.";
var Err_Inv_GivenName = "The <b>given name</b> entered is invalid. Please check your entry and try again.";
var Err_FamilyName = "<b>Family name</b> is required. Please try again.";
var Err_Inv_FamilyName = "The <b>Family name</b> entered is invalid. Please check your entry and try again.";
var Err_DOB = "<b>Date of birth</b> is required. Please try again.";
var Err_Inv_DOB = "The <b>date of birth</b> selected is invalid. Please check your selection and try again.";
var Err_DOB_GT_Today = "<b>Date of birth</b> should be less than current date. Please try again.";
var Err_Cardholder_Accountholder_Same = "<b>Card Holder</b> and <b>Account Holder</b> details should not be identical.";
var Err_Either_UnitStreetPostal = "<b>Unit/Street number and Street name or PO Box Number</b> is required. Please try again.";
var Err_Either_UnitStreetPostal_NotBoth = "Either Postal Unit/Street Number,Postal Street name OR Postal PO Box Number is required, not both.";
var Err_Streetnumber = "<b>Unit/Street number</b> is required. Please try again";
var Err_Inv_Streetnumber = "The <b>unit/street number</b> entered is invalid. Please check your entry and try again.";
var Err_Streetname = "<b>Street name</b> is required. Please try again.";
var Err_Inv_Streetname = "The <b>street name</b> entered is invalid. Please check your entry and try again.";
var Err_POBox = "<b>PO Box Number</b> is required. Please try again.";
var Err_Inv_POBox = "The <b>PO Box Number</b> entered is invalid. Please check your entry and try again.";
var Err_Postcode = "<b>Postcode</b> is required. Please try again.";
var Err_Inv_Postcode = "The <b>Postcode</b> entered is invalid. Please check your selection and try again.";
var Err_Inv_Postcode_Important = "";
var Err_Subrub = "<b>Suburb/Town</b> is required. Please try again.";
var Err_Inv_Subrub = "The <b>suburb/town</b> entered is invalid. Please check your selection and try again.";
var Err_Mobile = "<b>Mobile number</b> is required. Please try again.";
var Err_Inv_Mobile = "The <b>mobile number</b> entered is invalid. Please check your entry and try again.";
var Err_DayPhone = "<b>Daytime phone number</b> with area code is required. Please try again.";
var Err_Inv_DayPhone = "The <b>daytime phone number</b> entered is invalid. The Daytime Phone number must contain an area code followed by eight digits.<br/>Please check your entry and try again.";
var Err_DayPhone_Or_Mobile = "<b>Daytime phone / mobile number</b> with area code is required. Please try again.";

var Err_ConcessionFareType = "<b>Concession fare type</b> is required.";
var Err_Age_Under4 = "No card is required for children under 4 years.";
//var Err_Concession_Eligible = "Customers who are 16 years or under are eligible for a concession child myki.";
var Err_Concession_Eligible = "Customers who are 16 years or under are eligible for a concession child or primary student myki.";
//var Err_Child_Age = "Child must be aged between 4 and 16.";
var Err_Child_Age = "Child must be aged between 4 and under 17 years of age.";
//var Err_PrimaryStudent_Age = "Primary Student must be aged between 4 and 16.";
var Err_PrimaryStudent_Age = "Primary Student must be aged under 17 years of age.";
var Err_AccountHolder_Age = "Account Holder must be 4 years and over.";
//var Err_CardHolder_Age = "Card Holder must be 17 years and over.";
var Err_CardHolder_Age="The Date of birth entered is invalid. The account holder must be 4 years and over.";
var Err_EditCard_Age="Card Holder must be 4 years and over.";
//*******************************************************************
//EMail (Get myki,register myki,Change pin,edit my details)
//*******************************************************************
var Err_Email = "<b>Email address</b> is required. Please try again.";
var Err_Inv_Email = "The <b>email address</b> entered is invalid. Please check your entry and try again.";
var Err_ConfirmEmail = "You must confirm your email. Please try again.";
var Err_Inv_ConfirmEmail = "The confirmation email you have entered does not match the email.";
//*******************************************************************
//PIN (Get myki,register myki,Change pin,callcenter verification)
//*******************************************************************
var Err_Pin = "A <b>PIN</b> is required. Please try again.";
var Err_Inv_Pin = "The <b>PIN</b> you have entered is incorrect. Your PIN must be a four digit number. Please check your entry and try again.";
var Err_ConfirmPin = "You must confirm your <b>PIN</b>. Please try again.";
var Err_Inv_ConfirmPin = "The confirmation PIN you have entered does not match the PIN. Please try again.<br/>Helpful Hints - Check:<ul><li>1. Your CAPS LOCK key.</li><li>2. Your PIN and confirmation PIN contains four digits</li></ul>";//Added
//*******************************************************************
//Payment details(Get myki,topup,autotopup,register myki,bad debit settlement)
//*******************************************************************
var Err_CreditCardnumber = "A valid credit/debit <b>card number</b> is required. Please try again.";
var Err_Inv_CreditCardnumber = "The credit/debit <b>card number</b> entered is invalid. Please check your entry and try again.<br/><b>Important:</b> Only Visa and Mastercard are accepted.";
var Err_Expirydate = "<b>Expiry date</b> is required. Please try again.";
var Err_Inv_Expirydate = "The <b>expiry date</b> selected is invalid. Please check your entry and try again.";
var Err_SecurityCode = "The <b>card security code</b> is required. This is the last 3-digit number found on the back of your credit/debit card. Please try again.";
var Err_Inv_SecurityCode = "The <b>card security code</b> entered is invalid. It is the last 3-digit number located on the back of your credit/debit card. Please check your entry and try again.";
var Err_SelectCreditCard="Please select an existing credit/debit <b>card number</b>";//Added
var Err_EmailAddress = "The <b>email address</b> entered is invalid. Please check your entry and try again.";
//*******************************************************************
//Card (anoymouns topup,feedback,register myki,callcenter verification)
//*******************************************************************
var Err_Mykicard = "Your <b>myki card number</b> is required. Please try again.";
var Err_inv_MykiCard = "The <b>card number</b> you have entered is invalid. Please re-enter this number, carefully checking the digits against your myki card or other record.<br/>Helpful Hints - Check:<ul><li>1. Your CAPS LOCK key</li><li>2. Your myki card number contains 15 digits</li></ul>";//Changed
var Err_Registermyki = "This <b>myki card</b> is currently registered.";//Added
//*******************************************************************
//top up (myki money,myki pass)
//*******************************************************************
var Err_Inv_Getmyki_TopupAmount = "Your <b>top up amount</b> must be between $1 and $50. Please check your entry and try again.";
var Err_Inv_Registered_TopupAmount = "Your <b>top up amount</b> must be between $1 and $250. Please check your entry and try again.";
var Err_TopupAmount = "You must enter a <b>top up amount</b>. Please try again.";
var Err_Inv_TopupAmount = "Your <b>top up amount</b> selected is invalid. Please check your entry and try again.";//Changed
//var Err_mykiPass = "You must enter the <b>duration</b> of your myki pass. Please try again.";
var Err_mykiPass = "You must enter the number of days <b>or</b> weeks you want your pass to last for. Please try again.";
var Err_Inv_mykipass_Days = "The <b>myki pass duration</b> must be either 7 days <b>or</b> between 28 and 365 days";
var Err_Inv_mykipass_Weeks = "The <b>myki pass duration</b> must be either 1 week <b>or</b> between 4 and 52 weeks";
var Err_mykiPass_CardExpirydate="myki pass duration should be less than card expiry date";//Added
//*******************************************************************
//auto topup
//*******************************************************************
var Err_mykimoney_reaches = "You must enter the <b>myki money balance</b> you wish to set up your auto top up with. Please try again.";
var Err_Inv_mykimoney_reaches = "Your <b>balance</b> for auto top up must be between $10 and $250. Please check your entry and try again. ";//Changed
var Err_Autotopupamount = "You must enter the <b>myki money top up amount</b> you wish to set up your auto top up with. Please try again.";
var Err_Inv_Autotopupamount = "The <b>top up amount</b> for auto top up must be between $10 and $250. Please check your entry and try again. ";//Changed
var Err_Inv_mykimoney_AutoTopup = "Your <b>myki money balance</b> selected is invalid. Please check your entry and try again.";//Changed
//*******************************************************************************
//Book discovery centers
//*******************************************************************************
var Err_organazationName = "<b>Name of organisation</b> is required. Please try again.";
var Err_Address = "<b>Address</b> is required. Please try again.";
var Err_Inv_address = "The <b>address</b> you have entered is invalid. Please check your entry and try again.";
var Err_address_lenght="The <b>address</b> you have selected should be fewer than 100 characters. Please try again.";
var Err_ContactName = "Name of a <b>contact person</b> is required. Please try again.";
var Err_Inv_ContactName = "The name of the <b>contact person</b> you have entered is invalid. Please check your entry and try again.";
var Err_location = "You must enter the <b>location</b> of presentation. Please try again.";
var Err_Inv_location = "The <b>location</b> you have entered is invalid. Please check your entry and try again.";
var Err_PrefreedDate = "You must enter the <b>preferred date</b> of the presentation. Please try again.";
var Err_inv_PrefreedDate = "The <b>preferred date</b> you have entered is invalid. Please check your entry and try again.";
var Err_PrefreedDate_Future="The <b>preferred date</b> you have entered should be the futuredate. Please check your entry and try again.";
var Err_noPeople = "You must enter the <b>number of people</b> at the presentation. Please try again.";
var Err_Inv_noPeople = "The <b>number of people</b> you have entered is invalid. Please check your entry and try again.";
var Err_Inv_Specialrequest = "Your special request should be fewer than 200 characters. Please check your entry and try again.";
var Err_Inv_Otherrequest = "Your other request should be fewer than 200 characters. Please check your entry and try again.";//Added
var Err_Inv_Emaildisc = "The <b>email address</b> you have entered is invalid. Please check your entry and try again.";
//*******************************************************************************
//Feedback
//*******************************************************************************
var Err_FeedBack = "Your <b>feedback</b> is required. Please try again.";
var Err_Inv_Feedback = "Your <b>feedback</b> should be fewer than 1000 characters. Please check your entry and try again.";
var Err_Inv_feedback_NotSymbols="Invalid Feedback. Special character '+' not allowed.";//Added
var Err_Inv_shortfeedback_NotSymbols="Invalid Short Description. Special character '+' not allowed.";//Added
var Err_Inv_DeviceID = "The <b>device ID</b> you have entered is invalid. Please check your entry and try again.";
var Err_Phonenumber = "<b>Phone number</b> is required. Please try again.";
var Err_inv_phoneNumber = "The <b>phone number</b> you have selected is invalid. Please check your entry and try again.";
var Err_Inv_Name = "The <b>name</b> entered is invalid. Please check your entry and try again.";
var Err_Inv_Emailfeed = "The <b>email address</b> you have entered is invalid. Please check your entry and try again.";
//*******************************************************************************
//Check status request  
//*******************************************************************************
var Err_Worn = "A <b>myki reference number</b> for this transaction is required. Please try again.";
var Err_Inv_Worn = "The <b>myki reference number</b> you have entered is invalid. Please check your transaction details and try again.";
var Err_Scode = "The <b>security code</b> for this transaction is required. Please try again.";
var Err_inv_Scode = "The <b>security code</b> you have entered is invalid. Please check your transaction details and try again.";
var Err_inv_Worn_SC = "The <b>web order reference</b> or <b>security code</b> you have entered is invalid. Please check your transaction details and try again.";
//*******************************************************************************
//Chnage password and security question
//*******************************************************************************
var Err_OldPassword = "You must enter your <b>old password</b>. Your password must be between 6 and 15 characters including at least one numeral. Please try again.";
var Err_Inv_OldPassword = "The <b>old password</b> you have entered is incorrect. Your <b>old password</b> must be between 6 and 15 characters including at least one numeral. Please check your entry and try again.";
var Err_newPassword = "A <b>new password</b> is required. Your password must be between 6 and 15 characters including at least one numeral. Please try again.";//Chnaged
var Err_inv_NewPassword = "The <b>new password</b> you have entered is incorrect. Your <b>new password</b> must be between 6 and 15 characters including at least one numeral. Please check your entry and try again.";
var Err_ConfrimPwd = "You must confirm your <b>new password</b>. Please try again.";
var Err_Inv_ConfirmPwd = "The confirm password you have entered is incorrect. Your confirm password must be between 6 and 15 characters including at least one numeral. Please check your entry and try again.";//Chnaged
var Err_ConfrimOldNewPwd="The password confirmation you have entered does not match your <b>new password</b>. Please check your entry and try again."//Added
var Err_oldSecurityAnswer = "You must enter your <b>old security answer</b>. Please try again.";
var Err_Inv_oldSecurityAnswer = "The <b>old security answer</b> entered is incorrect. Please check your entry and try again.";
var Err_NewSecurityAnswer = "You must enter your <b>new security answer</b>. Please try again.";
var Err_Inv_NewSecurityAnswer = "The <b>new security answer</b> entered is incorrect. Please check your entry and try again.";
var Err_ConfirmSecurityAnswer = "You must confirm your <b>new security answer</b>. Please try again.";
var Err_Inv_ConfirmSecurityAnswer = "The <b>confirm security answer</b> entered is incorrect. Please check your entry and try again.";//Chnaged
var Err_ConfirmOldNewSecurityAnswer = "The security answer confirmation does not match the <b>new security answer</b>. Please check your entry and try again.";//Added

//*******************************************************************************
//Login or forgoteen username and forgotten password
//*******************************************************************************

var Err_Username = "Your <b>username</b> is required. Please try again.";
var Err_Inv_username = "The <b>username</b> you have selected is invalid. Please check your entry and try again.";
var Err_Password = "Your <b>password</b> is required. Please try again.";
var Err_Securityans = "<b>Security answer</b> is required. Please try again.";
var Err_Inv_SecurityAns = "The <b>security answer</b> you have selected is invalid. Please check your entry and try again.";
var Err_Inv_Password = "Your <b>password</b> is Invalid. Please try again.";
var Err_DOB_FutureDate ="Date of birth should be less than Current date";//added
var Err_Register_ConfrimPwd="The password confirmation you have entered does not match your password. Please check your entry and try again."//Added
//*******************************************************************************
//Remove Concession
//*******************************************************************************

var Err_RemoveConcession = "Reason for removing concession entitlement is required.";//added
var Err_Inv_RemoveConcession = "Invalid Reason for removing concession entitlement.";//added

//*******************************************************************************
//Change Password
//*******************************************************************************
var Err_ConfirmSecurityAnswer = "You must confirm your new security answer. Please try again.";//added

//*******************************************************************************
//Request For Consumables
//*******************************************************************************

var Err_Consumable_quantity = "<b>Consumable quantity</b> is required. Please try again.";//added
var Err_Inv_Consumable_quantity = "The <b>Consumable quantity</b> entered is invalid. Please check your entry and try again.";//added

//*******************************************************************************
//Myki Transaction
//*******************************************************************************  
var Err_MYtrans_Date = "You must enter the transaction period for your my transactions statement to be emailed to you. Please try again.";
var Err_MYtrans_Inv_Date = "The period you have selected is invalid. Please check your entry and try again.";

//*******************************************************************************
//Status Request
//*******************************************************************************

var Err_SourceType = "<b>SourceType</b> is required. Please try again.";
var Err_RequestType = "<b>RequestType</b> is required. Please try again.";
var Err_SearchType = "<b>Please enter atleast one search criteria.";
var Err_Status_FromDate = "You must enter from date. Please try again.";
var Err_Status_ToDate = "You must enter to date. Please check your entry and try again.";
var Err_GT_Fromday ="<b>From Date</b> should be less than current date. Please try again.";
var Err_GT_Today ="<b>To Date</b> should be less than current date. Please try again.";


//*******************************************************************************
//Status Request
//*******************************************************************************

var Err_SourceType = "<b>SourceType</b> is required. Please try again.";
var Err_RequestType = "<b>RequestType</b> is required. Please try again.";
var Err_SearchType = "<b>Please enter atleast one search criteria.";
var Err_Status_FromDate = "You must enter from date. Please try again.";
var Err_Status_ToDate = "You must enter to date. Please check your entry and try again.";
var Err_GT_Today = "<b>From Date</b> should be less than to date. Please try again.";
var Err_ToDate_GT_Today = "<b>To Date</b> should be less than today date. Please try again.";







