/*
    Validation Script
*/

// checks whether the given email address is valid (same check as old library site)
function Validation_EmailAddressIsValid(email)
{
    var atIndex = email.indexOf("@");
    var fsIndex = email.lastIndexOf(".");
    return (atIndex != -1 && fsIndex > atIndex && fsIndex != email.Length-1 && email.indexOf(" ")==-1);
}

