function frenchURL() {
var surl='' + window.location;
return(".." + surl.substring(surl.indexOf('en/') + 2));
}
function getURL() {
toWrite = '<meta http-equiv="refresh" content="5;  url=..' + frenchURL();
toWrite = toWrite +  '">';
document.write(toWrite);
}
function goBack() {
history.back();
}
function toFrench() {
toWrite = '<a href="' + frenchURL() + '">To French Page</a>';
document.write(toWrite);
}
function replaceURL(str) {
pos = str.indexOf('#');
toWrite = str.substring(0, pos) + frenchURL() + str.substring(pos + 1);
//alert(toWrite);
document.write(toWrite);
}

