function forgotPass(loginType)
{
	if (loginType == 'mylre')
	{
	    target = document.getElementById('email');
	    emailValue = target.value; // This is a precarious statement

	} else {
	    target = document.getElementById('user');
	    emailValue = target.value; // This is a precarious statement
	}
	if (emailValue)
	{
        args = "width=280,height=280,scrollbars,resizable";
        url = '/forgotPassword.php?t=' + loginType + '&e=' + emailValue;
        window.open(url,'popup',args);
    } else {
        alert("Please enter your email address, then click this link to have a new password emailed to you.");
		target.focus();
    }
}
