function getArgs(){var b={};var f=location.search.substring(1);var e=f.split("&");for(var c=0;c<e.length;c++){var g=e[c].indexOf("=");if(g==-1){continue}var a=e[c].substring(0,g);var d=e[c].substring(g+1);d=decodeURIComponent(d);b[a]=d}return b}function hasValue(a){if(a==""||a==null||a==undefined||a.length==0||typeof(a)=="undefined"){return false}return true}function judgeNum(e,b){var a=parseFloat(e);if(isNaN(a)){return"--"}var d=a.toFixed(0);var f=Math.abs(d);var c=f.toString().length;if(c<5){retNum=a.toFixed(b)}else{if(c>=5&&c<9){retNum=(d/Math.pow(10,4)).toFixed(b)+"万"}else{if(c>=9&&c<13){retNum=(d/Math.pow(10,8)).toFixed(b)+"亿"}else{retNum=(d/Math.pow(10,12)).toFixed(b)+"万亿"}}}return retNum}function judgeNumNoUnit(c,b){var a=parseFloat(c);if(isNaN(a)){return"--"}return a.toFixed(b)}function minuteToData(f){var h,g,b,c,e,d,a;h=String(f);g=h.substring(10);b=h.substring(8,10);c=h.substring(6,8);e=h.substring(4,6);d=String(h.substring(0,4)-1900);a=d*Math.pow(2,20)+e*Math.pow(2,16)+c*Math.pow(2,11)+b*Math.pow(2,6)+g*Math.pow(2,0);return a}function getAreaData(params,callback){var thsQuote,param;thsQuote=external.createObject("Quote");param={code:params.code,datatype:params.datatype,sorttype:params.sorttype,period:params.period,ascend:params.ascend,sortbegin:params.sortbegin,sortcount:params.sortcount,begintime:params.begintime,endtime:params.endtime,onready:function(retStr){retObj=eval("("+retStr+")");var i=0;for(var k in retObj){i++}if(i>params.sortcount){retObj=undefined}if(typeof callback=="function"){callback(retObj)}}};thsQuote.AreaStatRequest(param)};