function validateEmail(IsItReal)
{
	var ret = false;
	if (typeof(IsItReal) != "undefined")
	{
		IsItReal = IsItReal.match(/(\w+)@(.+)\.(\w+)$/);
		if (IsItReal !=null)
		{
			if ((IsItReal[3].length==2) || (IsItReal[3].length==3))
				ret = true;
		}
	}
	return ret;
}

function trim(str) {
    str.replace(/^\s*/, '').replace(/\s*$/, '');

   return str;
}
