function showTollFree(a){var b=document.getElementById("tollFreeInput");b.value=a.options[a.selectedIndex].value+"-800-932-66400";}function createRequestObject(){var a=false;try{a=new ActiveXObject("Msxml2.XMLHTTP");}catch(c){try{a=new ActiveXObject("Microsoft.XMLHTTP");}catch(b){a=false;}}if(!a&typeof XMLHttpRequest!="undefined"){a=new XMLHttpRequest();}return a;}function getRates(divID){var frm=document.form1;var url="";var currencyCode=frm.currencies.value;url="http://www.xe.com/fx/shared/wirefees.php?cur="+currencyCode;var xmlhttp=createRequestObject();xmlhttp.open("GET",url,true);xmlhttp.onreadystatechange=function(){if(xmlhttp.readyState==4){eval("document.getElementById('"+divID+"').innerHTML = xmlhttp.responseText + ' '");}};xmlhttp.send(null);}var targetUrl="http://www.xe.com/fx/help/all-faq.htm";var urlAttrName="url2";var loadingMsg="Loading...";if(typeof XMLHttpRequest=="undefined"){window.XMLHttpRequest=function(){try{return new ActiveXObject("Msxml2.XMLHTTP.6.0");}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP.3.0");
}catch(a){}try{return new ActiveXObject("Msxml2.XMLHTTP");}catch(a){}try{return new ActiveXObject("Microsoft.XMLHTTP");}catch(a){}throw new Error("This browser does not support XMLHttpRequest.");};}var xmlhttp=new XMLHttpRequest();function setTextById(c,b){var a=document.getElementById(c);if(a!=null){a.innerHTML=b;}}function load(c,b,j,g,i){if(i!=null&&typeof(i)=="object"){var a=i.getAttribute(urlAttrName);if(a!=null&&a.length>0){b=a;}}var f=document.getElementById(j);if(f){f.innerHTML=loadingMsg;}try{c.onreadystatechange=function(){};c.abort();c.open("GET",b,true);c.onreadystatechange=function(){if(c.readyState==4){if(c.status==200){g(c,j);}}};c.send(null);}catch(h){alert(h.toString());return;}}function process(f,j){var c=f.responseText;setTextById(j,c);var g=document.getElementById(j);var b=g.getElementsByTagName("a");for(var e=0;e<b.length;e++){href=b[e].getAttribute("href");if(href!=null&&href.length>0&&href.substring(19,30)=="fx/help/faq"){var h=href;var a=b[e].getAttribute(urlAttrName);if(a!=null&&a.length>0){h=a;
}else{h=href;}h=h.replace(/^https:/i,document.location.protocol);b[e].setAttribute(urlAttrName,h);onclick="load(xmlhttp,'"+h+"','wrapper',process);";b[e].setAttribute("onclick",onclick);b[e].onclick=function(){load(f,h,"wrapper",process,this);};href="#faq";b[e].setAttribute("href",href);}if(document.getElementById("currenttime")!=null){d=new Date();document.getElementById("currenttime").innerHTML=d.format("dddd h:MM tt Z")+" ("+d.format('dddd HH"h"MM Z',true)+")";}}}