


function checkEmail(vInput){
	var NoBlank = true;
	CharCount=1;
	strLength=vInput.length;
	while (((CharCount < strLength) && (vInput.charAt(CharCount) != "@")) && NoBlank) {
		CharCount++
	}
	if (((CharCount>= strLength) || (vInput.charAt(CharCount) != "@")) && NoBlank) { 
		alert ("Not a valid email address")
		NoBlank = false;
	}else{
		CharCount += 2;
	}
	while (((CharCount < strLength) && (vInput.charAt(CharCount) != ".")) && NoBlank){
		CharCount++
	}
	if (((CharCount>= strLength - 1) || (vInput.charAt(CharCount) != "."))  && NoBlank){ 
		alert ("Not a valid email address")
		NoBlank = false;
	}
	return NoBlank
}


