function additive(f,s,t,n) {
    document.forms['f' + f].elements['t' + t + 'n' + n].value += document.forms['f' + f].elements['s' + s].options[document.forms['f' + f].elements['s' + s].selectedIndex].text + " ";
}

var off = false;

function copyData() {
    document.myCopy.passwordCopy.value = document.f1.password.value;
    for (var i=0;i < document.f1.radio.length;i++)
        if (document.f1.radio[i].checked)
            document.myCopy.radioCopy.value = i;
    document.myCopy.selectCopy.value = document.f1.select.selectedIndex;
    document.myCopy.textCopy.value = document.f1.text.value;
    document.myCopy.textareaCopy.value = document.f1.textarea.value;
}

function mySuspend() {
    if (document.layers && document.layers['myLayer'] != null)
        document.layers['myLayer'].visibility = 'hidden';
    else if (document.all) {
        document.f1.participation.disabled=true;
        document.f1.participation_score.disabled=true;
        document.f1.vocabulary.disabled=true;
        document.f1.vocabulary_score.disabled=true;
        document.f1.pronunciation.disabled=true;
        document.f1.pronunciation_score.disabled=true;
        document.f1.reading.disabled=true;
        document.f1.reading_score.disabled=true;
        document.f1.writing.disabled=true;
        document.f1.writing_score.disabled=true;
        document.f1.behavior.disabled=true;
        document.f1.behavior_score.disabled=true;
    }
    else if (!off) {
        off = !off;
        copyData();
    }
}

function myResume() {
    if (document.layers && document.layers['myLayer'] != null)
        document.layers['myLayer'].visibility = 'visible';
    else if (document.all) {
        document.f1.participation.disabled=false;
        document.f1.participation_score.disabled=false;
        document.f1.vocabulary.disabled=false;
        document.f1.vocabulary_score.disabled=false;
        document.f1.pronunciation.disabled=false;
        document.f1.pronunciation_score.disabled=false;
        document.f1.reading.disabled=false;
        document.f1.reading_score.disabled=false;
        document.f1.writing.disabled=false;
        document.f1.writing_score.disabled=false;
        document.f1.behavior.disabled=false;
        document.f1.behavior_score.disabled=false;
    }
    else
        off=false;
}

