window["allObjectsLoaded"]=false rateUpIMG = new Image(); rateDownIMG = new Image(); rateNoIMG = new Image(); rateUpIMG.src = "/images/new/ratedirup.gif" rateDownIMG.src = "/images/new/ratedirdown.gif" rateNoIMG.src="/images/x.gif" function sm(i,mName){ if (!window['allLoaded']) return false hdAll() window['menusLoaded']=true m=document.getElementById('m0' + i) l=document.getElementById('L1') ms=window.allMenusFrame.document.getElementById(mName) p=m.offsetLeft + document.getElementById('aaa').offsetLeft+10 w = parseInt(m.offsetWidth) ow = parseInt(ms.style.width) if(ow>w){w=ow} l.style.left = p+1-13 l.style.top = 221 l.style.height=parseInt(ms.style.height)+11 l.style.width=w+7 //if(i==1 || i==5){l.style.left = p+1-12-ow+parseInt(m.offsetWidth)} l.style.display = ""; ms.style.display='block' } function shSmChart(c){ popWin('http://www.forexnews.com/showChart.asp?cName='+c,'smcht'+c,'width=492,height=327') } function hdAll(){ if(window["language"]=="chn") return if (window['menusLoaded']) { document.getElementById('L1').style.left = -400; //alert(window.allMenusFrame) window.allMenusFrame.hdAllMenus() } } function checkRes(){ showRight=false if(screen.width>800 || showRight) { //document.getElementById("rightExtra").style.display="block" //document.getElementById("warningDiv").style.display="block" } } function loadDefs(){ checkRes() window["allLoaded"]=true window["allObjectsLoaded"]=true } function lw(u){ window.location=u } function loginFailedMessage(){ alert("Login Failed\n\nThe username and password combination you have entered is invalid. ") SetCookie("UserName", "",true) SetCookie("Password", "",true) } function SetCookie(sName, sValue,d){ if(d) {e="expires=Mon, 1 May 2006 23:59:59 UTC;"} else {e="expires=Wed, 8 Dec 2010 23:59:59 UTC;"} document.cookie = sName + "=" + escape(sValue) + "; " + e } function GetCookie(sName) { var aCookie = document.cookie.split("; "); for (var i=0; i < aCookie.length; i++) { var aCrumb = aCookie[i].split("="); if (sName == aCrumb[0]) return unescape(aCrumb[1]); } return null; } function loadRates() { document.getElementById("dDownloadRates").startDownload("/_rates/ratesTable.asa", doneRates) b=setTimeout('loadRates()',15000) } function doneRates(r){ document.getElementById("r_result").innerHTML=r curs=new Array("EURUSD","USDJPY","GBPUSD","USDCHF","AUDUSD","USDCAD","AUDJPY","EURJPY","GBPJPY","EURGBP","GBPCHF","EURCHF") for(i=0;i