var onerror = handleErrors; function handleErrors(errorMessage, url, line) { return true; } var loaded = false; var webSite = 9; var graphics_dir = "/graphics/flips/"; var timerTag = ""; var timerRunning = false; var arrItems1 = new Array(); var arrItemsGrp1 = new Array(); var arrItemsVal1 = new Array(); var arrItems2 = new Array(); var arrItemsGrp2 = new Array(); var arrItemsVal2 = new Array(); var arrItems3 = new Array(); var arrItemsGrp3 = new Array(); var arrItemsVal3 = new Array(); function onImgErrorPriceCharts(source) { source.src = "/websites/images/nopricechart.png"; source.onerror = ""; return true; } function changeOptions3(control, ItemArrayMC, GroupArrayMC, ItemValueMC, ItemArraySECTOR, GroupArraySECTOR, ItemValueSECTOR, ItemArraySCORETYPE, GroupArraySCORETYPE, ItemValueSCORETYPE) { var controlToPopulateMC, controlToPopulateSECTOR, controlToPopulateSCORETYPE; controlToPopulateMC = document.MAIN_FORM.MARKET_CAP_ID; controlToPopulateSECTOR = document.MAIN_FORM.SECTOR_LIST; controlToPopulateSCORETYPE = document.MAIN_FORM.SCORETYPE_LIST; while (controlToPopulateMC.options.length) controlToPopulateMC.remove(0); while (controlToPopulateSECTOR.options.length) controlToPopulateSECTOR.remove(0); while (controlToPopulateSCORETYPE.options.length) controlToPopulateSCORETYPE.remove(0); for ( var x = 0 ; x < ItemArrayMC.length ; x++ ) { if ( GroupArrayMC[x] == control.value ) { addOption(controlToPopulateMC,ItemArrayMC[x],ItemValueMC[x]) ; } } for ( var y = 0 ; y < ItemArraySECTOR.length ; y++ ) { if ( GroupArraySECTOR[y] == control.value ) { addOption(controlToPopulateSECTOR,ItemArraySECTOR[y],ItemValueSECTOR[y]) ; } } for ( var z = 0 ; z < ItemArraySCORETYPE.length ; z++ ) { if ( GroupArraySCORETYPE[z] == control.value ) { addOption(controlToPopulateSCORETYPE,ItemArraySCORETYPE[z],ItemValueSCORETYPE[z]) ; } } } function changeOptions2(control, ItemArrayMC, GroupArrayMC, ItemValueMC, ItemArraySECTOR, GroupArraySECTOR, ItemValueSECTOR) { var controlToPopulateMC, controlToPopulateSECTOR; controlToPopulateMC = document.MAIN_FORM.MARKET_CAP_ID; controlToPopulateSECTOR = document.MAIN_FORM.SECTOR_LIST; while (controlToPopulateMC.options.length) controlToPopulateMC.remove(0); while (controlToPopulateSECTOR.options.length) controlToPopulateSECTOR.remove(0); for ( var x = 0 ; x < ItemArrayMC.length ; x++ ) { if ( GroupArrayMC[x] == control.value ) { addOption(controlToPopulateMC,ItemArrayMC[x],ItemValueMC[x]) ; } } for ( var y = 0 ; y < ItemArraySECTOR.length ; y++ ) { if ( GroupArraySECTOR[y] == control.value ) { addOption(controlToPopulateSECTOR,ItemArraySECTOR[y],ItemValueSECTOR[y]) ; } } } function changeOptions(control, controlToPopulate, ItemArray, GroupArray, ItemValue) { while (controlToPopulate.options.length) controlToPopulate.remove(0); for ( var x = 0 ; x < ItemArray.length ; x++ ) { if ( GroupArray[x] == control.value ) { addOption(controlToPopulate,ItemArray[x],ItemValue[x]) ; } } } function addOption(selectObject,optionText,optionValue) { var optionObject = new Option(optionText,optionValue) var optionRank = selectObject.options.length selectObject.options[optionRank]=optionObject } function VerifyDelete(formObj) {var portfolioVar = formObj.client_portfolio_id.options[formObj.client_portfolio_id.options.selectedIndex].text; return confirm("Are you sure you want to delete the " + portfolioVar + " portfolio?"); }function validate(object) { if (object.value.length > 0) { var ticker = object.value.toUpperCase(); for (var j=0; j=3)||(b=="Microsoft Internet Explorer")&&(v>=4)); var w3_check = ((b=="Netscape")&&(v>=5)||(b=="Microsoft Internet Explorer")&&(v>=4)); function notes(s) { newwindow = window.open ("/websites/w9/notes/" + s,"lancer_notes","height=250,width=425,toolbar=no,menubar=no,scrollbars=yes,screenX=200,screenY=200,top=200,left=200'"); newwindow.focus();} function flip() { if ((browser_check)) { document[flip.arguments[0]].src = graphics_dir + flip.arguments[0] + "_" + flip.arguments[1] + ".gif"; } } function styleflip() { if ((browser_check)) { document[styleflip.arguments[0]].src = "/websites/w" + styleflip.arguments[2] + "/graphics/flips/" + styleflip.arguments[0] + "_" + styleflip.arguments[1] + ".gif"; } } function homepageflip() { if ((browser_check)) { document[homepageflip.arguments[0]].src = "/websites/w" + homepageflip.arguments[2] + "/homepage/flips/" + homepageflip.arguments[0] + "_" + homepageflip.arguments[1] + ".gif"; } } function Tips() { if (arguments.length==1) { var s = "/tips/tips.jsp?id=" + Tips.arguments[0]; } else if (arguments.length==2) { var s = "/tips/tips.jsp?id=" + Tips.arguments[0] + "&grp=" + Tips.arguments[1]; } else { var s = "/tips/tips.jsp?id=default"; } newwindow = window.open (s,"lancer_tips","height=350,width=505,toolbar=no,menubar=no,scrollbars=yes,screenX=200,screenY=200,top=200,left=200'"); newwindow.focus();} function TipsL() { if (arguments.length==1) { var s = "/tips/tipsL.jsp?id=" + TipsL.arguments[0]; } else if (arguments.length==2) { var s = "/tips/tipsL.jsp?id=" + TipsL.arguments[0] + "&grp=" + TipsL.arguments[1]; } else { var s = "/tips/tipsL.jsp?id=default"; } newwindow = window.open (s,"lancer_tips","height=350,width=505,toolbar=no,menubar=no,scrollbars=yes,screenX=200,screenY=200,top=200,left=200'"); newwindow.focus();} function aOpen() { if (arguments.length==3) { var s = "/admin/show.jsp?type=" + aOpen.arguments[0] + "¶m=" + aOpen.arguments[2]; newwindow = window.open (s,"lancer_admin","height=500,width=" + aOpen.arguments[1] + ",toolbar=no,menubar=no,scrollbars=yes,screenX=200,screenY=200,top=200,left=200'"); newwindow.focus(); } } function fShow(pagenum) { newwindow = window.open ("/websites/w" + webSite + "/st/st_frame.jsp?who=" + pagenum,"lancer_public","height=570,width=548,toolbar=no,menubar=no,scrollbars=no"); newwindow.focus();} function gShow(bookmarks) { newwindow = window.open ("/websites/w" + webSite + "/st/st_frame.jsp" + bookmarks,"lancer_public","height=570,width=548,menubar=no,toolbar=no,scrollbars=no"); newwindow.focus();} function sShow() { newwindow = window.open ("/servlet/SecuritySearch","lancer_stksrch","height=400,width=600,menubar=no,toolbar=no,scrollbars=no"); newwindow.focus();} function cShow(theURL) { newwindow = window.open (theURL,"clist","height=400,width=600,menubar=no,toolbar=no,scrollbars=no"); newwindow.focus();} function alertSpan(object,state) { var spanid = document.getElementById(object); if (state==0) { spanid.style.visibility = 'hidden'; } else { spanid.style.visibility = 'visible'; } } function fLookUp() { newwindow = window.open("/servlet/tickerLookup","lancer_lookup","height=300,width=502,toolbar=no,menubar=no,scrollbars=no"); newwindow.focus();} function aLookUp() { newwindow = window.open("/servlet/analystLookup","lancer_lookup","height=350,width=502,toolbar=no,menubar=no,scrollbars=no"); newwindow.focus();} function checkPortList(pulldown) { var selection = 0; var thevalue = ""; for (var i=0; i < pulldown.length; i++) { if (pulldown.options[i].selected) { thevalue = pulldown.options[i].value; break; } } if (thevalue == "") { alert("You have a selected a blank row or a sector name.\n\nPlease select an industry, index, or your custom portfolio."); return false; } return true; } function showByLink(object,link,x,y) { if (document.layers && document.layers[object]) { document.layers[object].left = link.x + x; document.layers[object].top = link.y + y; document.layers[object].visibility = 'visible'; } else if (w3_check) { var theSpan = document.getElementById(object); theSpan.style.visibility = 'visible'; if (theSpan.myFlag == null) { theSpan.style.left = theSpan.offsetLeft + x; if (b=="Netscape") { theSpan.style.top = theSpan.offsetTop - 15; } else { theSpan.style.top = theSpan.offsetTop + y; } } theSpan.myFlag = true; } } function showTag(object,link,x,y) { if (w3_check) { timerRunning = false; var theSpan = document.getElementById(object); theSpan.style.visibility = 'visible'; if (theSpan.myFlag == null) { if (b=="Netscape") { theSpan.style.top = theSpan.offsetTop; } else { theSpan.style.top = theSpan.offsetTop + y; } } theSpan.myFlag = true; } } function showByLinkDelayed(object,link,x,y) { var Delay = 0; var tagTimer; if (w3_check) { if (timerRunning) clearTimeout(tagTimer); timerRunning = true; var sCall = "showTag('" + object + "','" + link + "'," + x + "," + y + ")"; tagTimer = setTimeout(sCall,Delay); } } function hide(object) { if (timerRunning) clearTimeout(tagTimer); if (document.layers && document.layers[object]) { document.layers[object].visibility = 'hidden'; } else if (w3_check) { var theSpan = document.getElementById(object); theSpan.style.visibility = 'hidden'; } } function show(object) { if (timerRunning) clearTimeout(tagTimer); if (document.layers && document.layers[object]) { document.layers[object].visibility = 'visible'; } else if (w3_check) { var theSpan = document.getElementById(object); theSpan.style.visibility = 'visible'; } } function tickerSelections(tickers, textArea) { var list = ""; for (var i=0; i < tickers.length; i++) { if (tickers.options[i].selected) { list = tickers.options[i].value + " "; } } var spacer = ""; var textAreaLen = textArea.value.length; if (textAreaLen > 0) { if (textArea.value.charAt(textAreaLen -1) != " ") spacer = " "; } textArea.value = list; } function tickerSelection(tickers, inputbox) { var list = ""; for (var i=0; i < tickers.length; i++) { if (tickers.options[i].selected) { list = tickers.options[i].value + " "; } } inputbox.value = list; } function analystMatch(analystText,input0,input1,form) { var name = ""; var id = ""; for (var i=0; i < analystText.length; i++) { if (analystText.options[i].selected) { name += analystText.options[i].value + " "; } } id = name.substring(name.indexOf("|") + 1); name = name.substring(0,name.indexOf("|")); input0.value = name; input1.value = id; form.submit(); } function stopError() { return true; } function isInteger(value) { return (parseInt(value) == value); } var integer = /^\d+$/; function checkIntval() { var validMktval = true; var validShrval = true; var output = ''; var testval = ''; testval = MAIN_FORM.mktval.value + ''; if (window.RegExp) testval = testval.replace(/[^0-9]+/g,''); if (!isInteger(testval)) validMktval = false; if (window.RegExp && !integer.test(testval)) validMktval = false; if (!validMktval) { output += 'Market Value Criteria Incorrect ('+ MAIN_FORM.mktval.value+')\r\rYou must enter a whole number (for example: 100,000 or 3,500,000)\r\r'; MAIN_FORM.mktval.value = "1"; } testval = MAIN_FORM.shares.value + ''; if (window.RegExp) testval = testval.replace(/[^0-9]+/g,''); if (!isInteger(testval)) validShrval = false; if (window.RegExp && !integer.test(testval)) validShrval = false; if (!validShrval) { output += 'No. of Shares Criteria Incorrect ('+ MAIN_FORM.shares.value+')\r\rYou must enter a whole number (for example: 100,000 or 3,500,000)'; MAIN_FORM.shares.value = "1"; } if (!validMktval||!validShrval) { alert(output); return false; } else { return true; } } function clearMktCap (selectitem) { for (var Current=1;Current < selectitem.length;Current++) { selectitem[Current].selected = false; } } function viewPDF(ticker, reportKey, reportTitle) { document.MAIN_FORM3.action = '/servlet\/MasterApp\/'+ reportKey +'\/pdf\/'+ ticker +'\/'+reportTitle+'_'+ticker+'.pdf'; return true; } function logOffConfirm() { return confirm("Do you want to log off?") } function resizeFrame(obj){ var isIE, ver; isIE = (navigator.appName=="Microsoft Internet Explorer"); if(isIE){ obj.style.height = (obj.contentWindow.document.body.scrollHeight>274?274:obj.contentWindow.document.body.scrollHeight) + 32 + 'px'; }else{ obj.style.height = (obj.contentWindow.document.body.scrollHeight>267?267:obj.contentWindow.document.body.scrollHeight) + 30 + 'px'; } } TINY={};TINY.box=function(){isIE = (navigator.appName=="Microsoft Internet Explorer");var ver=0;if(isIE){ if(/MSIE (\d+\.\d+);/.test(navigator.userAgent)){ ver = new Number(RegExp.$1); } }var j,m,b,g,et,fr,v,p,l,frht=0;return{show:function(o){v={opacity:70,close:1,animate:1,fixed:1,mask:1,maskid:'',boxid:'',resize:0,position:0,appframe:0,fr_ht:0,fr_top:0,topsplit:2,url:0,post:0,height:0,width:0,html:0,iframe:0};for (s in o) { v[s]=o[s] }document.onclick = TINY.box.getPos; if(ver<8){ if(v.fr_ht==247||v.fr_ht==217){ if(ver>6){v.fr_ht=v.fr_ht+7;}else{v.fr_ht=v.fr_ht-1;} }else if(v.fr_ht==202){ if(ver>6){v.fr_ht=v.fr_ht+21;}else{v.fr_ht=v.fr_ht+15;} }else if(v.fr_ht==127){ if(ver>6){v.fr_ht=v.fr_ht+21;}else{v.fr_ht=v.fr_ht+29;} }else if(v.fr_ht>300&&ver<7){v.fr_ht = v.fr_ht+8; }else{ if(v.fr_ht<300){if(ver<7){v.fr_ht=v.fr_ht+15;}else{v.fr_ht=v.fr_ht+7;}} } } if (!p) { j=document.createElement('div');j.className='tbox';p=document.createElement('div');p.className='tinner';b=document.createElement('div');b.className='tcontent';m=document.createElement('div');m.className='tmask';g=document.createElement('div');g.className='tclose';et=document.createElement('div');et.className='extLayer';fr=document.createElement('iframe');g.v=0;document.body.appendChild(m);document.body.appendChild(j);j.appendChild(et);et.appendChild(p);p.appendChild(b);m.onclick=g.onclick=TINY.box.hide;window.onresize=TINY.box.resize; } else { j.style.display='none';clearTimeout(p.ah);if (g.v) { p.removeChild(g);g.v=0 } }p.id=isIE?(v.boxid+'IE'):v.boxid;m.id=v.maskid;if (v.html&&!v.animate) { p.style.backgroundImage='none';b.innerHTML=v.html;b.style.display='';p.style.width=v.width?v.width+'px':'auto';p.style.height=v.height?v.height+'px':'auto' } else { b.style.display='none';if (!v.animate&&v.width&&v.height) { p.style.width=v.width+'px';p.style.height=v.height+'px' } else { } }if (v.mask) { this.mask();this.alpha(m,1,v.opacity) } else { this.alpha(j,1,100) }if (v.autohide) { p.ah=setTimeout(TINY.box.hide,1000*v.autohide) } else { document.onkeyup=TINY.box.esc }},fill:function(c,u,k,a,w,h){if (u) { if (v.image) { var i=new Image();i.onload=function(){w=w||i.width;h=h||i.height;TINY.box.psh(i,a,w,h)};i.src=v.image } else if (v.iframe) { if(v.resize==1){ this.psh('',a,w,h) }else if(v.resize==2){ this.psh('',a,w,h) }else{this.psh('',a,w,h)} } else { var x=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject('Microsoft.XMLHTTP');x.onreadystatechange=function(){if (x.readyState==4&&x.status==200) { p.style.backgroundImage='';TINY.box.psh(x.responseText,a,w,h) }};if (k) { x.open('POST',c,true);x.setRequestHeader('Content-type','application/x-www-form-urlencoded');x.send(k) } else { x.open('GET',c,true);x.send(null) } } } else { this.psh(c,a,w,h) }},psh:function(c,a,w,h){if (typeof c=='object') { b.appendChild(c) } else { b.innerHTML=c }var x=p.style.width,y=p.style.height;if (!w||!h) { p.style.width=w?w+'px':'';p.style.height=h?h+'px':'';b.style.display='';if (!h) { h=b.style.height; }if (!w) { w=parseInt(b.offsetWidth) }b.style.display='none' }p.style.width=x;p.style.height=y;this.size(w,h,a)},esc:function(e){e=e||window.event;if (e.keyCode==27) { TINY.box.hide() }},hide:function(){TINY.box.alpha(j,-1,0,3);document.onkeypress=null;if (v.closejs) { v.closejs() }},resize:function(){TINY.box.pos();TINY.box.mask()},mask:function(){m.style.height=this.total(1)+'px';m.style.width=this.total(0)+'px'},getPos:function(k){k=k||window.event;var cursor={x:0,y:0};if(k.pageX||k.pageY){cursor.x=k.pageX;cursor.y=k.pageY;}else{cursor.x=k.clientX+(document.documentElement.scrollLeft||document.body.scrollLeft)-document.documentElement.clientLeft;cursor.y = k.clientY +(document.documentElement.scrollTop||document.body.scrollTop)-document.documentElement.clientTop;}v.top = cursor.y;v.left = cursor.x; },pos:function(){if(v.top!=null){var ht=v.top; j.style.clear="both";if(v.resize==1){ j.style.top = '70px'; j.style.left = '35px'; }else if(v.resize==2){ j.style.top = '80px'; j.style.left = '75px'; }else{ l=v.position>0?(v.position+(isIE?30:10)):10; j.style.top=(ht>(document.documentElement.scrollHeight)?(ht-280):((ht-document.documentElement.scrollTop)>(this.height())?(ht-280):(ht-l)))+'px'; if(v.fr_top>0){j.style.top = j.style.top.substr(0,j.style.top.indexOf("p"))-100 +'px';} j.style.left=((v.left+400)>730?(v.left-350):(v.left+15))+'px'; //alert('top: '+j.style.top+'\nl : '+l+'\nvpos: '+v.position); }} if(isIE&&v.resize==1&&!g.v){ et.appendChild(fr); fr.style.clear="both"; j.style.display='block'; fr.style.width = ver>6?'428px':'436px'; fr.style.height = '438px'; fr.style.src = 'javascript:false'; fr.scroll = "no"; fr.frameBorder= "0"; fr.style.top = '75px'; fr.style.left = '30px'; fr.style.zIndex = '899'; fr.style.display='block'; }else if(isIE&&v.resize==2&&!g.v){ et.appendChild(fr); fr.style.clear="both"; j.style.display='block'; fr.style.width = ver>6?'508px':'516px'; fr.style.height = '438px'; fr.style.src = 'javascript:false'; fr.scroll = "no"; fr.frameBorder= "0"; fr.style.top = '85px'; fr.style.left = '70px'; fr.style.zIndex = '899'; fr.style.display='block'; }else if(isIE&&v.appframe==1&&!g.v){ et.appendChild(fr); fr.style.clear="both"; j.style.display='block'; fr.style.width = ver>6?'410px':'416px'; fr.style.height = v.fr_ht; fr.style.allowTransparency = true; fr.style.src = 'javascript:false'; fr.scroll = "no"; fr.frameBorder= "0"; fr.style.top = j.style.top; fr.style.left = j.style.left; fr.style.zIndex = '899'; fr.style.display='block'; }else if(v.appframe!=1&&v.resize!=1&&v.resize!=2){ fr.style.clear="both";//alert('no appframe'); fr.style.display='none'; } },alpha:function(e,d,a){clearInterval(e.ai);if (d) { e.style.opacity=0;e.style.filter='alpha(opacity=0)';e.style.display='block';TINY.box.pos() }e.ai=setInterval(function(){TINY.box.ta(e,a,d)},20)},ta:function(e,a,d){var o=Math.round(e.style.opacity*100);if (o==a) { clearInterval(e.ai);if (d==-1) { e.style.display='none';e==j?TINY.box.alpha(m,-1,0,2):b.innerHTML=p.style.backgroundImage='' } else { if (e==m) { this.alpha(j,1,100) } else { j.style.filter='';TINY.box.fill(v.html||v.url,v.url||v.iframe||v.image,v.post,v.animate,v.width,v.height) } } } else { var n=a-Math.floor(Math.abs(a-o)*.5)*d;e.style.opacity=n/100;e.style.filter='alpha(enabled=false)' }},size:function(w,h,a){if (a) { clearInterval(p.si);var wd=parseInt(p.style.width)>w?-1:1,hd=parseInt(p.style.height)>h?-1:1;p.si=setInterval(function(){TINY.box.ts(w,wd,h,hd)},20) } else { p.style.backgroundImage='none';if (v.close) { p.appendChild(g);g.v=1 }p.style.width=w+'px';b.style.display='';this.pos();if (v.openjs) { v.openjs() } }},ts:function(w,wd,h,hd){var cw=parseInt(p.style.width),ch=parseInt(p.style.height);if (cw==w&&ch==h) { clearInterval(p.si);p.style.backgroundImage='none';b.style.display='block';if (v.close) { p.appendChild(g);g.v=1 }if (v.openjs) { v.openjs() } } else { if (cw!=w) { p.style.width=(w-Math.floor(Math.abs(w-cw)*.6)*wd)+'px' }if (ch!=h) { p.style.height=(h-Math.floor(Math.abs(h-ch)*.6)*hd)+'px' }this.pos() }},top:function(){return document.documentElement.scrollTop||document.body.scrollTop},width:function(){return self.innerWidth||document.documentElement.clientWidth||document.body.clientWidth},height:function(){return self.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},total:function(d){var b=document.body,e=document.documentElement;return d?Math.max(Math.max(b.scrollHeight,e.scrollHeight),Math.max(b.clientHeight,e.clientHeight)):Math.max(Math.max(b.scrollWidth,e.scrollWidth),Math.max(b.clientWidth,e.clientWidth))}}}(); loaded=true;