function doStockSearch(a,b,c){doStockSearchGO(a,b,c,"symbol","")}function doStockSearch(a,b,c,i){doStockSearchGO(a,b,c,"symbol",i)}function doStockSearchN(a,b,c){doStockSearchGO(a,b,c,"ticker","")}function doStockSearchGO(a,b,c,i,f){a=document.getElementById(a).value;b.toUpperCase()==a.toUpperCase()&&(a="");b=c+"?"+i+"="+encodeURIComponent(a)+"&fs=1";f!=null&&f.length>0&&(b+="&WTmodLoc="+f);Redirect(b)}
function doStockSearchJP(a,b,c,i){var f=document.getElementById(a).value;b.toUpperCase()==f.toUpperCase()&&(f="");for(var h="",g="",e=document.getElementsByName("qtype"),d=0;d<e.length;d++)if(e.item(d).checked){h=e.item(d).value;break}e=document.getElementsByName("stockFilter");for(d=0;d<e.length;d++)if(e.item(d).checked){g=e.item(d).value;break}arguments.length>4&&arguments[4]===true&&self.GetCustomOriginType!=null&&typeof GetCustomOriginType=="function"&&(g=GetCustomOriginType(g,i));f=c+"?symbol="+
encodeURIComponent(f)+"&searchtype="+h+"&origin="+g+"&fs=1";Redirect(f)}
function doStockSearchJP2(a,b,c,i){var f="",h=document.getElementById(a);if(h!=null)f=h.value;else if(h=document.getElementsByName(a),h!=null)for(var g=0;g<h.length;g++)if(h.item(g)!=null){f=h.item(g).value;break}b.toUpperCase()==f.toUpperCase()&&(f="");for(var g=h="",e=document.getElementsByName("qtype"),d=0;d<e.length;d++)if(e.item(d).checked){h=e.item(d).value;break}try{if(e=document.getElementById("stockFilter"),e!=null)g=e.value;else{e=document.getElementsByName("stockFilter");for(d=0;d<e.length;d++)if(e[d]!=
null&&e[d].checked){g=e[d].value;break}}}catch(j){}arguments.length>4&&arguments[4]===true&&self.GetCustomOriginType!=null&&typeof GetCustomOriginType=="function"&&(g=GetCustomOriginType(g,i));f=c+"?symbol="+encodeURIComponent(f)+"&searchtype="+h+"&origin="+g+"&fs=1";Redirect(f)}function doSearchIntegration(a,b,c){a=document.getElementById(a).value;b=b+"?blob="+encodeURIComponent(a);c!=null&&c.length>0&&(b+="&WTmodLoc="+c);Redirect(b)}
function doSearchIntegrationEdition(a,b,c){a=document.getElementById(a).value;b=b+"?q="+encodeURIComponent(a);b+="&s="+c;c=="US"&&(b+="&searchWhere=NEWS");Redirect(b)}function newDoSearchIntegrationEdition(a,b){var c=document.getElementById(a).value,c=encodeURIComponent(c).replace(/%20/g,"+");Redirect(b+"?blob="+c)}function doSearch(a,b,c){doSearch(a,b,c,webTrendsModLoc)}
function doSearch(a,b,c,i){b=document.getElementById(b).value;"SEARCH"==b.toUpperCase()&&(b="");c=document.getElementById(c);c=c.options[c.selectedIndex].value;a=a+encodeURIComponent(b)+"&searchtype="+c;i!=null&&i.length>0&&(a+="&WTmodLoc="+i);Redirect(a)}function doSearchType(a,b,c){b=document.getElementById(b).value;"SEARCH"==b.toUpperCase()&&(b="");a=a+encodeURIComponent(b)+"&searchtype="+c;Redirect(a)}
function doSearchN(a,b,c){b=document.getElementById(b).value;"SEARCH"==b.toUpperCase()&&(b="");c=document.getElementById(c).value;a=a+encodeURIComponent(b)+"&qtype="+c;Redirect(a)}function DoSubmitCheck(){return document.forms[0].DoSubmit.value!="false"?false:true}function Redirect(a){if(typeof document.forms[0].DoSubmit!="undefined")document.forms[0].DoSubmit.value="true";window.parent.location=a}
function doLoginMenu(){var a="none",b="none";CheckToolBar()?a="inline":b="inline";if(document.all){if(document.all.loggedInNavs!=null)document.all.loggedInNavs.style.display=a,document.all.loggedOutNavs.style.display=b}else if(document.layers){if(document.layers.loggedInNavs!=null)document.layers.loggedInNavs.display=a,document.layers.loggedOutNavs.display=b}else if(document.getElementById("loggedInNavs")!=null)document.getElementById("loggedInNavs").style.display=a,document.getElementById("loggedOutNavs").style.display=
b}function CheckToolBar(){var a=false,a=0;window.location.host.indexOf("us")>-1||window.location.host.indexOf("www")>-1?a=1:window.location.host.indexOf("uk")>-1?a=2:window.location.host.indexOf("jp")>-1?a=4:window.location.host.indexOf("in")>-1?a=9:window.location.host.indexOf("cn")>-1&&(a=10);var b=getCookie("edition"),c=getCookie("customerId");return null==b||""==b?c!=null&&c!="@":c!=null&&c!="@"&&a==b}
function getCookie(a){if(document.cookie.length>0&&(begin=document.cookie.indexOf(a+"="),begin!=-1)){begin+=a.length+1;end=document.cookie.indexOf(";",begin);if(end==-1)end=document.cookie.length;return unescape(document.cookie.substring(begin,end))}return null}function doWeatherFrame(){}function gotoLoginPage(){window.location.href="https://commerce.us.reuters.com/login?go="+document.location.href}
function gotoLogoutPage(){window.location.href="https://commerce.us.reuters.com/login/pages/login/logout.do?go="+document.location.href};

