if (typeof JSON !== "object")document.write(""); var Result = {Query : function(pageSize, curPage, keyword){ return this.ajax("Query", {pageSize : pageSize, curPage : curPage, keyword : keyword} ,this.getCallback(arguments, 3)); },QueryLan : function(ver, pageSize, curPage, keyword){ return this.ajax("QueryLan", {ver : ver, pageSize : pageSize, curPage : curPage, keyword : keyword} ,this.getCallback(arguments, 4)); },JobSearch : function(pageSize, curPage, keyword){ return this.ajax("JobSearch", {pageSize : pageSize, curPage : curPage, keyword : keyword} ,this.getCallback(arguments, 3)); },ArtchSearch : function(pageSize, curPage, keyword){ return this.ajax("ArtchSearch", {pageSize : pageSize, curPage : curPage, keyword : keyword} ,this.getCallback(arguments, 3)); },JobSearchEN : function(pageSize, curPage, keyword, ver){ return this.ajax("JobSearchEN", {pageSize : pageSize, curPage : curPage, keyword : keyword, ver : ver} ,this.getCallback(arguments, 4)); },ArtchSearchEn : function(pageSize, curPage, keyword, ver){ return this.ajax("ArtchSearchEn", {pageSize : pageSize, curPage : curPage, keyword : keyword, ver : ver} ,this.getCallback(arguments, 4)); },setDate : function (a) { if(a != null && typeof a == 'object') { for (var i in a) a[i] = this.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(this.setDate(b)); var d = { contentType:'text/plain', beforeSend : function(x){ x.setRequestHeader('method', a) }, async : true, url : this.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/Result.ashx'};