function detectGeo(addr) {
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var redir = qs.get('redir');

    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }
    if (GetCookie('redir') != '0') {
        if (GetCookie('wsEntity') == "NA") {
            return;
        }
        if (GetCookie('wsEntity') == "EU") {
            document.location = 'http://www.forex.com/uk/' + addr;
        }
        if (GetCookie('wsEntity') == "AU") {
            document.location = 'http://www.forex.com/au/' + addr;
        }
        if (GetCookie('wsEntity') == "JP") {
            document.location = 'http://jp.forex.com/jp/';
        }
        switch (geo) {
            case 'US': setwsEntityHigh("NA"); setEntityLang("en"); break;
            case 'AU': setwsEntityHigh("AU"); setEntityLang("en"); document.location = 'http://www.forex.com/au/' + addr; break;
            case 'NZ': setwsEntityHigh("AU"); setEntityLang("en"); document.location = 'http://www.forex.com/au/' + addr; break;            
            case 'HK': document.location = 'http://www.forex.com/hk'; break;
            case 'JP': setwsEntityHigh("JP"); setEntityLang("ja"); document.location = 'http://jp.forex.com/'; break;
            case 'ZA': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'CA': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'GB': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'MY': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'VN': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'BN': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'KH': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'ID': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'PH': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'TH': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'CK': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'FJ': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'LA': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'NR': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'PF': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;                
            case 'TO': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'VU': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'KR': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'SG': setwsEntityHigh("EU"); setEntityLang("en"); document.location = 'http://www.forex.com/uk/' + addr; break;
            case 'TW': setwsEntityHigh("EU"); setEntityLang("zh"); document.location = 'http://www.forex.com/uk/cns/' + addr; break;
            case 'BH': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'EG': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'JO': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'KW': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'LB': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'OM': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'QA': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'SA': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'AE': setwsEntityHigh("EU"); setEntityLang("ar"); document.location = 'http://www.forex.com/uk/ar/' + addr; break;
            case 'CN': setwsEntityHigh("EU"); setEntityLang("zh"); document.location = 'http://www.forex.com/uk/cns/' + addr; break;
            case 'AM': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'AZ': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'BY': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'KZ': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'KG': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'LV': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'LT': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'MD': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'RU': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'TJ': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'UA': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'UZ': setwsEntityHigh("EU"); setEntityLang("ru"); document.location = 'http://www.forex.com/uk/ru/' + addr; break;
            case 'DE': setwsEntityHigh("EU"); setEntityLang("de"); document.location = 'http://www.forex.com/de/' + addr; break;
            case 'AT': setwsEntityHigh("EU"); setEntityLang("de"); document.location = 'http://www.forex.com/de/' + addr; break;
        }
    }
}

function detectMeta() {    
    var qs = new Querystring();
    var redir = qs.get('redir');

    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }
    if (GetCookie('redir') != '0') {
        if ((GetCookie('wsEntity') == "NA") && (GetCookie('wsEntityPlatform') == "META")) {
            document.location = 'http://www.forex.com/metatrader/';
        }        
        if ((GetCookie('wsEntity') == "EU") && (GetCookie('wsEntityPlatform') == "META")) {
            document.location = 'http://www.forex.com/metatraderuk/';
        }
        if ((GetCookie('wsEntity') == "AU") && (GetCookie('wsEntityPlatform') == "META")) {
            document.location = 'http://www.forex.com/metatraderau/';
        }     
    }
}

function detectGeoDemo(addr) {
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var version = (qs.get("v") == null) ? "" : "?v=" + qs.get("v");
    if (GetCookie('wsEntity') == "NA") {return;}
    if (GetCookie('wsEntity') == "EU") {document.location = 'http://www.forex.com/uk/' + addr + version;}
    if (GetCookie('wsEntity') == "JP") { document.location = 'http://jp.forex.com/jp/services/forextrader_open_demo.shtml' }
    switch (true) {
        case /AL|AD|AG|AN|AR|AM|AW|AU|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NZ|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(geo):
            document.location = 'http://www.forex.com/uk/' + addr + version;
        break;
    }
}

function grabGeo(){
    var geo = GetCookie('geo');
    if (geo == null){
        document.write('<s'+'cript type="text/javascript" src="https://secure.efxnow.com/zipproxy/keyfield.asp"></s'+'cript>');
    }
}

function assignGeoDemo(addr)
{ 
	var geo = GetCookie('geo');
	
	if (typeof(cc) != "undefined")
	{
		if ((cc != '') && (geo == null))
		{
		    var rURL = getRootDomain();
			SetCookie('geo', cc, exp, "/", rURL);
		}
	}
	detectGeoDemo(addr);
}

function assignGeo(addr) {
    var geo = GetCookie('geo');

    if (typeof (cc) != "undefined") {
        if ((cc != '') && (geo == null)) {
            var rURL = getRootDomain();
            SetCookie('geo', cc, exp, "/", rURL);
        }
    }
    detectGeo(addr);
}

function assignGeoDemoBeta() {
    var geo = GetCookie('geo');
    if (typeof (cc) != "undefined") {
        if ((cc != '') && (geo == null)) {
            var rURL = getRootDomain();
            SetCookie('geo', cc, exp, "/", rURL);
        }
    }
    detectGeoDemoBeta();
}

function assignGeoDemoUK() {
    var geo = GetCookie('geo');
    if (typeof (cc) != "undefined") {
        if ((cc != '') && (geo == null)) {
            var rURL = getRootDomain();
            SetCookie('geo', cc, exp, "/", rURL);
        }
    }
    detectGeoDemoUK();
}

function assignGeoDemoAU() {
    var geo = GetCookie('geo');
    if (typeof (cc) != "undefined") {
        if ((cc != '') && (geo == null)) {
            var rURL = getRootDomain();
            SetCookie('geo', cc, exp, "/", rURL);
        }
    }
    detectGeoDemoAU();
}

function assignGeoDemoUSMeta() {
    var geo = GetCookie('geo');
    if (typeof (cc) != "undefined") {
        if ((cc != '') && (geo == null)) {
            var rURL = getRootDomain();
            SetCookie('geo', cc, exp, "/", rURL);
        }
    }
    detectGeoDemoUSMeta();
}

function assignGeoDemoUKMeta() {
    var geo = GetCookie('geo');
    if (typeof (cc) != "undefined") {
        if ((cc != '') && (geo == null)) {
            var rURL = getRootDomain();
            SetCookie('geo', cc, exp, "/", rURL);
        }
    }
    detectGeoDemoUKMeta();
}

function assignGeoDemoAUMeta() {
    var geo = GetCookie('geo');
    if (typeof (cc) != "undefined") {
        if ((cc != '') && (geo == null)) {
            var rURL = getRootDomain();
            SetCookie('geo', cc, exp, "/", rURL);
        }
    }
    detectGeoDemoAUMeta();
}

function detectGeoDemoBeta(){
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var redir = qs.get('redir');
    var pathString = window.location.pathname;
    var pageString = pathString.substring(pathString.lastIndexOf('/') + 1) + location.search;

    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }

    if (GetCookie('redir') != '0') {
        if (GetCookie('wsEntity') == "NA") {
            return;
        }
        if (GetCookie('wsEntity') == "EU") {
            document.location = "http://www.forex.com/uk/" + pageString;
        }
        if (GetCookie('wsEntity') == "AU") {
            document.location = "http://www.forex.com/au/" + pageString;
        }
        if (GetCookie('wsEntity') == "JP") {
            document.location = 'http://jp.forex.com/jp/services/forextrader_open_demo.shtml'
        }
        switch (true) {
            case /AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(geo):
                document.location = 'http://www.forex.com/uk/' + pageString;
                break;
            case /AU|NZ/.test(geo):
                document.location = 'http://www.forex.com/au/' + pageString;
                break;
        }
   }
}

function detectGeoDemoUK(){
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var redir = qs.get('redir');
    var pathString = window.location.pathname;
    var pageString = pathString.substring(pathString.lastIndexOf('/') + 1) + location.search;
    
    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }
    
    if (GetCookie('redir') != '0') {
       if (GetCookie('wsEntity') == "EU") {
        return;
       }
       if (GetCookie('wsEntity') == "NA") {
        document.location = "http://www.forex.com/" + pageString;
       }
       if (GetCookie('wsEntity') == "AU") {
        document.location = "http://www.forex.com/au/" + pageString;
       }
       if (GetCookie('wsEntity') == "JP") {
        document.location = 'http://jp.forex.com/jp/services/forextrader_open_demo.shtml'
       }
       switch (true) {
        case /HK|KP|US/.test(geo):
            document.location = 'http://www.forex.com/' + pageString;
            break;
        case /AU|NZ/.test(geo):
            document.location = 'http://www.forex.com/au/' + pageString;
            break;    
       }    
    }
}

function detectGeoDemoAU(){
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var redir = qs.get('redir');
    var pathString = window.location.pathname;
    var pageString = pathString.substring(pathString.lastIndexOf('/') + 1) + location.search;
    
    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }
    
    if (GetCookie('redir') != '0') {
       if (GetCookie('wsEntity') == "AU") {
        return;
       }
       if (GetCookie('wsEntity') == "NA") {
        document.location = "http://www.forex.com/" + pageString;
       }
       if (GetCookie('wsEntity') == "EU") {
        document.location = "http://www.forex.com/uk/" + pageString;
       }
       if (GetCookie('wsEntity') == "JP") {
        document.location = 'http://jp.forex.com/jp/services/forextrader_open_demo.shtml'
       }
       switch (true) {
        case /HK|KP|US/.test(geo):
            document.location = 'http://www.forex.com/' + pageString;
            break;
        case /AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(geo):
            document.location = 'http://www.forex.com/uk/' + pageString;
            break;    
       }    
    }
}

function detectGeoDemoUSMeta(){
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var redir = qs.get('redir');
    var pathString = window.location.pathname;
    var pageString = pathString.substring(pathString.lastIndexOf('/') + 1) + location.search;

    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }

    if (GetCookie('redir') != '0') {
        if (GetCookie('wsEntity') == "NA") {
            return;
        }
        if (GetCookie('wsEntity') == "EU") {
            document.location = "http://www.forex.com/metatraderuk/" + pageString;
        }
        if (GetCookie('wsEntity') == "AU") {
            document.location = "http://www.forex.com/metatraderau/" + pageString;
        }
        if (GetCookie('wsEntity') == "JP") {
            document.location = 'http://jp.forex.com/jp/metatrader/services/demo_account.shtml'
        }
        switch (true) {
            case /AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(geo):
                document.location = 'http://www.forex.com/metatraderuk/' + pageString;
                break;
            case /AU|NZ/.test(geo):
                document.location = 'http://www.forex.com/metatraderau/' + pageString;
                break;
        }
    }
}

function detectGeoDemoUKMeta(){
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var redir = qs.get('redir');
    var pathString = window.location.pathname;
    var pageString = pathString.substring(pathString.lastIndexOf('/') + 1) + location.search;
    
    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }
    
    if (GetCookie('redir') != '0') {
       if (GetCookie('wsEntity') == "EU") {
        return;
       }
       if (GetCookie('wsEntity') == "NA") {
        document.location = "http://www.forex.com/metatrader/" + pageString;
       }
       if (GetCookie('wsEntity') == "AU") {
        document.location = "http://www.forex.com/metatraderau/" + pageString;
       }
       if (GetCookie('wsEntity') == "JP") {
        document.location = 'http://jp.forex.com/jp/metatrader/services/demo_account.shtml'
       }
       switch (true) {
        case /HK|KP|US/.test(geo):
            document.location = 'http://www.forex.com/metatrader/' + pageString;
            break;
        case /AU|NZ/.test(geo):
            document.location = 'http://www.forex.com/metatraderau/' + pageString;
            break;    
       }    
    }
}

function detectGeoDemoAUMeta(){
    var geo = GetCookie('geo');
    var qs = new Querystring();
    var redir = qs.get('redir');
    var pathString = window.location.pathname;
    var pageString = pathString.substring(pathString.lastIndexOf('/') + 1) + location.search;
    
    if (redir == '0') {
        SetCookie('redir', '0', null, '/', rURL);
    }
    
    if (GetCookie('redir') != '0') {
       if (GetCookie('wsEntity') == "AU") {
        return;
       }
       if (GetCookie('wsEntity') == "NA") {
        document.location = "http://www.forex.com/metatrader/" + pageString;
       }
       if (GetCookie('wsEntity') == "EU") {
        document.location = "http://www.forex.com/metatraderuk/" + pageString;
       }
       if (GetCookie('wsEntity') == "JP") {
        document.location = 'http://jp.forex.com/jp/metatrader/services/demo_account.shtml'
       }
       switch (true) {
        case /HK|KP|US/.test(geo):
            document.location = 'http://www.forex.com/metatrader/' + pageString;
            break;
        case /AL|AD|AG|AN|AR|AM|AW|AT|AZ|BS|BD|BB|BE|BZ|BJ|BM|BT|BO|BA|BW|BR|VG|BN|BG|BF|KH|CM|CA|CV|KY|CF|TD|CL|CO|CK|CR|HR|CY|CZ|DK|DJ|DM|DO|TL|EC|SV|GQ|EE|ET|FO|FJ|FI|FR|GF|GB|GA|GM|GE|DE|GH|GI|GR|GL|GD|GP|GT|GW|GY|HT|HN|HU|IS|IN|ID|IE|IL|IT|JM|KZ|KE|KG|KR|LA|LV|LS|LI|LT|LU|MO|MK|MG|MW|MY|MV|ML|MT|MQ|MR|MU|MX|MD|MC|MN|ME|MZ|MM|NA|NR|NP|NL|NC|NI|NE|NG|NO|PK|PA|PG|PY|PE|PH|PL|PT|ZA|RE|RO|RU|RW|WS|SM|SN|RS|SC|SL|SK|SI|SB|SO|ZA|ES|LK|KN|LC|PM|VC|SR|SZ|SE|SG|CH|TJ|TA|TZ|TH|TG|TO|TT|TN|TR|TW|UG|UA|UY|UZ|VU|VA|VE|VN|ZM|ZW/.test(geo):
            document.location = 'http://www.forex.com/metatraderuk/' + pageString;
            break;    
       }    
    }
}
