function switch_id(selectobj) { var id = selectobj.options[selectobj.selectedIndex].value; javascript:midoPassVar('1019/'+id); }