function ValidEmail(item) {
			var isAT;
			var isDOT;
			var isSPACE;
			var numAT;
			var numDOT;

			isAT = item.indexOf("@");
			isDOT = item.indexOf(".");
			isSPACE = item.indexOf(" ");
					
			// the string must contain '@', '.', and no spaces
			if (isAT == -1 || isDOT == -1 || isSPACE != -1 ) 	
				{
				return false;
				}

			// there must be a '.' after the '@' 
			//alert("@ is at char"+isAT);
			//alert("last dot is at char"+item.lastIndexOf("."));
			if (item.lastIndexOf(".") <= isAT)
				{
				return false;
				}

			return true;
}

