clearErrors();function loading(){loadLeftMessage();getListProducts("n")}var productsCache={},totalArticleNum=0,currentPageNum=1,totalPageNum=0;function firstPage(){if(currentPageNum<2)useMessage("\u5df2\u7ecf\u662f\u7b2c\u4e00\u9875\u4e86");else{currentPageNum=1;getListProducts("y")}}function prePage(){if(currentPageNum<2)useMessage("\u5df2\u7ecf\u662f\u7b2c\u4e00\u9875\u4e86");else{currentPageNum--;getListProducts("y")}}function nextPage(){if(currentPageNum>=totalPageNum)useMessage("\u5df2\u7ecf\u662f\u6700\u540e\u4e00\u9875\u4e86");else{currentPageNum++;getListProducts("y")}}function lastPage(){if(currentPageNum>=totalPageNum)useMessage("\u5df2\u7ecf\u662f\u6700\u540e\u4e00\u9875\u4e86");else{currentPageNum=totalPageNum;getListProducts("y")}}function iniData(){productsCache={};totalArticleNum=0;currentPageNum=1;totalPageNum=0}var pid=13;function getListProducts(A){dwr.util.setValue("picContainer","<div id='pic'><div id=pic0 style='float:left;height:150px;width:165px;text-align:center;cursor:pointer;margin:0px 3px 0px 3px;' onclick=showCpzs(this.id)><img src=../images/loader.gif> \u6570\u636e\u52a0\u8f7d\u4e2d\uff0c\u8bf7\u7a0d\u5019\u2026\u2026</div></div>",{escapeHtml:false});var _={};_.WPId=pid;if(A=="n"){iniData();AdminProducts.getWheelsCountByPId(_,function($){totalArticleNum=$;dwr.util.setValue("totalArticleNum",totalArticleNum);totalPageNum=parseInt((totalArticleNum%PAGE_SIZE==0)?(totalArticleNum/PAGE_SIZE):(totalArticleNum/PAGE_SIZE+1));dwr.util.setValue("totalPageNum",totalPageNum)})}AdminProducts.getListWheels(_,currentPageNum,0,function(B){dwr.util.setValue("currentPageNum",currentPageNum);if(B.length>0){var A,_;for(var C=0;C<B.length;C++){A=B[C];_=A.id;dwr.util.cloneNode("pic",{idSuffix:_});dwr.util.setValue("pic0"+_,"<img src="+A.WPic+" width=160 height=117  title="+A.WName+"><br>"+A.WName,{escapeHtml:false});$("pic").style.display="none";$("pic"+_).style.display="";productsCache[_]=A}}else dwr.util.setValue("pic0","\u6682\u65e0\u6570\u636e\uff01")})}function setListId($){pid=$;getListProducts("n")}function showCpzs(_){var $=productsCache[_.substring(4)];if(null!=$)open("cpzs_content.html?"+$.id)}