window.addEvent('domready', function() {
	$('copyAll').addEvent('click', function(){
        var fieldList=["jform[created_by][]","jform[created_by_alias][]","jform[created][]","jform[publish_up][]","jform[publish_down][]","jform[attribs][show_title][]","jform[attribs][link_titles][]","jform[attribs][show_intro][]","jform[attribs][show_category][]","jform[attribs][link_category][]","jform[attribs][show_parent_category][]","jform[attribs][link_parent_category][]","jform[attribs][show_author][]","jform[attribs][link_author][]","jform[attribs][show_create_date][]","jform[attribs][show_modify_date][]","jform[attribs][show_publish_date][]","jform[attribs][show_item_navigation][]","jform[attribs][show_icons][]","jform[attribs][show_print_icon][]","jform[attribs][show_email_icon][]","jform[attribs][show_vote][]","jform[attribs][show_hits][]","jform[attribs][show_noauth][]","jform[attribs][alternative_readmore][]","jform[attribs][article_layout][]","jform[metadesc][]","jform[metakey][]","jform[metadata][robots][]","jform[metadata][author][]","jform[metadata][rights][]","jform[metadata][xreference][]"];
        fieldList.each(function(item, index){
            var field = document.getElementsByName(item);
            for (var i=1;i<field.length;i++){
                field[i].set('value',field[0].get('value'))        
            }
        });
    });
});

