',n=n+'',n=n+''+t._lst_Category_Model[i].Purpose_Value_Name+"<\/label>",n=n+'('+t._lst_Category_Model[i].Purpose_Count+")<\/span><\/li>";$("#CategoryUL").append(n);$(".cbc_preload").css("display","none");GetSubCategoryList()}})}function GetSubCategoryList(){$(".cbc_preload").css("display","block");$("#SubCategoryUL").html("");var n="";$.ajax({url:"/Vehicle/GetBrand_Cat_Subcat",type:"Post","async":!1,data:{pBrand:$("#Brand").val(),pCategory:0,pSubCategory:0,pRequestType:"BRAND"},dataType:"json",success:function(t){var r,i,u,f;if(t._lst_Sub_Category_Model.length>0)for(r=0,i=0;i",n=n+'',n=n+'',n=n+''+t._lst_Sub_Category_Model[i].Purpose_Value_Name+"<\/label>",n=n+'('+t._lst_Sub_Category_Model[i].Purpose_Count+")<\/span><\/li>";$("#SubCategoryUL").append(n);$(".cbc_preload").css("display","none");SearchVehicle()}})}function GetBrandList(){$(".cbc_preload").css("display","block");$("#BrandUL").html("");var n="";$.ajax({url:"/Vehicle/GetBrand_Cat_Subcat",type:"Post","async":!1,data:{pBrand:0,pCategory:$("#Category").val(),pSubCategory:$("#so_SubCategory").val(),pRequestType:"CATEGORY"},dataType:"json",success:function(t){var r,i,u,f;if(t._lst_Brand_Model.length>0)for(r=0,i=0;i",n=n+'',n=n+'',n=n+''+t._lst_Brand_Model[i].Purpose_Value_Name+"<\/label>",n=n+'('+t._lst_Brand_Model[i].Purpose_Count+")<\/span><\/li>";$("#BrandUL").append(n);$(".cbc_preload").css("display","none")}})}function SearchVehicle(){var v,e,y,h,p,o,w,c,b,s,n,k,l;$(".cbc_preload").css("display","block");var d=$("#Page_Size").val(),u=$("#Sorting_Option").val(),f="";u=="LWST"?f="ASC":u=="HGST"?f="DESC":u=="BRND"?f="ASC":u=="NAME"&&(f="ASC");var t="0",i="0",r="0",a=$("#RequsetType").val();if(a=="CATEGORY"){for(v=document.getElementsByName("BRANDCHK"),e=0,n=0;n"0"?($(".cbc_preload").css("display","block"),$("#so_SubCategory").html(""),n="",$.ajax({url:"/Vehicle/GetSubCategory_ByCategoryId",type:"Post","async":!1,data:{CategoryId:$("#Category").val()},dataType:"json",success:function(t){if(t.length>0)for(var i=0;i'+t[i].Text+"<\/option>";$("#so_SubCategory").append(n);$("#SubCategoryID").val()=="0"||$("#SubCategoryID").val()==""?$("#so_SubCategory").val(0):$("#so_SubCategory").val($("#SubCategoryID").val());$(".cbc_preload").css("display","none")}})):(n="",n=n+'All Sub-Category<\/option>',$("#so_SubCategory").append(n));$("#divCbcLoader").show()})