fr=document.forms[0];function _select(e,s,f){_sel=s;window.open("/common/select/?e="+e+(f?"&f="+f:""),"select","width=300,height=350,left=100,top=50,resizable=1,scrollbars=1").focus()}function set_input(n,id){var o=fr[_sel].options,l=o.length;for(i=0;i<l;i++)if(o[i].value==id)break;if(i==l)o[i]=new Option(n,id);o[i].selected=true;if(fr[_sel].onchange)fr[_sel].onchange()}