function notValidEmail (teststring) {
    atplace=teststring.indexOf('@');
    dotplace=teststring.lastIndexOf('.');
    if (teststring.length <1) {
        alert ("You must enter an Email address");
        return true;
    }
    if  ( ((atplace == -1) || (dotplace == -1)) || (atplace > dotplace)) {
        alert ("Email address is invalid.\nCorrect Example: 'bob@bobdomain.com'");
        return true;
    }
    return false;
}

function checkFields (form) {
    with (form) {
        if (code.value.length <1) {
            alert("You must enter the security code!");
            code.focus();
            return false;
        }
    }
    return true;
}
