function altLang() {
    // Language Flipper By Phil Barnes.
    // Requires Files to be rigidly named acording to language.
    // For example index_e.htm = English, corresponding French = index_f.html
    // French and English Files are located in the same directory.
	// Alterations made Andrea Lafleur to incorporate the instance when on an index page --> Assume english
	// And when there is a search string

	// Syntax:  <a href="javascript:altLang()">English</a> or <a href="javascript:altLang()">Francais</a>

    var urlLocation = "" + window.location;
    var languageLocation = urlLocation.indexOf("_e.html");
	var searchStr = window.location.search

	//Is it an index page but url like: "www.cisc.gc.ca/"
    if  (languageLocation < 0) {
        // Could not find '_e.htm', assume a French file to be converted to Englsih.
        languageLocation = urlLocation.indexOf("_f.html");
        if (languageLocation < 0) {
            // Could not find either '_e.html' or '_f.html'
            window.alert('No Corresponding Alternate Language Page Available.\n\nAucune page alternative correspondante de langage disponible.');
            return;
        } else {
            // Change '_f.html' to '_e.html'
            var newExtention = '_e.html';
        }
    } else {
        // Change '_e.html' to '_f.html'
        var newExtention = '_f.html';
    }
    var newLocation = urlLocation.substring(0, languageLocation) + newExtention + searchStr;
    window.location = newLocation;
}