/**
 *
 * This file stores the js functions for index.php
 *
 * @author     Vera Kern <vera@worksmartlabs.com>
 * @copyright  2008 WorkSmart Labs, Inc.
 */

function submitOnReturn (e) {
    var keycode;
    if (window.event) keycode = window.event.keyCode;
    else if (e) keycode = e.which;
    else return true;
    
    if (keycode == 13){
       document.accessform.submit();
       return false;
    }
    else
       return true;
}