1){ echo "alert('setBackground: ID not unique!');"; } if(isset($_REQUEST["wms"])){ $wms = $_REQUEST["wms"]; } else{ $wms = 0; } echo "var mod_setBackground_wms = ".$wms.";"; echo "var mod_setBackground_target = '".$e_target."';"; ?> mb_registerInitFunctions("mod_setBackground_init()"); var mod_setBackground_active = false; function mod_setBackground_init(){ var ind = document.setBackground.mod_setBackground_list.options[0].value; var cnt = 0; var selInd; document.setBackground.mod_setBackground_list.options[document.setBackground.mod_setBackground_list.length - 1] = null; for(var i=0; i0){ wms[ind].gui_wms_visible = 2; document.setBackground.mod_setBackground_list.selectedIndex = selInd; } mod_setBackground_active = ind; } function mod_setBackground_change(obj){ wms[mod_setBackground_active].gui_wms_visible = 0; wms[obj.value].gui_wms_visible = 2; mod_setBackground_active = obj.value; zoom(mod_setBackground_target,true, 1.0); }