if (typeof JSON !== "object")document.write(""); var Article = {Store : function(classId, provinces, city, nowPage){ return Article.ajax("Store", {classId : classId, provinces : provinces, city : city, nowPage : nowPage} ,Article.getCallback(arguments, 4)); },Store1 : function(classId, provinces, city, nowPage){ return Article.ajax("Store1", {classId : classId, provinces : provinces, city : city, nowPage : nowPage} ,Article.getCallback(arguments, 4)); },Store2 : function(classId, provinces, city, nowPage){ return Article.ajax("Store2", {classId : classId, provinces : provinces, city : city, nowPage : nowPage} ,Article.getCallback(arguments, 4)); },Click : function(articleId){ return Article.ajax("Click", {articleId : articleId} ,Article.getCallback(arguments, 1)); },GetList : function(currpage, classid, pagesize){ return Article.ajax("GetList", {currpage : currpage, classid : classid, pagesize : pagesize} ,Article.getCallback(arguments, 3)); },GetList2 : function(currpage, classid, pagesize){ return Article.ajax("GetList2", {currpage : currpage, classid : classid, pagesize : pagesize} ,Article.getCallback(arguments, 3)); },Search : function(classid, pageSize, curPage, keyword){ return Article.ajax("Search", {classid : classid, pageSize : pageSize, curPage : curPage, keyword : keyword} ,Article.getCallback(arguments, 4)); },SearchLan : function(classid, ver, pageSize, curPage, keyword){ return Article.ajax("SearchLan", {classid : classid, ver : ver, pageSize : pageSize, curPage : curPage, keyword : keyword} ,Article.getCallback(arguments, 5)); },UpdateField : function(id, field, value){ return Article.ajax("UpdateField", {id : id, field : field, value : value} ,Article.getCallback(arguments, 3)); },ShenheSuc : function(classid, ids, ver){ return Article.ajax("ShenheSuc", {classid : classid, ids : ids, ver : ver} ,Article.getCallback(arguments, 3)); },ShenheFail : function(classid, ids, ver){ return Article.ajax("ShenheFail", {classid : classid, ids : ids, ver : ver} ,Article.getCallback(arguments, 3)); },FabuSuc : function(classid, ids, ver){ return Article.ajax("FabuSuc", {classid : classid, ids : ids, ver : ver} ,Article.getCallback(arguments, 3)); },FabuFail : function(classid, ids, ver){ return Article.ajax("FabuFail", {classid : classid, ids : ids, ver : ver} ,Article.getCallback(arguments, 3)); },Add : function(model){ return Article.ajax("Add", {model : model} ,Article.getCallback(arguments, 1)); },Update : function(model){ return Article.ajax("Update", {model : model} ,Article.getCallback(arguments, 1)); },Delete : function(Id){ return Article.ajax("Delete", {Id : Id} ,Article.getCallback(arguments, 1)); },Deletes : function(ids){ return Article.ajax("Deletes", {ids : ids} ,Article.getCallback(arguments, 1)); },setDate : function (a) { if(a != null && typeof a == 'object') { for (var i in a) a[i] = Article.setDate(a[i]) } return a = a instanceof Date ? '"\\/Date(' + a.getTime() + ')\\/"' : a}, getCallback : function(a, b){ return b < a.length ? a[b] : undefined},ajax: function (a, b, c){var j = JSON.stringify(Article.setDate(b)); var d = { contentType:'text/plain', beforeSend : function(x){ x.setRequestHeader('method', a) }, async : true, url : Article.u, type : 'POST', dataType : 'json', data : j, success:function(e){ typeof c == 'function' && c(e) } }; if(typeof c != 'function'){ d.async = false; return JSON.parse(jQuery.ajax(d).responseText) } else jQuery.ajax(d) }, u: '/ajax/Article.ashx'};