(function($){
    $.fn.setformlabels = function() {
        //var labelContent = this.html();
        var labelWidth = document.defaultView.getComputedStyle(this, '').getPropertyValue('width');
        //var labelWidth = this.width();

        //var labelSpan = document.createElement('span');
        //labelSpan.style.display = 'block';
        //labelSpan.style.width = labelWidth;
        //labelSpan.innerHTML = labelContent;

        this.wrap('<span></span>');
        this.css('display', '');
        //this.css('display', 'inline-block');
        //  display: -moz-inline-box; display: inline-block
        //this.parent().css('display', 'block');
        this.parent().width(labelWidth);
        
//        this.html(null);
//        this.appendChild( labelSpan );
        return this;
    }
})(jQuery);

(function($){
    $.fn.settablesize = function() {
        if(navigator.appName == 'Netscape'){
            this.css('display', 'inline-table');
        }
        else{
            this.css('display', 'inline');
        }
                                  
        return this;
    }
})(jQuery);


/* (Version 1.2) 8-28-09 david. renamed class zncform to loosechickenform */
function cmxform(){              
//    $("form.zncform").hide();

//    $("form.zncform label").setformlabels();
//    $("form.zncform fieldset table").settablesize();

//    $("form.zncform").show();
}

$(function() {
//    cmxform();
});

