// JavaScript Document
function checkEmail(checkThis){
	var email = checkThis;
	var atPosition = email.indexOf("@");
	var dotPosition = email.lastIndexOf(".");
	var lenEmail = email.length;
	if((dotPosition > atPosition+2 ) && (dotPosition < lenEmail-2) && (atPosition > 1) ){
		//if a dot appears more than two positions after the at sign
		//if the dot is more than two characters before the end
		//if the at is more than two positions from the start
		return true;
	}else{
		return false;
	}
}


