var _globals=new Globals,___fromDate=searchPlateNumber?(new Date).setFullYear((new Date).getFullYear()-1):new Date,branchs=_globals.apiGetDataList("branchs"),todayVisitData=_globals.apiPostDataList("visit-customers/searchFrm",{branchID:branchs[0].id,fromDate:___fromDate,toDate:new Date,plateNumber:searchPlateNumber}),accordionItems=[{ID:1,text:_globals.language.search,name:"searchFrm"},{ID:2,text:searchPlateNumber?_globals.language.visit_history:_globals.language.today_visit,name:"visitlist"}],frmItems={ID:1,branchID:branchs[0].id,fromDate:___fromDate,toDate:new Date};