var enterCity = "Please enter a City name.";

var invalidCity = "Invalid City name. Please try again.";

var validDate = "Please enter a valid date.";

var checkInDate = "The Check-in date cannot be prior to the current date.";
//var checkInDate = "The Check-in date cannot be before the current date.";

var checkIn_CheckOut =  "The Check-in date cannot be after the Check-out date.";

var checkOutDate = "The Check-in date cannot be before the current date.";

var same_check_in_out = "The Check-in and Check-out dates cannot be the same.";

var days_diff = "The Check-out date needs to be within 15 days from the Check-in date.";

var year_days = "The Check-in and Check-out dates need to be within 365 days from the current date.";

var enterDates = "Please select Check-in and Check-out dates.";

var enterCheckIn = "Please select a Check-in date.";

var enterCheckOut = "Please select a Check-out date.";

var dateFormat = "The Date format should be DD/MM/YYYY.";

var valid4Digit = "Please enter a valid 4 digit year from ";

var hotelNameInvalid = "The Hotel you are trying to find is not available.";

var hotelChainSelect = "Sorry, this Hotel Chain is not available in this city. Please make a new selection.";

var noResults = "Sorry, no results were found that matched your search criteria. Please search again.";

var dateRetrieveFialed = "Sorry, the data could not be retreived. Please try again.";

var noRoomsAailable = "Sorry, there are no rooms available in this hotel.";

var loadingHotels = "Loading hotel details…";

var rooms_rates_no = "Sorry, there are no rooms available.";

var no_images = "Sorry, there are no images available for this hotel.";

var validEmail = "Kindly enter a valid Email address.";

var enterPwd = "Kindly enter a Password.";

var validPwd = "The Password needs to have a minimum of 6 characters. Please re-enter.";

var invalidUser = "Invalid Username. Please re-enter.";

var invalidPwd = "Invalid Password. Please re-enter.";

var title = "Kindly select a <strong>Title</strong>.";

var firstName = "Please  specify your <strong> First Name </strong>.";

var lastName = "Please specify your <strong>Last Name</strong>.";

var age = "Please specify your <strong>Age</strong>.";

var address = "Please specify your <strong>Address1</strong>.";

var cityName = "Please specify your <strong>City/Town</strong>.";

var countryName = "Please specify your <strong>Country</strong>.";

var stateName = "Please specify your <strong>Province/State/Region</strong>.";

var pinCode = "Please specify your <strong>Pin/Postal Code</strong>.";
var telephoneType = "Please specify your <strong>Telephone type </strong>.";
var altTelephoneType = "Please specify your <strong>Alternate Telephone type </strong>.";
var telephoneNum = "Please specify your <strong>Telephone number </strong>.";
var altTelephoneNum = "Please specify your <strong>Alternate Telephone number </strong>.";
var validTelephoneNum = "Kindly enter a valid <strong>Telephone number </strong>.";
var validTelephoneNum1 = "Kindly enter a valid Telephone number.";
var validAltTelephoneNum = "Kindly enter a valid <strong>Alternate Telephone number </strong>.";

var emailAddress = "Please specify your <strong> Email Address</strong>.";
var emailAddresss = "Please specify your Email Address.";

var adultTitle = "Please specify <strong>Adult Primary Passenger Title</strong>. ";

var adultFirstName = "Please specify <strong> Adult Primary Passenger First Name</strong> . ";

var adultLastName = "Please specify <strong>Adult Primary Passenger Last Name</strong>.";

var childTitle = "Please specify <strong>Child Title</strong>.";

var childFirstName = "Please specify <strong>Child First Name</strong>.";

var childLastName = "Please specify <strong>Child Last Name</strong>.";

var infantAge = "Please specify <strong>Infant Age</strong>. ";

var infantFristName = "Please specify <strong>Infant First Name</strong>.";

var infantLastName = "Please specify <strong>Infant Last Name</strong>.";

var creidtCardName = "Please specify the Name on the Credit Card.";
var creidtCardType = "Please specify the Credit Card Type.";

var limit_20 = "Kindly limit to 20 characters.";

var cardNumber = "Please enter the Credit Card Number."

var cardNum_16_digit = "Please enter the 15 or 16 digit Credit Card Number.";

var cardExpDate = "Please enter the Expiry Date.";

var CVV_Num = "Please enter the CVV Number.";

var CVV_3_Digit = "Please enter the 3 digit CVV Number.";

var fname_Billing_Add = "Please specify the First Name in the Billing Address.";

var lname_Billing_Add = "Please specify the Last Name in the Billing Address.";

var billingAddress = "Please specify Address1 in the Billing Address.";

var limit_100 = "Kindly limit to 100 characters.";

var city_Billing_Add = "Please specify the City/Town in the Billing Address.";

var limit_50 = "Kindly limit to 50 characters.";

var country_Billing_Add = "Please specify the Country in the Billing Address.";

var state_Billing_Add = "Please specify the Province/State/Region in the Billing Address.";

var pinCode_Billing_Add = "Please specify the Pin/Postal Code in the Billing Address.";

var pinCode_Delivery_Add = "Please specify the Pin/Postal Code in the Delivery Address.";

var auto_EMail = "An auto-generated email has been sent to (email address). Please check your inbox for this message as it contains your MakeMyTrip.com Account Information. If you have not received the email, we recommend you check your junk or bulk mail folder."

var emailExists = "Sorry, this Email address already exists. Please select another valid Email address.";

var pwdMatch = "Sorry, your Password did not match. Kindly re-enter."

var pwd_6_char = "The Password needs to have a minimum of 6 characters. Please re-enter.";

var resigtrationMandatory = "To complete your Registration, kindly enter information in the Mandatory Fields.";

var validEmailAdd = "Kindly enter a valid Email address.";

var validEmailAdd1 = "Kindly enter a valid <strong>Email address</strong>.";

var payment_delivery_alert = "Now that you have selected your hotel, we require passenger, payment and delivery details. Before completing your booking, you will have an opportunity to review your final itinerary. ";

//var apologise = "An unexpected error has occurred. You will be automatically redirected  to the Homepage. We apologise for the inconvenience.";
var apologise = "Your login session has expired. You may either close this browser window and login again or wait for a few minutes to be automatically redirected  to the Homepage. We apologise for the inconvenience.";

var sessionExp = "Your login session has expired. You may either close this browser window and login again or wait for a few minutes to be automatically redirected  to the Homepage. We apologise for the inconvenience.";
/*Added by Rakesh Verma*/
function checkCC(s) {

  var i, n, c, r, t;

  r = "";
  for (i = 0; i < s.length; i++) {
    c = parseInt(s.charAt(i), 10);
    if (c >= 0 && c <= 9)
      r = c + r;
	 
  }

  if (r.length <= 1)
    return false;

  t = "";
  for (i = 0; i < r.length; i++) {
    c = parseInt(r.charAt(i), 10);
    if (i % 2 != 0)
      c *= 2;
    t = t + c;
	
  }

  n = 0;
  for (i = 0; i < t.length; i++) {
    c = parseInt(t.charAt(i), 10);
    n = n + c;
	 
  }

   if (n != 0 && n % 10 == 0)
    return true;
  else
    return false;
}