function isMonth(imonth){
	if (isNumeric(imonth)){
		if ((imonth < 1) || (imonth > 12)){
			 return false;
		 }
	}
	else{
		return false;
	}	 
		 
	 return true;
}

// Returns true if the string only contains alpha characters (empty string = true)
function isAlpha(txt)
{
	return ValidString(txt,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz');
}
function isAlphaSpace(txt)
{
	return ValidString(txt,'ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz');
}

// Returns true if the string only contains numeric characters (empty string = true)
function isNumeric(txt)
{
	return ValidString(txt,'0123456789');
}
// Returns true if the string only contains numeric characters and dash(empty string = true)
function isNumericDash(txt)
{
	return ValidString(txt,'0123456789-');
}

// Returns true if the string only contains alpha numeric characters (empty string = true)
function isAlphaNumeric(txt)
{
	return ValidString(txt,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789');
}
// Returns true if the string only contains alpha numeric characters and dash or slash (empty string = true)
function isAlphaNumericDashSpace(txt)
{
	return ValidString(txt,'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 -');
}
// Returns true if the string only contains numeric characters and dash or () (empty string = true)
function isNumericParenDashSpacePlus(txt)
{
	return ValidString(txt,'Xx0123456789 -()+');
}
// Returns true if the CheckString only contains characters passed in ValidString (empty string = true)
function ValidString(ChkString,ValidString)
{
	for (i=0; i<ChkString.length; i++)
	{
		if (ValidString.indexOf(ChkString.substring(i,i+1)) == -1) return false;
	}
	return true;
}

