così:

codice:
<select name="cmpidcat" size="8" id="cmpidcat" onChange="this.form.modcat.value=this.options[this.selectedIndex].text; this.form.idcatmod.value=this.options[this.selectedIndex].value;">
ciao