function submitForgotForm()
{
	frm = document.forms.f1;
	
	if (frm.email.value == '')
	{
		alert("Please enter your email address");
		frm.email.focus();
		return false;
	}
	
	var validEmail = checkEmail(frm.email.value);
	if (!validEmail)
	{
		alert("Please enter a valid email address");
		frm.email.focus();
		return false;
	}
		
    if(frm.captcha.value == '') { 
        alert("Please type the characters you see in the picture, or click on the speaker and type the numbers you hear."); 
        return false ; 
    }

	showFormProcessing();
}

function checkEmail(s)
{
    var str = s;
    var filter=/^([a-zA-Z0-9_\.\-\'])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9])+$/;
    if (filter.test(str))
        testresults=true
    else
    {
        //alert("Please input a valid email address!")
        testresults=false
    }
    return (testresults)
}



