function ClearInput(n,t){$("#"+n).val("");var i=CKEDITOR.instances[t];i!=null&&i.setData("")}function BasisChanged(n,t,i,r,u,f){var o=$f(t),s=$f(i),c=$f("input2"),l=$f(u),a=$f(f),e=n.options[n.selectedIndex].value,h=e=="订单金额"||e=="下单时间"||e=="消费总额";s.style.display=h?"inline":"none";l.style.display=e=="用户角色"?"inline":"none";a.style.display=e=="送货方式"?"inline":"none";c.style.display=h&&o.options[o.selectedIndex].value=="介于"?"inline":"none";o.style.display=h?"inline":"none";e=="下单时间"?(s.onfocus=function(){WdatePicker({el:i,dateFmt:"yyyy-MM-dd HH:mm"})},$f(r).onfocus=function(){WdatePicker({el:r,dateFmt:"yyyy-MM-dd HH:mm"})}):(s.onfocus=null,$f(r).onfocus=null)}function cbAdminChanged(){$f("spanEmail").style.display=$f(cbAdmin).checked?"inline":"none";$f("adminNotifyTemplet").style.display=$f(cbAdmin).checked?"block":"none";$f("comment").style.display=$f(cbAdmin).checked||$f(cbCustomer).checked?"block":"none"}function cbCustomerChanged(){$f("customerNotityTemplet").style.display=$f(cbCustomer).checked?"block":"none";$f("comment").style.display=$f(cbAdmin).checked||$f(cbCustomer).checked?"block":"none"}LoadEditor();LoadDatePicker();$(function(){MakeEditor("textarea.ck","Normal",130,!1,!1);$("#tabs").tabs().fadeIn(300);cbAdminChanged();cbCustomerChanged();$("body").removeClass("waiting")})