function openWin() {
window.open("https://secure.efxnow.com/NewOLS_MQUV_EN/agreement.aspx","popWin","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=0,top=0,width=568, height=500");
}

function viewexamples() {
window.open("../forexinsider.html","sslWin","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=50,top=50,width=500, height=275");
}

current_date = new Date();
current_year = current_date.getYear();
if (current_year < 1000)
current_year+=1900;


function clearText(thefield){
if (thefield.defaultValue==thefield.value)
thefield.value = ""
}

function toolWin(url) {
window.open (url, "tools", "status=yes,toolbar=yes,directories=no,menubar=yes,location=yes,resizable=yes,scrollbars=yes,left=50,top=50,width=450, height=450");
}



function writeFooter()
{
	document.write('<p align="center"><span class="cellpad2"><span style="font-size: 10pt">FOREX.com is a trading name of GAIN Capital - FOREX.com UK Limited and is authorised and regulated by the Financial Services Authority.  FSA No. 190864.</span><br><br>9th Floor, 12 Camomile Street, London EC3A 7PT United Kingdom<br />Tel: +44 020 7398 5030 or 1.877.FOREXGO (367.3946) | Email: <a href="mailto:metatraderuk@forex.com">metatraderuk@forex.com</a><br /><a href="javascript:openWin()">Customer Agreement</a> | <a href="privacy_policy.html">Privacy Policy</a> | <a href="risk_warning.html">Risk Warning</a><br />&copy;' + current_year + ' FOREX.com UK</span></p>');
}

function writeFooter2()
{
	document.write('<tr>');
  document.write('<td height="1" colspan="3" valign="top"><table width="773"  border="0" cellpadding="0" cellspacing="0" background="../images/header/footer_bg_meta.gif" class="footerboxMeta" align="center">');
  document.write('<tr valign="top">');
  document.write('<td align="left"><p class="footerlinksMeta"><a href="forex_site_map.html">Site Map</a> | <a href="contact_us.html">Contact Us</a> | <a href="index.html">Home</a> | <a href="trade_pricing.html">Trade</a> | <a href="forex_platform_metatrader.html">Platform</a> | <a href="forex_research.html">Research</a> | <a href="about.html">About</a> | <a href="contact_us.html">Support</a></p></td>');
  document.write('<td align="right" class="footerlinksMeta"><a href="javascript:openWin();">Customer Agreement</a> | <a href="privacy_policy.html">Privacy Policy</a> | <a href="risk_warning.html">Risk Warning</a></td>');
  document.write('</tr>');
  document.write('<tr align="center" valign="top">');
  document.write('<td colspan="2" class="footerMeta"><br>Forex trading can involve the risk of loss beyond your initial deposit. It is not suitable for all investors<br>and you should make sure you understand the risks involved, seeking independent advice if necessary. <br><br>FOREX.com is a trading name of GAIN Capital - FOREX.com UK Limited and is authorised and regulated by the Financial Services Authority.  FSA No. 190864.<br><br>');
  document.write('<span class="footerMeta">9th Floor, 12 Camomile Street, London EC3A 7PT United Kingdom<br>');
  document.write('Tel: +44 020 7398 5030 or 1.877.FOREXGO (367.3946) | Email: <a href="mailto:metatraderuk@forex.com">metatraderuk@forex.com</a><br>&copy;' + current_year + ' FOREX.com UK<br><br>');
  document.write('</span></td>');
  document.write('</tr>');
  document.write('</table></td>');
  document.write('</tr>');
}

function writeMiniFooter2()
{	
  document.write('<tr align="center" valign="top">');
  document.write('<td colspan="2" class="footerMeta"><br>');
  document.write('<span class="footerMeta">Forex trading can involve the risk of loss beyond your initial deposit. It is not suitable for all investors<br>and you should make sure you understand the risks involved, seeking independent advice if necessary.<br><br>FOREX.com is a trading name of GAIN Capital - FOREX.com UK Limited and is authorised and regulated by the Financial Services Authority.  FSA No. 190864.<br><br>9th Floor, 12 Camomile Street, London EC3A 7PT United Kingdom<br>');
  document.write('Tel: +44 020 7398 5030 or 1.877.FOREXGO (367.3946) | Email: <a href="mailto:metatraderuk@forex.com">metatraderuk@forex.com</a><br>&copy;' + current_year + ' FOREX.com UK<br><br>');
  document.write('</span></td>');
  document.write('</tr>');
  document.write('</table></td>');
  document.write('</tr>');
}

function writeFooter3()
{
	document.write('<table width="906" border="0" cellpadding="0" cellspacing="0" background="../images/home/footer_bg_meta.gif" class="footerMeta">');
  document.write('<tr valign="top">');
  document.write('<td align="left"><p class="footerlinksMeta"><a href="forex_site_map.html">Site Map</a> | <a href="contact_us.html">Contact Us</a> | <a href="index.html">Home</a> | <a href="trade_pricing.html">Trade</a> | <a href="forex_platform_metatrader.html">Platform</a> | <a href="forex_research.html">Research</a> | <a href="about.html">About</a> | <a href="contact_us.html">Support</a></p></td>');
  document.write('<td align="right" class="footerlinksMeta"><a href="javascript:openWin();">Customer Agreement</a> | <a href="privacy_policy.html">Privacy Policy</a> | <a href="risk_warning.html">Risk Warning</a></td>');
  document.write('</tr>');
  document.write('<tr align="center" valign="top">');
  document.write('<td colspan="2"><br>');
  document.write('<span class="footerMeta">Forex trading can involve the risk of loss beyond your initial deposit. It is not suitable for all investors<br>and you should make sure you understand the risks involved, seeking independent advice if necessary. <br><br>FOREX.com is a trading name of GAIN Capital - FOREX.com UK Limited and is authorised and regulated by the Financial Services Authority.  FSA No. 190864.<br><br>9th Floor, 12 Camomile Street, London EC3A 7PT United Kingdom<br>');
  document.write('Tel: +44 020 7398 5030 or 1.877.FOREXGO (367.3946) | Email: <a href="mailto:metatraderuk@forex.com">metatraderuk@forex.com</a><br>');
  document.write('&copy;' + current_year + ' FOREX.com UK');
  document.write('<br></span>');
  document.write('</td>');
  document.write('</tr>');
  document.write('</table>');
}

function writeFooter404()
{
	document.write('<tr>');
  document.write('<td height="1" colspan="3" valign="top"><table width="773"  border="0" cellpadding="0" cellspacing="0" background="http://www.forex.com/images/header/footer_bg.gif" class="footerboxMeta" align="center">');
  document.write('<tr valign="top">');
  document.write('<td align="left"><p class="footerlinksMeta"><a href="http://www.forex.com/metatraderuk/forex_site_map.html">Site Map</a> | <a href="http://www.forex.com/metatraderuk/contact_us.html">Contact Us</a> | <a href="http://www.forex.com/metatraderuk/index.html">Home</a> | <a href="http://www.forex.com/metatraderuk/trade_pricing.html">Trade</a> | <a href="http://www.forex.com/metatraderuk/forex_platform_metatrader.html">Platform</a> | <a href="http://www.forex.com/metatraderuk/forex_research.html">Research</a> | <a href="http://www.forex.com/metatraderuk/about.html">About</a> | <a href="http://www.forex.com/metatraderuk/contact_us.html">Support</a></p></td>');
  document.write('<td align="right" class="footerlinksMeta"><a href="javascript:openWin();">Customer Agreement</a> | <a href="http://www.forex.com/metatraderuk/privacy_policy.html">Privacy Policy</a> | <a href="http://www.forex.com/metatraderuk/risk_warning.html">Risk Warning</a></td>');
  document.write('</tr>');
  document.write('<tr align="center" valign="top">');
  document.write('<td colspan="2" class="footerMeta"><br>');
  document.write('<span class="footerMeta">Forex trading can involve the risk of loss beyond your initial deposit. It is not suitable for all investors<br>and you should make sure you understand the risks involved, seeking independent advice if necessary.<br><br>FOREX.com is a trading name of GAIN Capital - FOREX.com UK Limited and is authorised and regulated by the Financial Services Authority.  FSA No. 190864.<br><br>9th Floor, 12 Camomile Street, London EC3A 7PT United Kingdom<br>');
  document.write('Tel: +44 020 7398 5030 or 1.877.FOREXGO (367.3946) | Email: <a href="mailto:metatraderuk@forex.com">metatraderuk@forex.com</a><br>&copy;' + current_year + ' FOREX.com UK<br><br>');
  document.write('<br><br><br></span></td>');
  document.write('</tr>');
  document.write('</table></td>');
  document.write('</tr>');
}


function openPrivacy() {
window.open("privacy_policy2.html","tour","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=50,top=50,width=530, height=475");
}

function openTerms() {
window.open("terms.html","tour","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=50,top=50,width=530, height=475");
}


function openPrivacyuk() {
window.open("http://www.forex.com/metatraderuk/privacy_policy2.html","tour","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=50,top=50,width=530, height=475");
}

function openTermsuk() {
window.open("http://www.forex.com/metatraderuk/terms.html","tour","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=yes,scrollbars=yes,left=50,top=50,width=530, height=475");
}
function openTour2() {
window.open("flash/mobile_slideshow.html","tour2","status=no,toolbar=no,directories=no,menubar=no,location=no,resizable=no,scrollbars=no,left=50,top=50,width=350, height=300");
}

function visitBanner(num)
{
	switch (num)
	{
		case 1 : pageTracker._trackPageview('/internal/home/tighter-spreads-banner');window.location = 'trade_pricing.html'; break;
		case 2 : pageTracker._trackPageview('/internal/home/hosting-banner');window.location = 'trade_expert_advisor_hosting.html'; break;
	}
}