/*
 * Compressed by JSA(www.xidea.org)
 */
var xmlhttp;function getQuoteDataCallBack(){if(typeof(q)!="undefined"){var _="",$="";if(q.Range==0)_="gray";if(q.Range>0)_="red";if(q.Range<0)_="green";if(q.UpdateTime!=null)$=q.UpdateTime.substr(5,5)+" "+q.UpdateTime.substr(11,5);_o("quoteData").style.color=_;_o("quoteData_Price").innerHTML=q.Price.toFixed(2);_o("quoteData_Range").innerHTML=((q.Range>0)?"+":"")+q.Range.toFixed(2);_o("quoteData_RangeRatio").innerHTML="("+((q.Range>0)?"+":"")+q.RangeRatio.toFixed(2)+"%)";_o("quoteData_UpdateTime").innerHTML=$;_o("quoteData_High").innerHTML=q.High.toFixed(2);_o("quoteData_Volumn").innerHTML=(q.Volumn/100).toFixed(0)+"\u624b";_o("quoteData_PE").innerHTML=q.PE.toFixed(2);_o("quoteData_PElyr").innerHTML=getPELYR(q.Price);_o("quoteData_Low").innerHTML=q.Low.toFixed(2);_o("quoteData_ExChange").innerHTML=q.Exchange.toFixed(2)+"%";_o("quoteData_PB").innerHTML=q.PB.toFixed(2);_o("quoteData_Open").innerHTML=q.Open.toFixed(2);_o("quoteData_zdf5").innerHTML=q.zdf5.toFixed(2)+"%";_o("quoteData_zdf10").innerHTML=q.zdf10.toFixed(2)+"%";_o("quoteData_zdf20").innerHTML=q.zdf20.toFixed(2)+"%";_o("quoteData_zdf60").innerHTML=q.zdf60.toFixed(2)+"%";_o("quoteData_zdf120").innerHTML=q.zdf120.toFixed(2)+"%";_o("quoteData_zdf250").innerHTML=q.zdf250.toFixed(2)+"%";_o("quoteData_ZhenFu").innerHTML=q.ZhenFu.toFixed(2)+"%";_o("quoteData_MarketValue").innerHTML=ProcessBigNum(q.Price*share/10000)}}function ShowIndexChart(B,C){var A=_o("imgHQ"),D=Math.floor(Math.random()*(1+10000)+10000);if(C=="")lastHQUrl=hqServer2+"realline/"+B+"/"+_windCode+".jpg";else lastHQUrl=hqServer2+"kline/"+B+"/"+C+"/"+_windCode+".jpg";A.src=lastHQUrl+"?"+D;var _;for(var $=1;$<=4;$++){_=_o("tdhq"+$);_.style.color="#FFFFFF";_.style.backgroundColor="#92B3E8";_.style.cursor="pointer"}var E=GetArrayIndex(arkt,C)+1;_=_o("tdhq"+E);_.style.color="#FF9900";_.style.backgroundColor="white";_.style.borderTop="1px solid #92B3E8";_.style.borderLeft="1px solid #92B3E8";_.style.borderRight="1px solid #92B3E8";_.style.cursor="default"}function getKPI($){var _=_kpiListURL+"/pagerequestproxy.aspx?windcode="+$+"&type=10000000&pageno=0&pagesize=12";xmlhttp=CreateXmlHttp();if(xmlhttp==null){alert("\u521b\u5efaxmlhttp\u5bf9\u8c61\u5f02\u5e38\uff01");return false}xmlhttp.onreadystatechange=receiveNews;xmlhttp.open("GET",_,true);xmlhttp.send(null)}function receiveNews(){if(xmlhttp.readyState==4){var $=xmlhttp.responseText;fillNews($)}}function fillNews(F){_o("tbLoading").style.display="none";var O=GetDom(F),K=O.documentElement.childNodes.length,A=_o("tbFirstKPI"),L=1,_=32;for(var H=0;H<K;H++){currNode=O.documentElement.childNodes[H];var E=currNode.getAttribute("id"),B=currNode.getAttribute("title"),C=currNode.getAttribute("date"),$=currNode.getAttribute("Direction"),N=currNode.getAttribute("TypeName"),I=currNode.getAttribute("typeid");if(N=="\u673a\u6784\u63a8\u8350")continue;if(L>8)return;var D=A.insertRow(-1),G=D.insertCell(-1),M=_kpiDetailURL+"?id="+E+"&type="+I,J="";if($=="1"||$=="-1")J="<img src="+imgServer+"/common/d"+$+".gif>";else J="&nbsp;&nbsp;&nbsp;";if(B.length>_)B=B.substr(0,_)+"...";G.innerHTML=J+"<a href="+M+" target=_blank>"+B+"</a>&nbsp;<span class=grey>"+ConvertDate(C)+"</span>";L++}}function changeInd(_){var $,B,A;for($=0;$<4;$++){_o("tdInd"+$).className="tabbg";_o("in"+$).style.display="none"}_o("tdInd"+_).className="tabhot";_o("in"+_).style.display="block"}function loadIndChart(){_o("inChart0").src=imgServer+"/stock/MktRatingChart/"+_windCode+"-0-0.jpg";_o("inChart1").src=imgServer+"/stock/MktRatingChart/"+_windCode+"-1-0.jpg";_o("inChart2").src=imgServer+"/stock/MktRatingChart/"+_windCode+"-2-1.jpg";_o("inChart3").src=imgServer+"/stock/MktRatingChart/"+_windCode+"-3-0.jpg"}function fillHintTable(M){var L=GetDom(_o("xmlSumary").innerHTML),G=L.documentElement.childNodes.length,C=_o(M),_,D,I=getMaxReportDate(L);buildTable(C,I);for(var E=0;E<G;E++){currNode=L.documentElement.childNodes[E];childNodes=currNode.childNodes;var A=childNodes[0].firstChild.nodeValue,N=Number(childNodes[1].firstChild.nodeValue),B=childNodes[2].firstChild.nodeValue,$=childNodes[3].firstChild.nodeValue,H=childNodes[4].firstChild.nodeValue,J=GetRowIndex(A,C),F=GetColIndex($,C),K;if(F!=-1){if(N<10000)K=N.toFixed("0")+"\u4e07";else{N=N/10000;K=N.toFixed("2")+"\u4ebf"}C.rows[J].cells[F].innerHTML=K+"/"+B+"%"}}_=C.insertRow(-1);D=_.insertCell(-1);D.colspan="6";D.innerHTML="<span class=grey>*\u4e0a\u5e02\u524d\u6570\u636e</span>";formatHeader(C,L)}function getMaxReportDate(D){var _,C,B=D.documentElement.childNodes.length,A;if(B>0){A=D.documentElement.childNodes[0];_=A.childNodes[3].firstChild.nodeValue;for(var $=1;$<B;$++){A=D.documentElement.childNodes[$];C=A.childNodes[3].firstChild.nodeValue;if(_<C)_=C}return _}else return""}function IsOnList(A,E){var D,C,_,B=E.documentElement.childNodes.length;if(B>0){for(var $=1;$<B;$++){C=E.documentElement.childNodes[$];_=C.childNodes[3].firstChild.nodeValue;if(_==A){D=C.childNodes[4].firstChild.nodeValue;if(D=="0")return false;else return true}}return true}else return true}function buildTable(E,B){var C=new Array(5);C[0]=B;for(var _=1;_<5;_++)C[_]=getLastReportDate(C[_-1]);var D=E.insertRow(-1);D.insertCell(-1);for(var A=4;A>=0;A--){var $=D.insertCell(-1);$.align="right";$.innerHTML=C[A]}D=E.insertRow(-1);D.insertCell(-1);for(A=4;A>=0;A--){$=D.insertCell(-1);$.align="right"}}function getLastReportDate(A){if(A==null)return;var _=A.substr(0,4),$=A.substr(4,2);switch($){case"03":_--;return _+"1231";case"06":return _+"0331";case"09":return _+"0630";case"12":return _+"0930"}}function GetRowIndex(B,C){for(var _=0;_<C.rows.length;_++)if(C.rows[_].cells[0].innerHTML==B)return _;var A=C.insertRow(-1);for(_=0;_<6;_++){var $=A.insertCell(-1);if(_==0)$.innerHTML=B;else{$.innerHTML="--";$.align="right"}}return C.rows.length-1}function GetColIndex(A,C){var B=C.rows[0];for(var $=0;$<B.cells.length;$++){var _=B.cells[$].innerHTML;if(A==_.substr(0,A.length))return $}return-1}function formatHeader(E,D){var B=E.rows[0];for(var $=1;$<6;$++){var C=B.cells[$].innerHTML,A=IsOnList(C,D);B.cells[$].innerHTML=C.substr(2,2)+"-"+C.substr(4,2)+"-"+C.substr(6,2);if(!A)for(var _=0;_<=$;_++)B.cells[_].innerHTML=B.cells[_].innerHTML+"*"}E.rows[0].cells[0].innerHTML="\u6301\u4ed3\u91cf/\u6bd4\u4f8b"}function showFinData(B){var A=getOs(),_=new Array("browseByReport","browseByYear","browseByQuarter"),C=new Array("linkOfReport","linkOfYear","linkOfQuarter");if(A=="MSIE")_o(_[B]).filters[0].apply();for(var $=0;$<_.length;++$){_o(C[$]).style.color="#4A5CC2";_o(C[$]).style.textDecoration="underline";_o(C[$]).style.cursor="auto";_o(_[$]).style.display="none"}_o(C[B]).style.color="black";_o(C[B]).style.textDecoration="none";_o(C[B]).style.cursor="default";_o(_[B]).style.display="block";if(A=="MSIE")_o(_[B]).filters[0].play()}function moveFree(){}function getSubject(){Subject.GetSubject(_windCode,fillSubject)}function fillSubject(B){_o("tdWaitSubject").style.display="none";var A=B.value,_;if(A!=null){for(var $=A.length-1;$>=0;$--){_=_o("tbSubject").insertRow(1);_=addCell(_,1);_.cells[0].innerHTML="<a href=\""+A[$].SNT+"&ad=1\" target=_blank>"+A[$].T+"</a>&nbsp;&nbsp;"+A[$].D}}else{_=_o("tbSubject").insertRow(1);_=addCell(_,1);_.cells[0].innerHTML="(\u65e0)";_.cells[0].align="center"}}