micmac,
this is a JavaScript I used to disable a set of date fields (3 <select>) when a checkbox has been checked.
<script language="JavaScript" type="text/JavaScript">
<!--
function modDate() {
if(document.form1.notanupdate.checked == true) {
document.form1.month.disabled=true;
document.form1.day.disabled=true;
document.form1.year.disabled=true;
} else {
document.form1.month.disabled=false;
document.form1.day.disabled=false;
document.form1.year.disabled=false;
}
}
-->
</script>
So I think you are on the right track... I think that you just need to do something like this if the value is true
document.form_2.mail_suburb.value = document.form_2.comany_suburb.value;
and if the value is false then do...
document.form_2.mail_suburb.value = '';
Let me know if this helps...
PHPdev