/**
 * login.js - javascript functions needed for the login screen
 *
 * Project: TACC Foundation web application
 * Author: Andrew Le, Alchemist Creative
 * Copyright 2008. See Paragraphs 3 and 6 in contract for terms of use.
 *
 **/

Event.observe(window, 'load', function() {
    $('login-form').observe('submit', hash_pass); 
});
 
function hash_pass() {
    var theForm = $('login-form');
    var thePass = theForm['password'].value;
    
    theForm['password'].value = hex_sha1(thePass);
}