	function isBlank(str)
	{
		if (isEmpty(str))
		{
			return true;
		}
		else
		{
			return false;
		}
	}
	function isNumeric(str)
	{
		if (isEmpty(str))
		{
			return false;
		}
		if (isNaN(str))
		{
			return false;
		}
		else
		{
			return true;			
		}
	}
	
	function isEmpty(str)
	{
		str = trim(str);
		if (str != null && str != "")
		{
			if (str.length != 0)
			{
				return false;
			}
		}
		else
		{
			return true;
		}
	}
	
	function trim(str)
	{
		if (str != null && str != "")
		{
			pat = /^\s*|\s*$/gi;
			str = str.replace(pat, "");
			return str;
		}
		else
		{
			return str;
		}
	}
	function isValidEmail(str)
	{
		pat = /^([a-zA-Z0-9])+([.a-zA-Z0-9_-])*@([a-zA-Z0-9_-])+(\.[a-zA-Z0-9_-]+)+/; 
		if (pat.test(str))
		{
			return true;
		}
		return false;		
	}