var kreportcsvexporthandler=function(){var form=document.getElementById('form');if(!form)var form=document.getElementById('formDetailView');form.return_module.value='KReports';form.return_action.value='DetailView';form.action.value='export_to_csv';form.dynamicoptions.value=K.kreports.DetailView.ae();if(Ext.getCmp('kReporterPresentation')!=undefined&&Ext.getCmp('kReporterPresentation').bS!=undefined){document.getElementById('dynamicols').value=Ext.JSON.encode(Ext.getCmp('kReporterPresentation').bS());}form.to_pdf.value='on';form.submit();form.to_pdf.value='';}