function SetChecked(D){var A=document.frmCompare;var E=A.elements.length;for(var C=0;C<E;C++){var B=A.elements[C];if(B.name.substr(0,4)=="comp"){B.checked=D}}}function ValidateChart(E){var C=E.control_freq.options[E.control_freq.selectedIndex].value;var B=E.control_time.options[E.control_time.selectedIndex].value;var H=1;var G=1;var D=B.substr(B.length-2,2);if((D=="hr")||(D=="dy")){H=0}var A=C.substr(C.length-2,2);if((A=="mi")||(A=="hr")){G=0}var F=G+H;if(F==1){alert("Intraday Times and Frequencies must be charted together");return false}else{return true}}function openCapsule(B,A,C){sizedWindow=window.open(B,A,C);setTimeout("sizedWindow.focus();",250)}function go(A){if(A!="-"){self.location=A}}function navigate(A){idx=A.selectedIndex;url=A.options[idx].value;if(url=="URL"){str=A.options[idx].text;i=0;finished=false;while(!finished){if(((str.charAt(i)>"A")&&(str.charAt(i)<"z"))||i>=str.length){finished=true}else{i++}}url=window.location.protocol+"//"+window.location.host+"http:/"+str.substring(i,str.length)}if(url!=""){window.location=url}}function ccbnGetQS(){var D=self.location;var B,A=D.search.substr(1);var E=new Object();if(A.length>0){var C=A.replace(/\+/g," ").split("&");for(B=0;B<C.length;B++){C[B]=unescape(C[B]).split("=");E[C[B][0]]=C[B][1]}}return E}function ccbnWriteOption(B,A){var C=ccbnGetQS();document.write('<option value="'+B+'"');if(B==C.nyo){document.write(' selected="selected"')}document.write(">"+A+"</option>")}function ccbnNewsGo(C){var E=C.options[C.selectedIndex].value;var I=self.location;var D;var B=ccbnGetQS();if(E==-1){return }if(B.nyo){var G="&nyo="+B.nyo;var F="&nyo="+E;D=I.href.replace(G,F)}else{D=I+"&nyo="+E}if(B.t){var H="&t="+B.t;var A="";D=D.replace(H,A)}location=D}var CCBN_SHOW="visible";var CCBN_HIDE="hidden";var CCBN_SHOW_DISPLAY="block";var CCBN_HIDE_DISPLAY="none";var CCBN_TIMER=500;var CCBN_GET_X=0;var CCBN_GET_Y=1;var CCBN_GET_XY=2;var CCBN_BIOHOVER=0;var CCBN_NEWSHOVER=1;var CCBN_EVENTHOVER=2;var CCBN_DEFINITIONHOVER=3;var CCBN_OVER=0;var CCBN_OUT=1;var CCBN_IE="Microsoft Internet Explorer";var ccbn_mozMouseX,ccbn_mozMouseY,ccbn_popover_width,ccbn_fhObj,ccbnTimeout,ccbnHoverReady;var ccbn_appName=navigator.appName;var ccbn_appVersion=navigator.appVersion;var ccbn_offsetX=10;var ccbn_offsetY=5;var ccbn_no_doctype=false;function ccbnAddEvent(C,B){var A=C;if(typeof A!="function"){newEvent=B}else{newEvent=function(){if(A){A()}B()}}return newEvent}function ccbnAddLoadEvent(B){var A=window.onload;if(typeof window.onload!="function"){if(window.onload){window.onload=B}else{var E=window.addEventListener||document.addEventListener;var C=window.attachEvent||document.attachEvent;if(E){E("load",B,true);return true}else{if(C){var D=C("onload",B);return D}else{return false}}}}else{window.onload=function(){A();B()}}}function ccbnCloneToBody(A){var C=ccbnGetObj(A);if(C.parentNode!=document.body){var B=C.cloneNode(true);B.style.left=B.style.top=0;C.parentNode.removeChild(C);document.body.appendChild(B)}}function ccbnCloseObj(A){if(!ccbnGetObj(A)){return }ccbnShowHide(ccbnGetObj(A),CCBN_HIDE)}function ccbnDoMove(D,B,A,C){if(document.layers&&document.layers[D]!=null){document.layers[D].left=B+C;document.layers[D].top=A+C}else{if(document.all){document.all[D].style.posLeft=B;document.all[D].style.posTop=A}else{if(document.getElementById){document.getElementById(D).style.left=B+C;document.getElementById(D).style.top=A+C}}}}function ccbnEObj(){return(ccbn_appName=="Netscape"?"event":"''")}function ccbnFindPos(A){var B=curtop=0;if(A.offsetParent){B=A.offsetLeft;curtop=A.offsetTop;while(A=A.offsetParent){B+=A.offsetLeft;curtop+=A.offsetTop}}return[B,curtop]}function ccbnGetArgs(E){var B=new Object();var D=E.split("&");for(ccbn_i=0;ccbn_i<D.length;ccbn_i++){var F=D[ccbn_i].indexOf("=");if(F==-1){break}var A=D[ccbn_i].substring(0,F);var C=D[ccbn_i].substring(F+1);B[A]=unescape(C)}return B}function ccbnGetBrowserDimensions(B){var A,D,C;if(self.innerHeight){A=self.innerWidth;D=self.innerHeight}else{if(document.documentElement&&document.documentElement.clientHeight){A=document.documentElement.clientWidth;D=document.documentElement.clientHeight}else{if(document.body){A=document.body.clientWidth;D=document.body.clientHeight}}}C=new Array(A,D);if(B==CCBN_GET_XY){return C}else{return C[B]}}function ccbnGetCSSValue(B){var D=document.styleSheets;var E;var C,A;for(C=0;C<D.length;C++){try{if(D[C].rules){E=D[C].rules}else{if(D[C].cssRules){E=D[C].cssRules}else{break}}for(A=0;A<E.length;A++){if(E[A].selectorText==B){var F=E[A].style.cssText.toLowerCase();F=F.replace(/; /g,";")}}}catch(G){}}return F}function ccbnGetMouseXY(A){if(ccbn_appName!="Netscape"){if((!document.compatMode||document.compatMode=="BackCompat")&&document.body&&typeof document.body.scrollLeft!="undefined"){ccbn_scrollLeft=document.body.scrollLeft;ccbn_scrollTop=document.body.scrollTop}else{ccbn_scrollLeft=document.documentElement.scrollLeft;ccbn_scrollTop=document.documentElement.scrollTop}ccbn_tempX=event.clientX+ccbn_scrollLeft;ccbn_tempY=event.clientY+ccbn_scrollTop}else{ccbn_tempX=A.pageX;ccbn_tempY=A.pageY}if(ccbn_tempX<0){ccbn_tempX=0}if(ccbn_tempY<0){ccbn_tempY=0}ccbn_mozMouseX=ccbn_tempX;ccbn_mozMouseY=ccbn_tempY;return true}function ccbnGetAjaxObjByModuleName(A){for(ccbn_i=0;ccbn_i<ccbnAjaxObject.length;ccbn_i++){if(ccbnAjaxObject[ccbn_i].moduleName==A){return ccbnAjaxObject[ccbn_i]}}}function ccbnGetObj(A){if(document.layers&&document.layers[A]!=null){return document.layers[A]}else{if(document.all){return document.all[A]}else{if(document.getElementById){return document.getElementById(A)}}}}function ccbnHandleHover(I,A,D){var E=I.href.toLowerCase();var B=ccbnGetArgs(E);var C;if(!ccbnHoverReady){ccbnSetupHovers();return }switch(A){case CCBN_BIOHOVER:if(D==CCBN_OVER){if(!B.id){break}C="bio"+B.id;ccbnOpenObj(C)}else{ccbnStartTimer()}break;case CCBN_NEWSHOVER:if(D==CCBN_OVER){if(!B.id){break}C="release"+B.id;ccbnOpenObj(C)}else{ccbnStartTimer()}break;case CCBN_EVENTHOVER:if(D==CCBN_OVER){if(B.item_id){C="eventHeader"+B.item_id}else{if(B.eventid){C="eventHeader"+B.eventid}else{break}}ccbnOpenObj(C)}else{ccbnStartTimer()}break;case CCBN_DEFINITIONHOVER:if(D==CCBN_OVER){B=ccbnGetArgs(I.href);var H=B.def_id;var F=B.mt;var G=F;H=H.replace(/%*/g,"");if(F=="TFSnapshot"){G="Multex";switch(H){case"APR2REV":case"APRCFPS":case"APRICE2BK":case"ATOTD2EQ":case"DIVTRENDGR":case"REVTRENDGR":case"NITRENDGR":case"ACURRATIO":G="Worldscope"}}if(F=="TFTradingStatistics"){G="Multex Market Guide";switch(H){case"6":case"7":case"17":G="MarketWatch"}}if(F=="TFRatios"){switch(H){case"AROIPCT":case"APMGN":case"APMGNPCT":case"316":case"ACURRATIO":case"AINVTURN":case"ARECTURN":case"AASTTURN":case"AROAPCT":case"AROEPCT":case"391":case"APR2REV":case"APRCFPS":case"ATOTD2EQ":case"APRICE2BK":case"APRICE2BK":G="Worldscope";break;case"308":G="Multex";break}}if(F=="WS"){G="Worldscope"}if(F=="SEC"){G="SECFeed"}if(F=="HL"){G="Highline"}C="definition"+H+G.substring(0,5);ccbnOpenObj(C)}else{ccbnStartTimer()}break}}function ccbnForceHide(){if(!ccbn_fhObj){return }var A=ccbn_fhObj.id;ccbnShowHide(ccbn_fhObj,CCBN_HIDE);ccbnDoMove(A,-1000,-1000,((ccbn_appName=="Netscape")?"px":""))}function ccbnMoveObj(A,H,C,B,J,K){var I=(C)?C:ccbn_mozMouseX;var G=(B)?B:ccbn_mozMouseY;var M=I+ccbn_offsetX;var L=G+ccbn_offsetY;K=K?K:M;var D=ccbn_appName=="Netscape"?"px":"";var F;ccbn_browser_x=ccbnGetBrowserDimensions(CCBN_GET_X);if(ccbn_popover_width==null||isNaN(ccbn_popover_width)){var E=ccbnGetObj(A).className.split(" ");for(ccbn_i=0;ccbn_i<E.length;ccbn_i++){F=ccbnGetCSSValue("."+E[ccbn_i]);if(F&&F.lastIndexOf(";width: ")!=-1){ccbn_popover_width=parseInt(F.substring(F.lastIndexOf(";width: ")+8,F.length))}if(ccbn_popover_width==null||isNaN(ccbn_popover_width)){ccbn_popover_width=300}}}if(J){ccbnCloneToBody(A)}if(K+ccbn_popover_width>ccbn_browser_x){M-=ccbn_popover_width}ccbnDoMove(A,M,L,D)}function ccbnOpenObj(A){ccbnStopTimer();ccbnForceHide();if(!ccbnGetObj(A)){return }ccbnMoveObj(A,ccbnEObj(),null,null,true);ccbnShowHide(ccbnGetObj(A),CCBN_SHOW)}function ccbnSetInnerHtml(B,A){B.innerHTML=A}function ccbnSetupHovers(){if(!ccbnHoverReady){if(document.captureEvents){document.captureEvents(Event.MOUSEMOVE)}document.onmousemove=ccbnAddEvent(document.onmousemove,ccbnGetMouseXY);ccbnHoverReady=true}}function ccbnSetupAjax(){for(ccbn_i=0;ccbn_i<ccbnAjaxObject.length;ccbn_i++){ccbnAjaxObject[ccbn_i].init()}}function ccbnShowHide(A,B){A.style.visibility=B;if(B==CCBN_SHOW){ccbn_fhObj=A}else{ccbn_fhObj=""}}function ccbnShowHide_Display(A,B){A.style.display=B}function ccbnStopTimer(){clearTimeout(ccbnTimeout)}function ccbnStartTimer(A){if(A>-1){CCBN_TIMER=A}ccbnTimeout=setTimeout(ccbnForceHide,CCBN_TIMER)}var ccbnScrollInterval;var ccbnScrTime,ccbnScrSt,ccbnScrDist,ccbnScrDur,ccbnScrInt;function ccbnFindPosY(B){var A=0;if(B.offsetParent){while(1){A+=B.offsetTop;if(!B.offsetParent){break}B=B.offsetParent}}else{if(B.y){A+=B.y}}return A}function ccbnReplaceAnchorLinks(){var D,A,C,B;if(!document.getElementById){return }D=document.getElementsByTagName("a");for(A=0;A<D.length;A++){if(D[A].href.indexOf("#")!=-1){C=D[A].href.substring(D[A].href.indexOf("#")+1);B=document.getElementsByName(C);if(B.length){D[A].className=(B[0].offsetTop<D[A].offsetTop)?"up":"down";D[A].id="__"+C;D[A].onclick=function(){ccbnScrollToAnchor(this.id.substring(2));return false}}}}}function ccbnScrollPage(){ccbnScrTime+=ccbnScrInt;if(ccbnScrTime<ccbnScrDur){window.scrollTo(0,ccbnEaseInOut(ccbnScrTime,ccbnScrSt,ccbnScrDist,ccbnScrDur))}else{window.scrollTo(0,ccbnScrSt+ccbnScrDist);clearInterval(ccbnScrollInterval)}}function ccbnScrollToAnchor(C){var E,B,F,A,D;if(!document.getElementById){return }E=document.getElementsByTagName("a");for(B=0;B<E.length;B++){if(E[B].name==C){F=E[B];B=E.length}}A=ccbnFindPosY(F);D=30;if(typeof (window.pageYOffset)=="number"){ccbnScrSt=window.pageYOffset;ccbnScrDist=A-D-ccbnScrSt;ccbnScrDur=500}else{if(document.documentElement){ccbnScrSt=document.documentElement.scrollTop;ccbnScrDist=A-ccbnScrSt;if(window.XMLHttpRequest){ccbnScrDur=500}else{ccbnScrDur=1500}}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){ccbnScrSt=document.body.scrollTop;ccbnScrDist=A-ccbnScrSt;ccbnScrDur=500}}}ccbnScrTime=0;ccbnScrInt=10;clearInterval(ccbnScrollInterval);ccbnScrollInterval=setInterval(ccbnScrollPage,ccbnScrInt)}function ccbnEaseInOut(B,A,D,C){return D/2*(1-Math.cos(Math.PI*B/C))+A}var IdNo=0;function ccbnScroller(B,A,D,E,C,G,F){this.id="myObject"+IdNo++;window[this.id]=this;this.container=B;this.layers=this.container.getElementsByTagName("div");this.layerCount=this.layers.length;this.currentLayer=1;this.scrollTime=G;this.scrollSpeed=C;this.scrollPause=E;this.scrollWidth=A;this.scrollHeight=D;this.scrollDirection=F;this.currentLayerY;this.currentLayerX;this.scrollLayerY=0;this.scrollLayerX=0;this.ccbn_px=navigator.appName=="Netscape"?"px":"";this.runTimeout;this.scrollTimeout;this.stopped;this.scrollTop;this.scrollRight;this.scrollBottom;this.scrollLeft;this.previousLayer;this.scrollLayer;this.ccbnStartScroll=ccbnStartScroll;this.ccbnStopScroll=ccbnStopScroll;this.ccbnDoScroll=ccbnDoScroll;this.ccbnRunScroll=ccbnRunScroll;this.ccbnRestartScroll=ccbnRestartScroll;this.ccbnSetScrollLayerBoundaries=ccbnSetScrollLayerBoundaries}function ccbnStartScroll(){ccbnDoMove(this.layers[this.currentLayer].id,0,(-this.scrollHeight),this.ccbn_px);ccbnDoMove(this.layers[0].id,-1000,-1000,this.ccbn_px);this.currentLayerY=-this.scrollHeight;this.currentLayerX=0;this.runTimeout=setTimeout("window."+this.id+".ccbnRunScroll()",this.scrollPause)}function ccbnStopScroll(){this.stopped=true;clearTimeout(this.runTimeout)}function ccbnRestartScroll(){this.stopped=false;this.runTimeout=setTimeout("window."+this.id+".ccbnRunScroll()",this.scrollPause)}function ccbnRunScroll(){if(this.stopped){return }if(this.previousLayer){ccbnSetZIndex(this.layers[this.previousLayer].id,-1)}ccbnSetZIndex(this.layers[this.currentLayer].id,0);this.scrollLayer=(this.currentLayer==(this.layerCount-1))?1:this.currentLayer+1;this.ccbnSetScrollLayerBoundaries();ccbnSetZIndex(this.layers[this.scrollLayer].id,1);ccbnDoMove(this.layers[this.scrollLayer].id,(this.scrollLayerX),(this.scrollLayerY),this.ccbn_px);this.scrollTimeout=this.ccbnDoScroll()}function ccbnSetScrollLayerBoundaries(){switch(this.scrollDirection){case 0:this.scrollTop=this.scrollHeight*-this.scrollLayer;this.scrollLayerY=this.scrollTop+this.scrollHeight;break;case 1:this.scrollTop=this.scrollHeight*-this.scrollLayer;this.scrollLayerY=this.scrollTop;this.scrollLeft=0;this.scrollLayerX=this.scrollWidth;break}}function ccbnDoScroll(){switch(this.scrollDirection){case 0:if(this.scrollLayerY!=this.scrollTop){var D=((this.scrollLayerY-this.scrollSpeed)<this.scrollTop)?this.scrollTop:(this.scrollLayerY-this.scrollSpeed);ccbnDoMove(this.layers[this.scrollLayer].id,0,D,this.ccbn_px);this.scrollLayerY=D;var A=this.currentLayerY-this.scrollSpeed;ccbnDoMove(this.layers[this.currentLayer].id,0,A,this.ccbn_px);this.currentLayerY=A;this.scrollTimeout=setTimeout("window."+this.id+".ccbnDoScroll()",this.scrollTime)}else{this.previousLayer=this.currentLayer;this.currentLayer=this.scrollLayer;this.currentLayerY=this.scrollLayerY;clearTimeout(this.scrollTimeout);clearTimeout(this.runTimeout);this.runTimeout=setTimeout("window."+this.id+".ccbnRunScroll()",this.scrollPause)}break;case 1:if(this.scrollLayerX!=this.scrollLeft){var E=((this.scrollLayerX-this.scrollSpeed)<this.scrollLeft)?this.scrollLeft:(this.scrollLayerX-this.scrollSpeed);ccbnDoMove(this.layers[this.scrollLayer].id,E,this.scrollLayerY,this.ccbn_px);this.scrollLayerX=E;var B=this.currentLayerX-this.scrollSpeed;var C=(this.scrollLayerY+(this.scrollHeight*(this.scrollLayer)));ccbnDoMove(this.layers[this.currentLayer].id,B,C,this.ccbn_px);this.currentLayerX=B;this.scrollTimeout=setTimeout("window."+this.id+".ccbnDoScroll()",this.scrollTime)}else{this.previousLayer=this.currentLayer;this.currentLayer=this.scrollLayer;this.currentLayerX=this.scrollLayerX;clearTimeout(this.scrollTimeout);clearTimeout(this.runTimeout);this.runTimeout=setTimeout("window."+this.id+".ccbnRunScroll()",this.scrollPause)}break}}function ccbnSetZIndex(B,A){if(document.layers&&document.layers[B]!=null){document.layers[B].zIndex=A}else{if(document.all){document.all[B].style.zIndex=A}else{if(document.getElementById){document.getElementById(B).style.zIndex=A}}}}function ccbnAjax(A,D,H,G,C,B){var F;this.moduleName=A;this.CMID=D;this.queryString=H;this.container=G;this.refreshRate=C;this.objectArrayID=B;this.init=function(){this.container=(typeof (this.container)!="object")?ccbnGetObj(this.container):this.container;this.setURL();if(this.refreshRate){setTimeout("ccbnAjaxObject["+this.objectArrayID+"].executeXMLReq("+this.objectArrayID+")",this.refreshRate)}};this.setURL=function(){F="phoenix.zhtml?c="+this.CMID+"&m="+this.moduleName+this.queryString;var J=ccbnGetQS();for(var I in J){if(I!="p"&&I!="m"&&I!="c"&&I!="ym"){F+="&"+I+"="+J[I]}}};this.executeAfterReq=function(J,I){ccbnSetInnerHtml(ccbnAjaxObject[J].xmlReq[I].responseText,ccbnAjaxObject[J].container);if(ccbnAjaxObject[J].refreshRate){setTimeout("ccbnAjaxObject["+J+"].executeXMLReq("+J+")",ccbnAjaxObject[J].refreshRate)}};this.xmlReq=new Array();this.executeXMLReq=function(I,K,J){if(K){this.queryString=K;this.setURL()}this.xmlReq[J]=new E();if(this.xmlReq[J]){this.xmlReq[J].onreadystatechange=function(){if(ccbnAjaxObject[I].xmlReq[J].readyState==4&&ccbnAjaxObject[I].xmlReq[J].status==200){ccbnAjaxObject[I].executeAfterReq(I,J)}}}if(ccbnAjaxObject[I].CMID==null||ccbnAjaxObject[I].moduleName==null){return }this.xmlReq[J].open("GET",F,true);this.xmlReq[J].send(null)};function E(){if(window.XMLHttpRequest){try{xmlRequest=new XMLHttpRequest()}catch(I){xmlRequest=false}}else{if(window.ActiveXObject){try{xmlRequest=new ActiveXObject("Msxml2.XMLHTTP")}catch(I){try{xmlRequest=new ActiveXObject("Microsoft.XMLHTTP")}catch(I){xmlRequest=false}}}}return xmlRequest}}var ccbnHiliteSuffix="ccbnIE6Over";function ccbnAddClass(A,B){A.className=A.className+" "+B}function ccbnRemoveClass(E,D){var B=E.className.split(" ");var C=new Array();for(var A=B.length;A>0;){if(B[--A]!=D){C[C.length]=B[A]}}E.className=C.join(" ")}function ccbnIE6TurnHoversOn(){if((document.documentElement&&!window.XMLHttpRequest)||(document.all&&ccbn_no_doctype)){var E=document.getElementsByTagName("div");var C=document.getElementsByTagName("table");var B=new Array("ccbnCalButton","ccbnDay");for(ccbn_i=0;ccbn_i<E.length;ccbn_i++){if(E[ccbn_i].id.indexOf("month")!=-1){var D=E[ccbn_i].getElementsByTagName("td");for(ccbn_j=0;ccbn_j<D.length;ccbn_j++){for(ccbn_k=0;ccbn_k<B.length;ccbn_k++){if(D[ccbn_j].className.indexOf(B[ccbn_k])!=-1){D[ccbn_j].onmouseover=function(){ccbnAddClass(this,ccbnHiliteSuffix)};D[ccbn_j].onmouseout=function(){ccbnRemoveClass(this,ccbnHiliteSuffix)}}}}}}for(ccbn_i=0;ccbn_i<C.length;ccbn_i++){if(C[ccbn_i].className.indexOf("ccbnRowHoverTbl")!=-1){var A=C[ccbn_i].getElementsByTagName("tr");for(ccbn_j=0;ccbn_j<A.length;ccbn_j++){if(A[ccbn_j].className.indexOf("ccbnBgTblTtl")==-1){A[ccbn_j].onmouseover=function(){ccbnAddClass(this,ccbnHiliteSuffix)};A[ccbn_j].onmouseout=function(){ccbnRemoveClass(this,ccbnHiliteSuffix)}}}}}}}var ccbnAjaxObject=new Array();ccbnAddLoadEvent(ccbnSetupAjax);