/*
Validate the e-mail address (returns true if all ok, else possibly the character that is not allowed or simply false)
*/
function validateEmail(email) {
	invalidChars = "/:,;£$€{[]}|´!\"#¤%&()=?`½§\\*+'<>^"

	for (i=0; i < invalidChars.length; i++) {
		checkChar = invalidChars.charAt(i)
		if (email.indexOf(checkChar, 0) > - 1) {
			return checkChar;
		}
	}

	onPos = email.indexOf("@", 1);
	if (onPos == -1) {
		return false;
	}

	if (email.indexOf("@", onPos+1) != -1)	{
		return false;
	}	

	dotPos = email.indexOf(".", onPos);
	if (dotPos == -1) {
		return false;
	}

	if (dotPos+3 > email.length) {
		return false;
	}

	return true;
}