/* Astrazeneca.de Javascript - shows bodymap image map */ function fnSwitchpage(the_form){ //Get the selected link URL from the dropdown var link_chosen; link_chosen=the_form.selection.options[the_form.selection.selectedIndex].value; //Redirect to this URL window.location=link_chosen; return false; } function switchPageSelect() { //Put the Redirect forms into an array var form_id=new Array; if (document.getElementById('frm_websites')) { form_id[0]=document.getElementById('frm_websites'); } if (form_id.length > 0) { for (var i = 0; i < form_id.length; i++) { form_id[i].onsubmit = function () { // On submit tell fnSwitchpage function which form to use return fnSwitchpage(this); } } } } var toCall=new Array; toCall[0]=switchPageSelect;