| 709 | | if (nav) |
| 710 | | { |
| 711 | | window.captureEvents(Event.KEYDOWN); |
| 712 | | window.onkeydown = NetscapeEventHandler_KeyDown; |
| 713 | | } |
| 714 | | else |
| 715 | | { |
| 716 | | document.onkeydown = MicrosoftEventHandler_KeyDown; |
| 717 | | } |
| 718 | | |
| 719 | | function NetscapeEventHandler_KeyDown(e) |
| 720 | | { |
| 721 | | if (e.which == 13) document.sendform.send.click(); |
| 722 | | return true; |
| 723 | | } |
| 724 | | |
| 725 | | function MicrosoftEventHandler_KeyDown() |
| 726 | | { |
| 727 | | if (event.keyCode == 13) document.sendform.send.click(); |
| | 708 | document.onkeydown = EventHandler_Keydown; |
| | 709 | |
| | 710 | function EventHandler_Keydown(e) |
| | 711 | { |
| | 712 | if (typeof(e) == "undefined") |
| | 713 | e = event; |
| | 714 | if (e.which == 13) |
| | 715 | { |
| | 716 | document.sendform.send.click(); |
| | 717 | } |
| | 718 | else |
| | 719 | { |
| | 720 | if (event.keyCode == 13) |
| | 721 | { |
| | 722 | document.sendform.send.click(); |
| | 723 | } |
| | 724 | } |