Fix ductivity form on homepage
authorJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Tue, 19 Apr 2011 12:56:47 +0000 (12:56 +0000)
committerJean-Michel Nirgal Vourgère <jmv@nirgal.com>
Tue, 19 Apr 2011 12:56:47 +0000 (12:56 +0000)
www_templates/index.html

index 2f6c85a89df2916c6f76bbb1d9c55e400454cba6..fbcd8e3331b5cb52b4193190015ddf6b7a79d9bb 100644 (file)
@@ -19,15 +19,15 @@ Welcome
 
 <h3>External links</h3>
 <script type="text/javascript">
-function ductivityFormHandler(form){
-       var URL = 'http://www.dxinfocentre.com/' + document.form.site.options[document.form.site.selectedIndex].value;
+function ductivityFormHandler(selinput){
+       var URL = 'http://www.dxinfocentre.com/' + selinput.options[selinput.selectedIndex].value;
        window.open(URL, '_blank');
 }
 </script>
 
 <ul>
 <li>Tropospheric Ducting Forecasts <form>
-<select name="site" size="1" onchange="javascript:ductivityFormHandler()">
+<select size="1" onchange="javascript:ductivityFormHandler(this)">
 <option value="">Select region...
 </option><option value="tropo_enp.html">Eastern North Pacific
 </option><option value="tropo_esp.html">Eastern South Pacific