window.iTimeoutID=0;function FirefoxEvent(){Event.prototype.__defineGetter__("srcElement",eventSrcElement)}function windowEvent(){return windowEventConstructor()}function eventSrcElement(){return this.target}function windowEventConstructor(){if(document.all){return window.event}var D=windowEventConstructor.caller;while(D!=null){var F=D.arguments[0];if(F){var E=F.constructor;if(E.toString().indexOf("Event")!=-1){return F}}D=D.caller}return null}if(window.addEventListener){FirefoxEvent()}String.prototype.trim=function(){return this.replace(/(^\s*)|(\s*$)/g,"")};function showLogonWindow(K){var G=document.getElementById("LayerLogon");G.style.position="absolute";G.style.display="block";var F=K;var I=K.clientHeight;var J=K.offsetWidth-K.clientWidth;while(F.offsetParent){I+=F.offsetTop;J+=F.offsetLeft;F=F.offsetParent}G.style.top=(I-100)+"px";if(document.all){G.style.left=(J-140)+"px"}else{G.style.left=(J-140)+"px"}}function hiddenLogonWindow(){var B=document.getElementById("LayerLogon");B.style.display="none"}function clearChangeTabPage(){window.clearTimeout(window.iTimeoutID)}function SetCookie(S,L){var R=new Date();var Y=window.location.host;var V=/jrj.com.cn|jrj.com/;Y=V.exec(Y);var N=SetCookie.arguments;var Q=SetCookie.arguments.length;var P=(Q>2)?N[2]:null;var U=(Q>3)?N[3]:null;var O=(Q>4)?Y:null;var T=(Q>5)?N[5]:false;if(P!=null&&P>=0){R.setTime(R.getTime()+7*24*60*60*1000)}document.cookie=S+"="+escape(L)+((P==null||P<0)?((P==-1)?"; expires=-1":""):("; expires="+R.toGMTString()))+((U==null)?"":("; path="+U))+((O==null)?"":("; domain="+O))+((T==true)?"; secure":"")}function GetCookie(D){var C=D+"=";if(document.cookie.length>0){offset=document.cookie.indexOf(C);if(offset!=-1){offset+=C.length;end=document.cookie.indexOf(";",offset);if(end==-1){end=document.cookie.length}return unescape(document.cookie.substring(offset,end))}else{return""}}}function ClearCookie(){try{SetCookie("UserName","",-1,"/",true,false);SetCookie("UserID","",-1,"/",true,false);SetCookie("Ticket","",-1,"/",true,false)}catch(B){}}function delalert(){return confirm("\u662f\u5426\u9690\u85cf\uff1f")}function delaction(G,I){if(confirm("\u662f\u5426\u5220\u9664\uff1f")){var F="/postdel.jspa?id="+G+"&forumid="+I+"&status=3";var E=document.getElementById("postformiframe");E.src=F}}function setTop(I,K,F){if(confirm("\u662f\u5426"+(F==1?"\u53d6\u6d88":"\u8bbe\u4e3a")+"\u7f6e\u9876\u5e16\uff1f")){var G="/topicdotop.jspa?forumid="+I+"&topicid="+K;var J=document.getElementById("postformiframe");J.src=G}}function setTopTopic(I,K,F){if(confirm("\u662f\u5426"+(F==2?"\u53d6\u6d88":"\u8bbe\u4e3a")+"\u603b\u7f6e\u9876\u5e16\uff1f")){var G="/dotoptopic.jspa?forumid="+I+"&topicid="+K;var J=document.getElementById("postformiframe");J.src=G}}function setAValue(I,K){var G=document.getElementById("avalue");if(G.value.length==0||!aValueIsNumber(G.value)){alert("\u8bf7\u8f93\u5165\u6b63\u786e\u7684A\u503c");G.focus()}else{if(confirm("\u662f\u5426\u5c06\u6b64\u5e16\u7684A\u503c\u4fee\u6539\u4e3a\uff1a"+G.value+"\uff1f")){var F="/dochangeavalue.jspa?forumid="+I+"&id="+K+"&aValue="+G.value;var J=document.getElementById("postformiframe");J.src=F}}}function aValueIsNumber(C){if(C==null){return false}var D=new RegExp("^-?[0-9]d*$");return D.test(C)}function setElite(I,K,F){if(confirm("\u662f\u5426"+(F==1?"\u53d6\u6d88":"\u8bbe\u4e3a")+"\u7cbe\u534e\u5e16\uff1f")){var G="/topicdoelite.jspa?forumid="+I+"&topicid="+K;var J=document.getElementById("postformiframe");J.src=G}}function SetBgColor(I){var E=GetCookie("IstockViewBgColor");var G=document.getElementById("replyContainer");var F=document.getElementById("replyContainer2");if(I.toUpperCase()=="INIT"){G.style.backgroundColor=(E=="")?"#FFFFFF":E;F.style.backgroundColor=(E=="")?"#FFFFFF":E}else{if(I==E){G.style.backgroundColor=E;reply2Container.style.backgroundColor=E}else{G.style.backgroundColor=I;F.style.backgroundColor=I;SetCookie("IstockViewBgColor",I)}}}function SetFontSize(D){var C=document.getElementById("replayContent");C.style.fontSize=D}function setHomePage(D){if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");var E=Components.classes["@mozilla.org/preferences-service;1"].getService(Components.interfaces.nsIPrefBranch);E.setCharPref("browser.startup.homepage",D)}catch(F){alert("\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165\r\u201cabout:config\u201d\u5e76\u56de\u8f66\u7136\u540e\r\u5c06[signed.applets.codebase_principal_support]\u8bbe\u7f6e\u4e3a'true'\u3002")}}else{document.body.style.behavior="url(#default#homepage)";document.body.setHomePage(D)}}function addfavorite(D,C){if(document.all){window.external.addFavorite(D,C)}else{if(window.sidebar){window.sidebar.addPanel(C,D,"")}}}function copyLink(){var B=location.href;copyToClipboard(B);alert("\u8be5\u6587\u7ae0\u5730\u5740\u5df2\u590d\u5236\u5230\u7c98\u5e16\u677f\u4e2d\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7QQ,MSN\u63a8\u8350\u7ed9\u597d\u53cb")}function copyToClipboard(N){if(window.clipboardData){window.clipboardData.clearData();window.clipboardData.setData("Text",N)}else{if(navigator.userAgent.indexOf("Opera")!=-1){window.location=N}else{if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(I){alert("\u4f60\u4f7f\u7528\u7684FF\u6d4f\u89c8\u5668,\u590d\u5236\u529f\u80fd\u88ab\u6d4f\u89c8\u5668\u62d2\u7edd\uff01\r\u8bf7\u5728\u6d4f\u89c8\u5668\u5730\u5740\u680f\u8f93\u5165'about:config'\u5e76\u56de\u8f66\r\u7136\u540e\u5c06'signed.applets.codebase_principal_support'\u8bbe\u7f6e\u4e3a'true'")}var J=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(!J){return}var L=Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(!L){return}L.addDataFlavor("text/unicode");var R=new Object();var O=new Object();var R=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);var P=N;R.data=P;L.setTransferData("text/unicode",R,P.length*2);var K=Components.interfaces.nsIClipboard;if(!J){return false}J.setData(L,null,K.kGlobalClipboard)}}}}function hqzhishu(B){AjaxRequest.get({url:"/quote/htmdata/html/"+B+".htm",onSuccess:function(A){ShowStockDataSTKResponse(A)}})}function ShowStockDataSTKResponse(D){var E=D.responseText;if(E==""){E=",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"}va=E.split(",");var F=document.getElementById("marketvalue");if(va[5]<0){F.innerHTML=va[3]+"&nbsp;"+va[5]+"&nbsp;"+va[6]+"%";F.className="emgreen"}else{if(va[5]==0){F.innerHTML=va[3]+"&nbsp;"+va[5]+"&nbsp;"+va[6]+"%";F.className="emblack"}else{F.innerHTML=va[3]+"&nbsp;+"+va[5]+"&nbsp;+"+va[6]+"%";F.className="emred"}}}function winopen(G,I,L,J,N,K){window.open(G,J,"height="+L+",width="+I+",status=no,toolbar=no,menubar=no,location=no,scrollbars="+N+",resizable="+K)}function intval(B){B=parseInt(B);return isNaN(B)?0:B}function getPos(O){var K=0;var J=0;var L=intval(O.style.width);var I=intval(O.style.height);var P=O.offsetWidth;var N=O.offsetHeight;while(O.offsetParent){K+=O.offsetLeft+(O.currentStyle?intval(O.currentStyle.borderLeftWidth):0);J+=O.offsetTop+(O.currentStyle?intval(O.currentStyle.borderTopWidth):0);O=O.offsetParent}K+=O.offsetLeft+(O.currentStyle?intval(O.currentStyle.borderLeftWidth):0);J+=O.offsetTop+(O.currentStyle?intval(O.currentStyle.borderTopWidth):0);return{x:K,y:J,w:L,h:I,wb:P,hb:N}}function getScroll(){var I,E,F,G;if(document.documentElement&&document.documentElement.scrollTop){I=document.documentElement.scrollTop;E=document.documentElement.scrollLeft;F=document.documentElement.scrollWidth;G=document.documentElement.scrollHeight}else{if(document.body){I=document.body.scrollTop;E=document.body.scrollLeft;F=document.body.scrollWidth;G=document.body.scrollHeight}}return{t:I,l:E,w:F,h:G}}function scroller(F,I){if(typeof F!="object"){F=document.getElementById(F)}if(!F){return}var G=this;G.el=F;G.p=getPos(F);G.s=getScroll();G.clear=function(){window.clearInterval(G.timer);G.timer=null};G.t=(new Date).getTime();G.step=function(){var A=(new Date).getTime();var B=(A-G.t)/I;if(A>=I+G.t){G.clear();window.setTimeout(function(){G.scroll(G.p.y,G.p.x)},13)}else{st=((-Math.cos(B*Math.PI)/2)+0.5)*(G.p.y-G.s.t)+G.s.t;sl=((-Math.cos(B*Math.PI)/2)+0.5)*(G.p.x-G.s.l)+G.s.l;G.scroll(st,sl)}};G.scroll=function(B,A){window.scrollTo(A,B)};G.timer=window.setInterval(function(){G.step()},13);var E=document.getElementById("Title");if(E&&E.type.toLowerCase()!="hidden"){E.focus()}}function objscroller(I,L,J){if(typeof I!="object"){I=document.getElementById(I)}if(!I){return}var K=this;K.el=I;K.p=getPos(I);K.s=getScroll();K.clear=function(){window.clearInterval(K.timer);K.timer=null};K.t=(new Date).getTime();K.step=function(){var A=(new Date).getTime();var B=(A-K.t)/L;if(A>=L+K.t){K.clear();window.setTimeout(function(){K.scroll(K.p.y,K.p.x)},13)}else{st=((-Math.cos(B*Math.PI)/2)+0.5)*(K.p.y-K.s.t)+K.s.t;sl=((-Math.cos(B*Math.PI)/2)+0.5)*(K.p.x-K.s.l)+K.s.l;K.scroll(st,sl)}};K.scroll=function(B,A){window.scrollTo(A,B)};K.timer=window.setInterval(function(){K.step()},13);var G=document.getElementById(J);if(G){try{G.focus()}catch(N){}}}function scrollerpost(F,E){if(typeof F!="object"){F=document.getElementById(F)}if(!F){return}var I=this;I.el=F;I.p=getPos(F);I.s=getScroll();I.clear=function(){window.clearInterval(I.timer);I.timer=null};I.t=(new Date).getTime();I.step=function(){var A=(new Date).getTime();var B=(A-I.t)/E;if(A>=E+I.t){I.clear();window.setTimeout(function(){I.scroll(I.p.y,I.p.x)},13)}else{st=((-Math.cos(B*Math.PI)/2)+0.5)*(I.p.y-I.s.t)+I.s.t;sl=((-Math.cos(B*Math.PI)/2)+0.5)*(I.p.x-I.s.l)+I.s.l;I.scroll(st,sl)}};I.scroll=function(B,A){window.scrollTo(A,B)};I.timer=window.setInterval(function(){I.step()},13);if(document.all){var G=frames.oblog_Composition}else{var G=document.getElementById("oblog_Composition").contentWindow}G.document.body.focus()}function returnpage(){var I=document.getElementById("pagevalue");var J=I.value;if(isNaN(parseInt(J))){return false}if(parseInt(J)<1){return false}if(parseInt(J)>I.getAttribute("total")){return false}var K=/(_\d*)/ig;var G=I.getAttribute("preUrl");var F=G.replace(K,"_"+parseInt(J));window.location.href=F}function checkUserProperty(G,N){var J=GetCookie("UserName");var I=GetCookie("UserID");var L=GetCookie("Ticket");if(J.trim()==""||I.trim()==""||L.trim()==""){alert("\u62b1\u6b49\uff0c\u60a8\u8fd8\u672a\u767b\u5f55\uff01");var K=document.getElementsByName("property");K[0].checked=true;return false}if(G>N){alert("\u5bf9\u4e0d\u8d77\uff0c\u60a8\u7684\u79ef\u5206\u4e0d\u8db3\uff0c\u65e0\u6cd5\u4f7f\u7528\u6b64\u9053\u5177\u3002");var K=document.getElementsByName("property");K[0].checked=true;return false}}function isToPayTopic(F,D,E){if(D.trim()==E.trim()){return true}return confirm("\u8be5\u64cd\u4f5c\u5c06\u6263\u9664"+F+"\u79ef\u5206\uff0c\u786e\u5b9a\u5417?")}var _9time=new Date().setHours(9,0,0);var _11time=new Date().setHours(11,31,0);var _13time=new Date().setHours(12,59,0);var _15time=new Date().setHours(15,1,0);var ctime;function ShowSHQuote(){var B="/quote/htmdata/html/sh_000001.htm";AjaxRequest.get({url:B,onSuccess:function(A){ShowSHQuoteResponse(A)}});ctime=new Date().getTime();if((ctime>_9time&&ctime<_11time)||(ctime>_13time&&ctime<_15time)){window.setTimeout(ShowSHQuote,30000)}}function ShowSHQuoteResponse(F){var D=F.responseText;if(D==""){D=",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"}va=D.split(",");var E=document.getElementById("result1");if(va[6]<0){E.innerHTML="<strong onclick=\"window.open('http://share.jrj.com.cn/stocks/index/sh000001/index.shtml');\">\u4e0a\u8bc1\u6307\u6570&nbsp;&nbsp;</strong><font class='down'>"+va[3]+"</font><b class='down down_ext'>"+va[6].replace("-","")+"%</b>\u6210\u4ea4\u603b\u989d"+((va[9]/10000)+"").replace(/([0-9]+[.][0-9]{0,2}).*/,"$1")+"\u4ebf\u5143"}else{E.innerHTML="<strong onclick=\"window.open('http://share.jrj.com.cn/stocks/index/sh000001/index.shtml');\">\u4e0a\u8bc1\u6307\u6570&nbsp;&nbsp;</strong><font class='up'>"+va[3]+"</font><b class='up up_ext'>"+va[6]+"%</b>\u6210\u4ea4\u603b\u989d"+((va[9]/10000)+"").replace(/([0-9]+[.][0-9]{0,2}).*/,"$1")+"\u4ebf\u5143"}}function ShowSZQuote(){var B="/quote/htmdata/html/sz_399001.htm";AjaxRequest.get({url:B,onSuccess:function(A){ShowSZQuoteResponse(A)}});ctime=new Date().getTime();if((ctime>_9time&&ctime<_11time)||(ctime>_13time&&ctime<_15time)){window.setTimeout(ShowSZQuote,30000)}}function ShowSZQuoteResponse(F){var D=F.responseText;if(D==""){D=",,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,"}va=D.split(",");var E=document.getElementById("result2");if(va[6]<0){E.innerHTML="<strong onclick=\"window.open('http://share.jrj.com.cn/stocks/index/sz399001/index.shtml');\">\u6df1\u5733\u6307\u6570&nbsp;&nbsp;</strong><font class='down'>"+va[3]+"</font><b class='down down_ext'>"+va[6].replace("-","")+"%</b>\u6210\u4ea4\u603b\u989d"+((va[9]/10000)+"").replace(/([0-9]+[.][0-9]{0,2}).*/,"$1")+"\u4ebf\u5143"}else{E.innerHTML="<strong onclick=\"window.open('http://share.jrj.com.cn/stocks/index/sz399001/index.shtml');\">\u6df1\u5733\u6307\u6570&nbsp;&nbsp;</strong><font class='up'>"+va[3]+"</font><b class='up up_ext'>"+va[6]+"%</b>\u6210\u4ea4\u603b\u989d"+((va[9]/10000)+"").replace(/([0-9]+[.][0-9]{0,2}).*/,"$1")+"\u4ebf\u5143"}}function ShowImg(D,C){window.open("http://quote.jrj.com.cn/htmdata/gifindex.asp?code="+D+"&market="+C,"","height=270,width=434,status=no,toolbar=no,menubar=no,location=no,resizable=no","replace")}function showNextLastTopic(F,D){var E="/nextlasttopic.jspa?topicid="+D+"&forumid="+F;AjaxRequest.get({url:E,onSuccess:function(A){showNextLastTopicResponse(A)}})}function showNextLastTopicResponse(D){var C=D.responseText;document.getElementById("nextlast").innerHTML=C}function setReturnUrl(){SetCookie("JRJ.ISTOCK.RETURNURL",window.location.href,-2,"/",true,false)}var search_type_val=1;var stocksTop=null;function topStockSelect(E,A,B){if(stocksTop==null){stocksTop=new stockList("stocksTop","stockLayer");stocksTop.Click=topStockClick;stocksTop.Func=topKeySelect}if(search_type_val!=1&&search_type_val!=2){return}stocksTop.showList(E,A,B)}function topStockClick(C,B){if(search_type_val!=1&&search_type_val!=2){return}var A=document.getElementById("search_content");A.value=B.trim();stocksTop.hiddenList()}function topKeySelect(){var A=document.getElementById("search_content");A.value=stocksTop.defaultStock[1].trim()}function changeSearchButton(B){var A=document.getElementById("topsearchForm");var F=document.getElementById("search_content_code");var E='<input name="search_content" type="text" class="text" id="search_content" value="\u8bf7\u8f93\u5165\u80a1\u7968\u4ee3\u7801\u3001\u62fc\u97f3\u3001\u7b80\u79f0\u3001\u5427\u540d" onclick="this.value=\'\'" onkeyup="topStockSelect(event,this.value,this)" autocomplete="off"/>';var D='<input name="search_content" type="text" class="text" id="search_content" value="\u8bf7\u8f93\u5165\u5173\u952e\u8bcd" onclick="this.value=\'\'" autocomplete="off"/>';var C='<input name="search_content" type="text" class="text" id="search_content" value="\u8bf7\u8f93\u5165\u80a1\u7968\u4ee3\u7801\u3001\u540d\u79f0\u548c\u7b80\u79f0" onclick="this.value=\'\'" onkeyup="topStockSelect(event,this.value,this)" autocomplete="off"/>';if(B==2){A.action="/fsearch.jspa";F.innerHTML=E}else{if(B==4){A.action="/includes/jsp/tophqsearch.jsp";F.innerHTML=C}else{A.action="http://istock.jrj.com.cn/remen/search.jspa";F.innerHTML=D}}}function checkSearchForm(){var F=document.getElementById("search_content");var B=document.getElementsByName("search_type");if(F.value.trim()==""||F.value=="\u8bf7\u8f93\u5165\u80a1\u7968\u4ee3\u7801\u3001\u62fc\u97f3\u3001\u7b80\u79f0\u3001\u5427\u540d"||F.value=="\u8bf7\u8f93\u5165\u5173\u952e\u8bcd"||F.value=="\u8bf7\u8f93\u5165\u80a1\u7968\u4ee3\u7801\u3001\u540d\u79f0\u548c\u7b80\u79f0"){alert("\u8bf7\u8f93\u5165\u641c\u7d22\u5185\u5bb9\uff01");return false}for(i=0;i<B.length;i++){if(B[i].checked&&B[i].value==2&&F.value.length>20){alert("\u4e0d\u80fd\u8d85\u8fc720\u4e2a\u5b57\u7b26\uff01");return false}}if(typeof(stocksTop)!="undefined"&&stocksTop!=null){stocksTop.hiddenList()}for(var A=0;A<stocksArray.length;A++){if(F.value.trim()==stocksArray[A].name){_addLastestShareToCookie(stocksArray[A].code)}}return true}function SlideBox(D,C,B){if(typeof(D)=="string"){D=document.getElementById(D)}this.container=D;this.frequency=C;this.direction=B;this.films=[];var A=this.container.getElementsByTagName("div");for(var E=0;E<A.length;E++){if(A[E].className=="slideFilm"){A[E].onmouseover=function(F){return function(){F._mouseover()}}(this);A[E].onmouseout=function(F){return function(){F._mouseout()}}(this);this.films[this.films.length]=A[E]}}this._playTimeoutId=null;this._slideTimeoutId=null;this._slidable=true;this._loop()}SlideBox.prototype={_loop:function(){var A=this;this._playTimeoutId=setTimeout(function(){A._slide()},this.frequency)},_slide:function(){var B=this;var A=function(){if(!B._slidable){return}var D=B.container;if(B.direction=="top"){if(D.scrollTop<D.offsetHeight-2){D.scrollTop+=2}else{clearInterval(B._slideTimeoutId);B._loop();var C=D.getElementsByTagName("div")[0];D.appendChild(C);D.scrollTop=0}}else{if(B.direction=="left"){if(D.scrollLeft<D.offsetWidth-2){D.scrollLeft+=2}else{clearInterval(B._slideTimeoutId);B._loop();var C=D.getElementsByTagName("div")[0];D.appendChild(C);D.scrollLeft=0}}}};this._slideTimeoutId=setInterval(A,10)},_mouseover:function(){this._slidable=false},_mouseout:function(){this._slidable=true}};function subUrl(D){var C="http://istock.jrj.com.cn/redirect.jsp?url="+escape(D);window.open(C)}function close_zjfwg_context(){var B=document.getElementById("_zjfwg_context");B.style.display="none"}function open_zjfwg_context(){var B=document.getElementById("_zjfwg_context");B.style.display="block"}function close_zjfwg(){setTimeout("callbackZjfwgHq()",2000);setTimeout("close_zjfwg_context()",5000)}function loadScript(A,C,B){var D=document.createElement("script");D.setAttribute("language","javascript");if(B){D.setAttribute("charset",B)}D.setAttribute("src",A);document.body.insertBefore(D,document.body.firstChild);if(document.all){D.onreadystatechange=function(){if(this.readyState==4||this.readyState=="complete"||this.readyState=="loaded"){if(C){C()}D.onreadystatechange=null;document.body.removeChild(D)}}}else{D.onload=function(){if(C){C()}D.onreadystatechange=null;document.body.removeChild(D)}}}function subStringByCase(D,E){if(!D||!E){return""}var A=0;var C=0;var B="";for(C=0;C<D.length;C++){if(D.charCodeAt(C)>128){A+=2}else{A++}if(A>E){return B}B+=D.charAt(C)}return D}function trimString(A){return A.replace(/^\s+|\s+$/g,"")}document.write('<div id="showDIV" class="showDIV" style="display:none"><p>\u6b63\u5728\u63d0\u4ea4,\u8bf7\u8010\u5fc3\u7b49\u5f85!</p><p><img src="http://i0.jrjimg.cn/istock/loading.gif" /></p><div id="panel"></div></div>');var W=screen.width;var H=screen.height;function M(B){return document.getElementById(B)}function MC(B){return document.createElement(B)}function isIE(){return(document.all&&window.ActiveXObject&&!window.opera)?true:false}function getBodySize(){var bodySize=[];with(document.documentElement){bodySize[0]=(scrollWidth>clientWidth)?scrollWidth:clientWidth;bodySize[1]=(scrollHeight>clientHeight)?scrollHeight:clientHeight}return bodySize}function popCoverDiv(){if(M("cover_div")){M("cover_div").style.display="block"}else{var coverDiv=MC("div");document.body.appendChild(coverDiv);coverDiv.id="cover_div";with(coverDiv.style){position="absolute";background="#CCCCCC";left="0px";top="0px";var bodySize=getBodySize();width=bodySize[0]+"px";height=bodySize[1]+"px";zIndex=0;if(isIE()){filter="Alpha(Opacity=60)"}else{opacity=0.6}}}}function showshowDIV(){var B=M("showDIV");B.style.display="block"}function change(F){var G=M("showDIV");G.style.display="block";G.style.position="absolute";var E=getBodySize();G.style.left=(E[0]-550)/2+"px";var I=document.getElementById(F);G.style.top=getPos(I).y+30+"px"}function showD(){change("addtopic");showshowDIV();popCoverDiv();void (0)}function close(){M("showDIV").style.display="none";M("cover_div").style.display="none";void (0)}function AjaxRequest(){var B=new Object();B.timeout=null;B.generateUniqueUrl=true;B.url=window.location.href;B.method="GET";B.async=true;B.username=null;B.password=null;B.parameters=new Object();B.requestIndex=AjaxRequest.numAjaxRequests++;B.responseReceived=false;B.groupName=null;B.queryString="";B.responseText=null;B.responseXML=null;B.status=null;B.statusText=null;B.aborted=false;B.xmlHttpRequest=null;B.onTimeout=null;B.onLoading=null;B.onLoaded=null;B.onInteractive=null;B.onComplete=null;B.onSuccess=null;B.onError=null;B.onGroupBegin=null;B.onGroupEnd=null;B.xmlHttpRequest=AjaxRequest.getXmlHttpRequest();if(B.xmlHttpRequest==null){return null}B.xmlHttpRequest.onreadystatechange=function(){if(B==null||B.xmlHttpRequest==null){return}if(B.xmlHttpRequest.readyState==1){B.onLoadingInternal(B)}if(B.xmlHttpRequest.readyState==2){B.onLoadedInternal(B)}if(B.xmlHttpRequest.readyState==3){B.onInteractiveInternal(B)}if(B.xmlHttpRequest.readyState==4){B.onCompleteInternal(B)}};B.onLoadingInternalHandled=false;B.onLoadedInternalHandled=false;B.onInteractiveInternalHandled=false;B.onCompleteInternalHandled=false;B.onLoadingInternal=function(){if(B.onLoadingInternalHandled){return}AjaxRequest.numActiveAjaxRequests++;if(AjaxRequest.numActiveAjaxRequests==1&&typeof(window.AjaxRequestBegin)=="function"){AjaxRequestBegin()}if(B.groupName!=null){if(typeof(AjaxRequest.numActiveAjaxGroupRequests[B.groupName])=="undefined"){AjaxRequest.numActiveAjaxGroupRequests[B.groupName]=0}AjaxRequest.numActiveAjaxGroupRequests[B.groupName]++;if(AjaxRequest.numActiveAjaxGroupRequests[B.groupName]==1&&typeof(B.onGroupBegin)=="function"){B.onGroupBegin(B.groupName)}}if(typeof(B.onLoading)=="function"){B.onLoading(B)}B.onLoadingInternalHandled=true};B.onLoadedInternal=function(){if(B.onLoadedInternalHandled){return}if(typeof(B.onLoaded)=="function"){B.onLoaded(B)}B.onLoadedInternalHandled=true};B.onInteractiveInternal=function(){if(B.onInteractiveInternalHandled){return}if(typeof(B.onInteractive)=="function"){B.onInteractive(B)}B.onInteractiveInternalHandled=true};B.onCompleteInternal=function(){if(B.onCompleteInternalHandled||B.aborted){return}B.onCompleteInternalHandled=true;AjaxRequest.numActiveAjaxRequests--;if(AjaxRequest.numActiveAjaxRequests==0&&typeof(window.AjaxRequestEnd)=="function"){AjaxRequestEnd(B.groupName)}if(B.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[B.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[B.groupName]==0&&typeof(B.onGroupEnd)=="function"){B.onGroupEnd(B.groupName)}}B.responseReceived=true;B.status=B.xmlHttpRequest.status;B.statusText=B.xmlHttpRequest.statusText;B.responseText=B.xmlHttpRequest.responseText;B.responseXML=B.xmlHttpRequest.responseXML;if(typeof(B.onComplete)=="function"){B.onComplete(B)}if(B.xmlHttpRequest.status==200&&typeof(B.onSuccess)=="function"){B.onSuccess(B)}else{if(typeof(B.onError)=="function"){B.onError(B)}}delete B.xmlHttpRequest.onreadystatechange;B.xmlHttpRequest=null};B.onTimeoutInternal=function(){if(B!=null&&B.xmlHttpRequest!=null&&!B.onCompleteInternalHandled){B.aborted=true;B.xmlHttpRequest.abort();AjaxRequest.numActiveAjaxRequests--;if(AjaxRequest.numActiveAjaxRequests==0&&typeof(window.AjaxRequestEnd)=="function"){AjaxRequestEnd(B.groupName)}if(B.groupName!=null){AjaxRequest.numActiveAjaxGroupRequests[B.groupName]--;if(AjaxRequest.numActiveAjaxGroupRequests[B.groupName]==0&&typeof(B.onGroupEnd)=="function"){B.onGroupEnd(B.groupName)}}if(typeof(B.onTimeout)=="function"){B.onTimeout(B)}delete B.xmlHttpRequest.onreadystatechange;B.xmlHttpRequest=null}};B.process=function(){if(B.xmlHttpRequest!=null){if(B.generateUniqueUrl&&B.method=="GET"){B.parameters.AjaxRequestUniqueId=new Date().getTime()+""+B.requestIndex}var A=null;for(var D in B.parameters){if(B.queryString.length>0){B.queryString+="&"}B.queryString+=encodeURIComponent(D)+"="+encodeURIComponent(B.parameters[D])}if(B.method=="GET"){if(B.queryString.length>0){B.url+=((B.url.indexOf("?")>-1)?"&":"?")+B.queryString}}B.xmlHttpRequest.open(B.method,B.url,B.async,B.username,B.password);if(B.method=="POST"){if(typeof(B.xmlHttpRequest.setRequestHeader)!="undefined"){B.xmlHttpRequest.setRequestHeader("Content-type","application/x-www-form-urlencoded")}A=B.queryString}if(B.timeout>0){setTimeout(B.onTimeoutInternal,B.timeout)}B.xmlHttpRequest.send(A)}};B.handleArguments=function(D){for(var A in D){if(typeof(B[A])=="undefined"){B.parameters[A]=D[A]}else{B[A]=D[A]}}};B.getAllResponseHeaders=function(){if(B.xmlHttpRequest!=null){if(B.responseReceived){return B.xmlHttpRequest.getAllResponseHeaders()}alert("Cannot getAllResponseHeaders because a response has not yet been received")}};B.getResponseHeader=function(A){if(B.xmlHttpRequest!=null){if(B.responseReceived){return B.xmlHttpRequest.getResponseHeader(A)}alert("Cannot getResponseHeader because a response has not yet been received")}};return B}AjaxRequest.getXmlHttpRequest=function(){if(window.XMLHttpRequest){return new XMLHttpRequest()}else{if(window.ActiveXObject){try{return new ActiveXObject("Msxml2.XMLHTTP")}catch(B){try{return new ActiveXObject("Microsoft.XMLHTTP")}catch(B){return null}}}else{return null}}};AjaxRequest.get=function(B){AjaxRequest.doRequest("GET",B)};AjaxRequest.doRequest=function(E,D){if(typeof(D)!="undefined"&&D!=null){var F=new AjaxRequest();F.method=E;F.handleArguments(D);F.process()}};AjaxRequest.isActive=function(){return(AjaxRequest.numActiveAjaxRequests>0)};AjaxRequest.post=function(B){AjaxRequest.doRequest("POST",B)};var _search=null;function changeSearchType(B){if(B==2){ctx=[];ctx.push('<form id="_search_form" onsubmit="return _search.checkSubmit();">');ctx.push('<p><em><input id="_istock_search" class="text" type="text">');ctx.push('</em><input id="_search_btn" type="button" value="\u7231\u80a1\u641c\u7d22"/>');ctx.push('<input type="hidden" name="url">');ctx.push('<input id="_search_form_submitBtn" style="width: 0px;height: 0px;padding: 0px;border: 0px;" type="submit" >');ctx.push("</p></form>");document.getElementById("istock_search_con").innerHTML=ctx.join("");var A=new Array(new JRJ.ui.Pattern("hk.s","http://istock.jrj.com.cn/list,hk[code].html"),new JRJ.ui.Pattern("cn.s","http://istock.jrj.com.cn/list,[code].html"));_search=new JRJ.ui.SearchBox("_istock_search","_search_btn",null,null,A);_search.param="&item=10&type=cn_s|hk_s";_search.forceForm="_search_form"}else{if(B==4){ctx=[];ctx.push('<form id="_search_form" onsubmit="return _search.checkSubmit();">');ctx.push('<p><em><input id="_istock_search" class="text" type="text">');ctx.push('</em><input id="_search_btn" type="button" value="\u7231\u80a1\u641c\u7d22"/>');ctx.push('<input type="hidden" name="url">');ctx.push('<input id="_search_form_submitBtn" style="width: 0px;height: 0px;padding: 0px;border: 0px;" type="submit" >');ctx.push("</p></form>");document.getElementById("istock_search_con").innerHTML=ctx.join("");_search=new JRJ.ui.SearchBox("_istock_search","_search_btn");_search.forceForm="_search_form"}else{ctx=[];ctx.push('<form name="topsearchForm" id="topsearchForm" action="http://isearch.jrj.com.cn/istock/tsearch.jspa" method="get" onsubmit="return checkSearchForm()">');ctx.push('<p><input name="search_type" value="3" type="hidden"/><em><input name="search_content" type="text" class="text" id="search_content" value="\u8bf7\u8f93\u5165\u5173\u952e\u8bcd" onclick="this.value=\'\'" autocomplete="off"/>');ctx.push('</em><input id="_search_btn" type="submit" value="\u7231\u80a1\u641c\u7d22"/></p>');ctx.push("</form>");document.getElementById("istock_search_con").innerHTML=ctx.join("")}}}if(typeof(JRJ)=="undefined"){var JRJ={}}if(typeof(JRJ.app)=="undefined"){JRJ.app={}}(function(C){var A={codeId:"app_askStock_code",mobileId:"app_askStock_mobile",okId:"app_askStock_ok",postUrl:"http://aps.jrj.com.cn/Json/join.aspx",codePrompt:"\u80a1\u7968\u4ee3\u7801",mobilePrompt:"\u624b\u673a\u53f7\u7801"};JRJ.app.askStock=function(E,D){this.actionId=E;this.config=B(D||{},A);this.codeInput=C("#"+this.config.codeId);this.mobileInput=C("#"+this.config.mobileId);this.okButton=C("#"+this.config.okId);this.init()};JRJ.app.askStock.prototype={init:function(){var D=this;D.codeInput.focus(function(){if(C.trim(D.codeInput.val())==D.config.codePrompt){D.codeInput.val("")}});D.codeInput.blur(function(){if(C.trim(D.codeInput.val())==""){D.codeInput.val(D.config.codePrompt)}});D.mobileInput.focus(function(){if(C.trim(D.mobileInput.val())==D.config.mobilePrompt){D.mobileInput.val("")}});D.mobileInput.blur(function(){if(C.trim(D.mobileInput.val())==""){D.mobileInput.val(D.config.mobilePrompt)}});D.okButton.click(function(){var I=D.codeInput.val();var F=D.mobileInput.val();var J=/^(((1[3,8][0-9]{1})|159|158|151|152|153|154|155|156|157|150)+\d{8})$/;var E=/^(((002|000|300|600)[\d]{3})|60[\d]{4})$/;if(!E.test(I)){alert("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u80a1\u7968\u4ee3\u7801");return false}if(!J.test(F)){alert("\u8bf7\u8f93\u5165\u6b63\u786e\u7684\u624b\u673a\u683c\u5f0f");return false}var G='[{"actionid":"'+D.actionId+'","stockcode1":"'+I+'","mobile":"'+F+'"}]';C.getJSON(D.config.postUrl+"?json="+G+"&callback=?",function(K){if(K&&K.result){var L="\u7528\u6237\uff1a\u60a8\u597d\uff01\n";L+="\u60a8\u7684\u4fe1\u606f\u5df2\u6210\u529f\u63d0\u4ea4\uff0c\u6211\u4eec\u4f1a\u5c3d\u5feb\u56de\u590d\uff01\n";L+="\u5982\u679c\u60a8\u6025\u9700\u7b54\u590d\uff0c\u8bf7\u54a8\u8be2\uff1a010\uff0d58325080\n";L+="\u6211\u4eec\u4f1a\u901a\u8fc7\u5feb\u8d62\u6570\u636e\u5e2e\u60a8\u67e5\u770b\u673a\u6784\u771f\u5b9e\u589e\u51cf\u4ed3\u4fe1\u606f\uff0c\n";L+="\u5982\u679c\u60a8\u662f\u8001\u7528\u6237\u8fd8\u53ef\u83b7\u5f97\u516c\u53f8\u5185\u90e8\u4fe1\u606f\u5e2e\u52a9\u3002\n";alert(L)}})})}};var B=function(F,D){if(F&&D&&typeof D=="object"){for(var E in D){if(!F.hasOwnProperty(E)){F[E]=D[E]}}}return F}})(jQuery);function istock_check_login(){if(!_checkLogin()){var A=new JRJLoginDialog("istock","","false","http://istock.jrj.com.cn/login.jspa","http://istock.jrj.com.cn/login.jspa");A.show();return false}return true}function istock_loginDialog(){var A=new JRJLoginDialog("istock","","false","http://istock.jrj.com.cn/login.jspa","http://istock.jrj.com.cn/login.jspa");A.show()}function setTab(B,C,E){for(i=1;i<=E;i++){var D=document.getElementById(B+i);var A=document.getElementById("con_"+B+"_"+i);if(i==C){addClass(D,"hover");A.style.display="block"}else{removeClass(D,"hover");A.style.display="none"}}}function addClass(B,C){if(!C){return false}if(B.className!=""){var A=new RegExp("\\b"+C+"\\b\\s*","");B.className=B.className.replace(A,"");B.className=C+" "+B.className}else{B.className=C}}function removeClass(B,C){if(!C){return false}if(B.className!=""){var A=new RegExp("\\b"+C+"\\b\\s*","");B.className=B.className.replace(A,"")}};

