Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/TwoColumnLetter.php |
— | — | @@ -143,13 +143,11 @@ |
144 | 144 | $form .= Xml::closeElement( 'form' ); // close form 'payment' |
145 | 145 | $form .= <<<EOT |
146 | 146 | <script type="text/javascript"> |
147 | | -var fname = document.getElementById('fname'); |
148 | | -var lname = document.getElementById('lname'); |
149 | | -if (fname.value == '') { |
| 147 | +if (document.getElementById('fname').value == '') { |
150 | 148 | fname.style.color = '#999999'; |
151 | 149 | fname.value = 'First'; |
152 | 150 | } |
153 | | -if (lname.value == '') { |
| 151 | +if (document.getElementById('lname').value == '') { |
154 | 152 | lname.style.color = '#999999'; |
155 | 153 | lname.value = 'Last'; |
156 | 154 | } |