/*
InputHintMaker = function(elements)
{
    this.elements = elements;
    this.passwordClassName = 'password';
}

InputHintMaker.prototype.execute = function()
{
    var elements = this.elements;
    for (var i = elements.length; i >= 0; i--)
    {
        element = elements[i];
        if (typeof element != 'object' || element.tagName != 'INPUT' || ! element.getAttribute('alt')) continue;

        if (element.value == '') 
        {
            if (element.className == this.passwordClassName) 
            {
                var newElement = document.createElement('input');
                newElement.setAttribute('type', 'text');
                newElement.setAttribute('name', element.getAttribute('name'));
                newElement.setAttribute('alt',  element.getAttribute('alt'));
                newElement.setAttribute('value', element.getAttribute('alt'));
                newElement.setAttribute('class', element.getAttribute('class'));
                newElement.onfocus = this.onFocus();
                element.parentNode.replaceChild(newElement, element);
            }
            else
            {
                element.value = element.getAttribute('alt');
            }

            //if (element.className == this.passwordClassName) element.type = 'text';
        }

        element.onfocus = this.onFocus();
        element.onblur  = this.onBlur();
    }
}

InputHintMaker.prototype.onFocus = function ()
{
    var self = this;
    return function()
    {
        if (this.className == self.passwordClassName) 
        {
            var newElement = document.createElement('input');
            newElement.setAttribute('type', 'password');
            newElement.setAttribute('name', this.getAttribute('name'));
            newElement.setAttribute('alt',  this.getAttribute('alt'));
            newElement.setAttribute('class', this.getAttribute('class'));
            this.parentNode.replaceChild(newElement, this);
            //newElement.focus();
            //newElement.onfocus = self.onFocus();
        }

        if (this.getAttribute('alt') && this.value == this.getAttribute('alt'))
        {
            this.value = '';
        }
    }
}

InputHintMaker.prototype.onBlur = function ()
{
    var self = this;
    return function()
    {
        if (this.getAttribute('alt') && this.value == '')
        {
            //if (this.hasClass(self.passwordClassName)) this.setProperty('type', 'text');
            this.value = this.getAttribute('alt');
        }
    }
}
*/

