
Runner.buttonEvents["New_Button1"]=function(pageObj,proxy,pageid){pageObj.buttonNames[pageObj.buttonNames.length]='New_Button1';if(!pageObj.buttonEventBefore['New_Button1']){pageObj.buttonEventBefore['New_Button1']=function(params,ctrl,pageObj,proxy,pageid,rowData,row,submit){var ajax=ctrl;}}
if(!pageObj.buttonEventAfter['New_Button1']){pageObj.buttonEventAfter['New_Button1']=function(result,ctrl,pageObj,proxy,pageid,rowData,row,params){var ajax=ctrl;var currentPage=encodeURIComponent(window.location.href);window.location.href="http://easy.ebizso.com/collections_add.php?return="+currentPage;}}
$('a[id="New_Button1"]').each(function(){if($(this).closest('.gridRowAdd').length){return;}
this.id="New_Button1"+"_"+Runner.genId();var button_New_Button1=new Runner.form.Button({id:this.id,btnName:"New_Button1"});button_New_Button1.init({args:[pageObj,proxy,pageid]});});};