// This script contains all the messages displayed for information and errors.

// [Error messages]
var err_space = "Please enter information or remove whitespaces.";
var err_empty = "There are one or more empty fields that require information.";
var err_name = "You can only use alphabets, apostrophe('), period(.) and hyphen(-) for the name.";
var err_name = "You can only use alphabets, apostrophe('), period(.) and hyphen(-) for the name.";
var err_name2 = "You can only use alphabets, numbers, apostrophe('), space( ), period(.), comma(,) and hyphen(-) for the name.";
var err_areacode = "Please use numbers only for the area code. The code must have at least 3 digits.";
var err_phone = "You can only use numbers and a hyphen(-) for the phone number. \nAnd the number must be longer than 6 digits."; 
var err_fax = "You can only use numbers and a hyphen(-) for the fax number. \nAnd The number must be longer than 6 digits.";
var err_email = "Email address is not in correct format. Please check and try again.\nYou can only use English alphabets, numbers and the following \nspecial characters - dot (.), underscore (_), hyphen(-) and at \nmark (@).";
var err_email_conf = "Email addresses don't match. Please check the addresses.";
var err_state = "You can only use alphabets, apostrophe('), period(.) and hyphen(-) for the state name.";
var err_country = "You can only use alphabets, apostrophe('), period(.) and hyphen(-) for the country name.";
var err_street = "You can only use alphabets, numbers, sharp(#), apostrophe('), period(.) and hyphen(-) for the street name.";
var err_city = "You can only use alphabets, apostrophe('), period(.) and hyphen(-) for the city name.";
var err_zip_std = "You can only use numbers, white space( ) and hyphen(-) for the zip code.";
var err_zip_other = "You can only use alphabets, numbers, apostrophe(') and hyphen(-) for the zip code.";
var err_tag = "You can not use special characters '<' nor '>' in this form.";
var err_date_format = "The date that you entered is in incorrect format. Please use the format 'mm/dd/yyyy'.";
var err_date_start = "Start date must be after today's date.";
var err_date_end = "End date must be after start date.";
var err_duration = "You can only use numbers for the travel duration.";
var err_destination = "You can only use alphabets, apostrophe('), period(.) and hyphen(-) for the travel destination.";
var err_duration = "You can only use numbers for the travel duration.";
var err_pax = "Please use only numbers for the number of travellers.";
var err_select_need_date = "Select \"Need to receive pass by\" date first.";
var err_inquiry = "You can not use the following special characters - square brackets(<>), backlash(\\) and double quote(\") for inqueries.";
var err_comment = "You can not use square brackets(<>), backlash(\\) and double quote(\") for comments.";
var err_expdate = "You entered an invalid expiration date. Please use \"mm/yy\" format. Month must be between 01~12, and year must be later than the current year.";
var err_age = "You can only use numbers for the age.";
var err_age_child = "Child must be 2 years old or older, and under 12 years old.";
var err_age_infant = "Infant must be under 2 years old.";
var err_cc_expdate = "Expiry date is invalid.";
var err_file_name = "You can only use English alphabets, numbers, hyphen(-), underscroe(_), space( ) and brackets (()) for a file name.";
var err_file_dir = "A file directory cannot contain forward slash(/), star sign(*), question mark(?), double quote(\"), single quote('), square brackets(<>) and piple(|).";
var err_time = "You can only use numbers and a colon(:) or period(.).";
var err_username = "You can only use alphabets and numbers for the username.";
var err_password = "You can not use square brackets(<>), backlash(\\) and double quote(\") for the password.";


function getMessage(msgType){

	var msg = "";

	if(msgType == "err_space") msg = err_space;
	if(msgType == "err_empty") msg = err_empty;
	if(msgType == "err_name") msg = err_name;
	if(msgType == "err_name2") msg = err_name2;
	if(msgType == "err_areacode") msg = err_areacode;
	if(msgType == "err_phone") msg = err_phone;
	if(msgType == "err_fax") msg = err_fax;
	if(msgType == "err_email") msg = err_email;
	if(msgType == "err_email_conf") msg = err_email_conf;
	if(msgType == "err_state") msg = err_state;
	if(msgType == "err_country") msg = err_country;
	if(msgType == "err_street") msg = err_street;
	if(msgType == "err_city") msg = err_city;
	if(msgType == "err_zip_std") msg = err_zip_std;
	if(msgType == "err_zip_other") msg = err_zip_other;
	if(msgType == "err_tag") msg = err_tag;
	if(msgType == "err_date_format") msg = err_date_format;
	if(msgType == "err_date_start") msg = err_date_start;
	if(msgType == "err_date_end") msg = err_date_end;
	if(msgType == "err_duration") msg = err_duration;
	if(msgType == "err_destination") msg = err_destination;
	if(msgType == "err_pax") msg = err_pax;
	if(msgType == "err_select_need_date") msg = err_select_need_date;
	if(msgType == "err_inquiry") msg = err_inquiry;
	if(msgType == "err_comment") msg = err_comment;
	if(msgType == "err_expdate") msg = err_expdate;
	if(msgType == "err_age") msg = err_age; 
	if(msgType == "err_age_child") msg = err_age_child;
	if(msgType == "err_age_infant") msg = err_age_infant;
	if(msgType == "err_cc_expdate") msg = err_cc_expdate;
	if(msgType == "err_file_name") msg = err_file_name;
	if(msgType == "err_file_dir") msg = err_file_dir;
	if(msgType == "err_time") msg = err_time;
	if(msgType == "err_username") msg = err_username;
	if(msgType == "err_password") msg = err_password;
	return msg;		
}


