jQuery().ready(function(){
    $("form.microsearch input[type=reset]").each(function(){
        var theForm=$(this).parents("form").get(0);
        $(this).click(function(e){
            e.preventDefault();
            $("input[type=text]", theForm).attr("value", "");
            $("input[type=checkbox]", theForm).removeAttr("checked");
            $("input[type=radio]", theForm).removeAttr("checked");
            $("select", theForm).attr("selectedIndex", "0");
        });
    });
});
