function init() {
    this.form
    showLanguage();
}

function showlanguage () {
    if (document.myform.language.value == "de") {
        showgerman();
    } else if (document.myform.language.value == "es") {
        showspanish();
    }
}

function writeCharacter() {
    this.form.string.value += this.value;
    this.form.string.focus();
}

function showspanish() {
    hidediv('german1');
    hidediv('german2');
    hidediv('german3');
    showdiv('spanish1');
    showdiv('spanish2');
    showdiv('spanish3');
}

function showgerman() {
    hidediv('spanish1');
    hidediv('spanish2');
    hidediv('spanish3');
    showdiv('german1');
    showdiv('german2');
    showdiv('german3');
}

function hidediv(id) {
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'none';
    }

    else {
        if (document.layers) { // Netscape 4
            document.id.display = 'none';
        } else { // IE 4
            document.all.id.style.display = 'none';
        }
    }
}

function showdiv(id) {
    if (document.getElementById) { // DOM3 = IE5, NS6
        document.getElementById(id).style.display = 'inline';
    } else {
        if (document.layers) { // Netscape 4
            document.id.display = 'inline';
        } else { // IE 4
            document.all.id.style.display = 'inline';
        }
    }
}
