function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}



function replace(string,text,by) {
// Replaces text with by in string
    var strLength = string.length, txtLength = text.length;
    if ((strLength == 0) || (txtLength == 0)) return string;
var i = string.indexOf(text);
    if ((!i) && (text != string.substring(0,txtLength))) return string;
    if (i == -1) return string;
var newstr = string.substring(0,i) + by;
if (i+txtLength < strLength)
        newstr += replace(string.substring(i+txtLength,strLength),text,by);
return newstr;
}


var currentloc = location.pathname;

var frenchfound = currentloc.indexOf("french");
if (frenchfound != -1) { 
var newloc = replace(currentloc,'french','english'); 
var langtext = "English";
}
else {}
var englishfound = currentloc.indexOf("english");
if (englishfound != -1) { 
var newloc = replace(currentloc,'english','french'); 
var langtext = "Francais";
}
else {}

function goto_URL() {
//alert(newloc); 
top.location.href = newloc;
return false;
}
