|
15 | 15 | document.form1.subm_address1.value = document.form1.hold_address1.value; |
16 | 16 | document.form1.subm_address2.value = document.form1.hold_address2.value; |
17 | 17 | } else { |
18 | | - document.form1.subm_name.value = ""; |
19 | | - document.form1.subm_title.value = ""; |
20 | | - document.form1.subm_department.value = ""; |
21 | | - document.form1.subm_telephone.value = ""; |
22 | | - document.form1.subm_fax.value = ""; |
23 | | - document.form1.subm_email.value = ""; |
24 | | - document.form1.subm_address1.value = ""; |
25 | | - document.form1.subm_address2.value = ""; |
| 18 | + document.form1.subm_name.value = document.form1.subm_name.defaultValue; |
| 19 | + document.form1.subm_title.value = document.form1.subm_title.defaultValue; |
| 20 | + document.form1.subm_department.value = document.form1.subm_department.defaultValue; |
| 21 | + document.form1.subm_telephone.value = document.form1.subm_telephone.defaultValue; |
| 22 | + document.form1.subm_fax.value = document.form1.subm_fax.defaultValue; |
| 23 | + document.form1.subm_email.value = document.form1.subm_email.defaultValue; |
| 24 | + document.form1.subm_address1.value = document.form1.subm_address1.defaultValue; |
| 25 | + document.form1.subm_address2.value = document.form1.subm_address2.defaultValue; |
26 | 26 | } |
27 | 27 | } else if (src == 'ietf') { |
28 | 28 | checked = document.form1.ietf_contact_is_submitter.checked; |
|
38 | 38 | document.form1.subm_address1.value = document.form1.ietf_address1.value; |
39 | 39 | document.form1.subm_address2.value = document.form1.ietf_address2.value; |
40 | 40 | } else { |
41 | | - document.form1.subm_name.value = ""; |
42 | | - document.form1.subm_title.value = ""; |
43 | | - document.form1.subm_department.value = ""; |
44 | | - document.form1.subm_telephone.value = ""; |
45 | | - document.form1.subm_fax.value = ""; |
46 | | - document.form1.subm_email.value = ""; |
47 | | - document.form1.subm_address1.value = ""; |
48 | | - document.form1.subm_address2.value = ""; |
| 41 | + document.form1.subm_name.value = document.form1.subm_name.defaultValue; |
| 42 | + document.form1.subm_title.value = document.form1.subm_title.defaultValue; |
| 43 | + document.form1.subm_department.value = document.form1.subm_department.defaultValue; |
| 44 | + document.form1.subm_telephone.value = document.form1.subm_telephone.defaultValue; |
| 45 | + document.form1.subm_fax.value = document.form1.subm_fax.defaultValue; |
| 46 | + document.form1.subm_email.value = document.form1.subm_email.defaultValue; |
| 47 | + document.form1.subm_address1.value = document.form1.subm_address1.defaultValue; |
| 48 | + document.form1.subm_address2.value = document.form1.subm_address2.defaultValue; |
49 | 49 | } |
50 | 50 | } |
51 | 51 | document.form1.subm_name.disabled = checked; |
|
0 commit comments