$(window).addEvent("load", function() {
    $$("form input, form textarea, form select").addEvents({
        "focus": function() { this.getParent().setProperty("class", "active") },
        "blur": function() { this.getParent().setProperty("class", "") }
    });
})