var maxErr = 26;
var arrError;
function getErrorDescription()
{
	arrError=new Array(maxErr)

	arrError[0] = "can consist of Numbers only."
	arrError[1] = "Please enter"
	arrError[2] = "It's mandatory."
	arrError[3] = "cannot have spaces."
	arrError[4] = "Apostrophe is not Allowed."
	arrError[5] = "Double Quote is not Allowed."
	arrError[6] = "Only Alphanumeric Character Permitted."
	arrError[7] = "You must select minimum one (1) of the choices available."
	arrError[8] = "Invalid e-mail address"
	arrError[9] = "Invalid e-mail address"
	arrError[10] = "Invalid e-mail address - Invalid IP address."
	arrError[11] = "Invalid e-mail address - Invalid domain."
	arrError[12] = "Invalid e-mail address - Improper Hostname."
	arrError[13] = " can have maximum "
	arrError[14] = " characters."
	arrError[15] = " must consist of minimum "
	arrError[16] = "The Password and Confirm Password should match. "
	arrError[17] = "Only Exact Number of Characters Permitted."
	arrError[18] = "Invalid e-mail address - Hostname Missing."
	arrError[19] = "Only alphabets and spaces allowed in the field."
	arrError[20] = "Cannot be Zero."
	arrError[21] = "Cannot be greater than 99999.99."
	arrError[22] = "Name must start with Capital letter."
	arrError[23] = "Please select"
	arrError[24] = "From Year should be less than or equal to To Year."
	arrError[25] = "From Month and Year should be less than or equal to To Month and Year."
}

function message(errorNumber)
{
var err;
	getErrorDescription();
	if(errorNumber > maxErr)
		{err = "Error Number Invalid"
		 return err;
		} 
	
err=arrError[errorNumber];
return err;
}

