Just using this code to fill in contact info if it's the same to save typing and it works fine in IE but not Firefox... any ideas?
Code:
<script language="javascript" type="text/javascript">
function fill_contact()
{
if (frmContact.chbsame.checked == true)
{
frmContact.vnds_scntct_fnm.value = frmContact.vnds_cntct_fnm.value;
frmContact.vnds_scntct_lnm.value = frmContact.vnds_cntct_lnm.value;
frmContact.vnds_cntct_adr1.value = frmContact.vnds_bill_adr1.value;
frmContact.vnds_cntct_adr2.value = frmContact.vnds_bill_adr2.value;
frmContact.vnds_cntct_city.value = frmContact.vnds_bill_city.value;
frmContact.vnds_cntct_zip.value = frmContact.vnds_bill_zip.value;
frmContact.vnds_cntct_ph.value = frmContact.vnds_phone.value;
frmContact.vnds_cntct_email.value = frmContact.vnds_email.value;
frmContact.vnds_cntct_fax.value = frmContact.vnds_fax.value;
var i = frmContact.vnds_bill_state.selectedIndex;
frmContact.vnds_cntct_state.selectedIndex = i;
var i = frmContact.vnds_country.selectedIndex;
frmContact.vnds_cntct_cntry.selectedIndex = i;
}
else
{
frmContact.vnds_scntct_fnm.value = "";
frmContact.vnds_scntct_lnm.value = "";
frmContact.vnds_cntct_adr1.value = "";
frmContact.vnds_cntct_adr2.value = "";
frmContact.vnds_cntct_city.value = "";
frmContact.vnds_cntct_zip.value = "";
frmContact.vnds_cntct_ph.value = "";
frmContact.vnds_cntct_email.value = "";
frmContact.vnds_cntct_fax.value = "";
frmContact.vnds_cntct_cntry.selectedIndex = 0;
frmContact.vnds_cntct_state.selectedIndex = 0;
}
}
</script>