var nowLanguage = "german"; function changeLang(param) { myString = new String(this.document.location); if((param=="german")&&(param!=nowLanguage)){ s = myString.replace(".eng.html",".html"); this.document.location = s; } else if((param=="english")&&(param!=nowLanguage)) { s = myString.replace(".html",".eng.html"); this.document.location = s; } }