function check(e) {
	ok = "1234567890qwertyuiop[]asdfghjklzxcvbnm.@-_QWERTYUIOPASDFGHJKLZXCVBNM";
	for(i=0; i < e.length ;i++){
		if(ok.indexOf(e.charAt(i))<0){
			return (false);
		}
	}
	if (document.images) {
		re = /(@.*@)|(\.\.)|(^\.)|(^@)|(@$)|(\.$)|(@\.)/;
		re_two = /^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/;
		if (!e.match(re) && e.match(re_two)) {
			return (-1);
		}
	}
}

function checkF(f){

	var errorMsg = "";

	if(!check(frmEmailVerify.Email.value)){
		alert("Invalid email address detected.");
		frmEmailVerify.Email.focus();
		if(document.all || document.getElementById){
			frmEmailVerify.Email.style.background = "#ebebeb";
		}
		return (false);
	}
	
	if (frmEmailVerify.Password.value.length < 6) 
		{
		frmEmailVerify.Password.focus();
		alert("Password Must Be Six Characters Long");
		if(document.all || document.getElementById){
			frmEmailVerify.Password.style.background = "#ebebeb";
			//frmActivate.Password1.style.background = "#ebebeb";
		}
		return (false);
	}	
	
}




function checkForgotPwd(f)
{

	if(!check(frmEmailVerify.Email.value))
	{
		alert("Invalid email address detected.");
		frmEmailVerify.Email.focus();
		if(document.all || document.getElementById)
			{
				frmEmailVerify.Email.style.background = "#ebebeb";
			}
			return (false);
	}

	
}
//window.defaultStatus = "Scripts that save you time and money";
