function english() {

var newURL;

var gotoURL;

var oldPage;

	  

	newURL = location.href;

	

    // find the start of the page name

         

    r = newURL.search('.ca');

    // add 5 to encompass .net/

    r = r + 4;

    y = newURL.search('.html') + 5;

    // now i know where to begin the replacement.

    

    // get the first part of the new url

    startURL = newURL.substring(r,0);

    gotoURL = newURL.substring(r,y);

    gotoURL = gotoURL.substring(1,gotoURL.length);

    gotoURL = startURL + gotoURL;

    

     

    //alert (gotoURL);

	document.location.href=gotoURL; 



}





function francais() {

var newURL;

var gotoURL;

var oldPage;

	  

	newURL = location.href;

	

    // find the start of the page name

         

    r = newURL.search('ca');

    // count the spots from the "." of the domain to the "/" before the file name

    r = r + 3;

    y = newURL.search('.html') + 5;

    // now i know where to begin the replacement.

    

    // get the first part of the new url

    startURL = newURL.substring(r,0);

    gotoURL = newURL.substring(r,y);

    gotoURL = startURL + 'f' + gotoURL;

    

    // 

    //alert (gotoURL);

    document.location.href=gotoURL;



}
