// JavaScript Document

    function findTextInputs()
    {
        rList = document.getElementsByTagName('INPUT');
        for (var i = 0; i < rList.length; i++)
        {
            if ( rList[i].type == 'text' || rList[i].type == 'password' )
            {
                if ( rList[i].parentNode )
                {
                    rList[i].onfocus = new Function('focusMyText(this);');
                    rList[i].onblur = new Function('blurMyText(this);');
                }
            }
        }
        rList = document.getElementsByTagName('TEXTAREA');
        for (var i = 0; i < rList.length; i++)
        {
            if ( rList[i].parentNode )
            {
                rList[i].onfocus = new Function('focusMyText(this);');
                rList[i].onblur = new Function('blurMyText(this);');
            }
        }
    }

function focusMyText(element)
{
    if ( typeof(element) != 'undefined' )
    {
        element.style.color = '#900000';
        element.style.backgroundColor = '#f2f2ff';
    }
}

function blurMyText(element)
{
    if ( typeof(element) != 'undefined' )
    {
        element.style.color = '#000';
        element.style.backgroundColor = '#fff';
    }
}

