/*
  *******************************************************************************
  * Copyright Notice								*
  * (c) Blue Star InfoTech Limited						*
  * All rights reserved. The software and associated documentation		*
  * supplied hereunder are the confidential and proprietary information		*
  * of Blue Star Infotech Limited, India and are supplied			*
  * subject to licence terms. In no event may the Licensee reverse		*
  * engineer, decompile, or otherwise attempt to discover the			*
  * underlying source code or confidential information herein.			*
  *										*									*
  *******************************************************************************
---------------------------------------------------------------------------------
 File Name         : DVCMN_ErrorMessages.js					|
										|
 Description       : This script files is used by DVCMN_EmailDetails.aspx page	|
										|
 Author            :    BSIL							|
										|
 Date Created      : 13 Sep 2003               				        |
--------------------------------------------------------------------------------
 Version   Date Modified     Modified By     Brief Description			|
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
*/

/* Please follow the Range for the specific Page

Range of Error Messages to be followed

Flight Module 		- 1 to 100

Hotel Module		- 200 to 300

Itinerary Module	- 500 to 800

A & S Module		- 900 to 1000

Email Module		- 1100 to 1200

Web CallBack Module	- 1300 to 1400

CodeNav	Module          - 1500 to 1600

*/


function ErrorMessage(Eno)
{
	switch (Eno)
	{
		case 0:
			return "General Error raised";
			break;

		case 500:
			return "First name is required and must be between 2 and 25 characters long. Names may contain only letters, spaces, periods, commas, apostrophes, and/or hyphens.";
			break;
		case 501:
			return " is required and must be between 2 and 25 characters long. Names may contain only letters, spaces, periods, commas, apostrophes, and/or hyphens.";
			break;
		case 502:
			return " is required and must be between 2 and 25 characters long. Names may contain only letters, spaces, periods, commas, apostrophes, and/or hyphens.";
			break;
		case 503:
			return "Last name is required and must be between 2 and 25 characters long. Names may contain only letters, spaces, periods, commas, apostrophes, and/or hyphens.";
			break;
		case 504:
			return "You must provide the country code number.";
			break;
		case 505:
			return " may only contain numeric characters. Please correct the ";
			break;
		case 506:
			return "You must provide the area code number.";
			break;
		case 507:
			return "You must provide phone number.";
			break;
		case 508:
			return "Please enter a zip code.";
			break;
		case 509:
			return "Please enter an itinerary code.";
			break;
		case 510:
			return "Please enter a valid zip code.";
			break;
	    case 511:
	        return "Phone number must be 10 digits (including area code).";
			break;


		case 1100:
			return "Please check the email address. A valid email address is required.";
			break;
		case 1101:
			return "Please check the email address. A valid email address is required.";
			break;
		case 1102:
			return "Please check the email address. A valid email address is required.";
			break;
		case 1103:
			return "Please check the email address. A valid email address is required.";
			break;
		case 1104:
			return "Name is required and must be between 2 and 25 characters long. Names may contain only letters, spaces, periods, commas, apostrophes, and/or hyphens.";
			break;
		case 1105:
			return "Name is required and must be between 2 and 25 characters long. Names may contain only letters, spaces, periods, commas, apostrophes, and/or hyphens.";
			break;
		case 1106:
			return "Name is required and must be between 2 and 25 characters long. Names may contain only letters, spaces, periods, commas, apostrophes, and/or hyphens.";
			break;
		case 1107:
			return "The message may not exceed 1000 characters. Please correct the message.";
			break;
		case 1108:
			return "Your message cannot include the following characters: \\, >, <, &amp;gt;, &amp;lt;. Please correct the message.";
			break;
		case 1109:
			return "Your message cannot include the following characters: \\, >, <, &amp;gt;, &amp;lt;. Please correct the message.";
			break;

		case 1500:
			return "We&quot;re Sorry, the input box is empty. Please enter a code.";
			break;
		case 1501:
			return "Value entered cannot include the following characters: &, /, \\, >, < or ; . Please correct the value entered.";
			break;

		default:
			return "General Error raised";
			break;
	}
}

