window.addEvent('domready', function() {
    $$('input').each(function(el) {
        var def = el.value;
        el.addEvent('focus',function(event) {
            if(el.value == def) {
                el.removeClass('inactive');
                el.value = '';
            }
        });
        el.addEvent('blur',function(event) {
            if(el.value == '') {
                el.addClass('inactive');
                el.value = def;
            }
        });
    });
});