/*
 *  @(#)$Id: login_behaviour.js,v 1.1 2007/04/01 01:16:05 griswold Exp $
 *
 *  Copyright (c) 2006 Llamawerx Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of
 *  Llamawerx ("Confidential Information").  You shall not disclose such
 *  Confidential Information and shall use it only in accordance with
 *  the terms of the license agreement you entered into with Llamawerx.
 */

function toForm() {
   setFocus('username');
   highlight(document.getElementById('username'), 1);
}

function no_highlight(element) {
}

var myrules = {
      'body' : function(element) {
         toForm();
      },
      'input' : function(element){
         element.onfocus = function() {
            highlight(element, 1);
         },
         element.onblur = function() {
            highlight(element, 0);
         }
      }
	};

Behaviour.register(myrules);
