<SCRIPT TYPE="text/javascript" LANGUAGE="JavaScript"><!--
var off = false;

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

function mySuspend() {
    if (document.layers && document.layers['myLayer'] != null)
        document.layers['myLayer'].visibility = 'hidden';
    else if (document.all) {
        document.html40.button.disabled=true;
        document.html40.checkbox.disabled=true;
        document.html40.file.disabled=true;
        document.html40.password.disabled=true;
        for (var i=0;i < document.html40.radio.length;i++)
            document.html40.radio[i].disabled=true;
        document.html40.reset.disabled=true;
        document.html40.select.disabled=true;
        document.html40.submit.disabled=true;
        document.html40.text.disabled=true;
        document.html40.textarea.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.html40.button.disabled=false;
        document.html40.checkbox.disabled=false;
        document.html40.file.disabled=false;
        document.html40.password.disabled=false;
        for (var i=0;i < document.html40.radio.length;i++)
            document.html40.radio[i].disabled=false;
        document.html40.reset.disabled=false;
        document.html40.select.disabled=false;
        document.html40.submit.disabled=false;
        document.html40.text.disabled=false;
        document.html40.textarea.disabled=false;
    }
    else
        off=false;
}
//--></SCRIPT>

<ILAYER ID="myLayer">
<FORM NAME="html40" onSubmit="if (off) return false">
<PRE>
Button        <INPUT NAME="button" TYPE="BUTTON" VALUE="Button" onClick="if (off) return false">
Checkbox      <INPUT NAME="checkbox" TYPE="CHECKBOX" onClick="if (off) this.checked=!this.checked">
File          <INPUT NAME="file" TYPE="FILE">
Password      <INPUT NAME="password" TYPE="PASSWORD" onChange="if (off) this.value=document.myCopy.passwordCopy.value">
Radio         <INPUT NAME="radio" TYPE="RADIO" CHECKED onClick="if (off) document.html40.radio[document.myCopy.radioCopy.value].checked=true">
              <INPUT NAME="radio" TYPE="RADIO" onClick="if (off) document.html40.radio[document.myCopy.radioCopy.value].checked=true">
Reset object  <INPUT NAME="reset" TYPE="RESET" onClick="if (off) return false">
Select object <SELECT NAME="select" onChange="if (off) this[document.myCopy.selectCopy.value].selected=true"><OPTION>1<OPTION>2<OPTION>3</SELECT>
Submit object <INPUT NAME="submit" TYPE="SUBMIT" onClick="if (off) return false">
Text          <INPUT NAME="text" TYPE="TEXT" NAME="myText" onChange="if (off) this.value=document.myCopy.textCopy.value">
Textarea      <TEXTAREA NAME="textarea" onChange="if (off) this.value=document.myCopy.textareaCopy.value"></TEXTAREA>
</PRE>
</FORM>
</ILAYER>

<FORM NAME="myCopy">
<INPUT NAME="suspend" TYPE="BUTTON" VALUE="Suspend Form" onClick="mySuspend()">
<INPUT NAME="resume" TYPE="BUTTON" VALUE="Resume Form" onClick="myResume()">
<INPUT TYPE="HIDDEN" NAME="passwordCopy">
<INPUT TYPE="HIDDEN" NAME="radioCopy">
<INPUT TYPE="HIDDEN" NAME="selectCopy">
<INPUT TYPE="HIDDEN" NAME="textCopy">
<INPUT TYPE="HIDDEN" NAME="textareaCopy">
</FORM>