<select onchange="sel(this)">
<option value="0">----</option>
<option value="1">text</option>
<option value="2">textarea</option>
</select>
<INPUT TYPE="text" id="otxt" style="display:none">
<TEXTAREA id="oare" ROWS="30" COLS="30" style="display:none"></TEXTAREA>
<SCRIPT LANGUAGE="JavaScript">
<!--
function $(sId) {return document.getElementById(sId)}
function sel(osel){
selTxt = osel.options[osel.selectedIndex].text;
(selTxt == 'text') && ($('otxt').style.display = 'block') && ($('oare').style.display = 'none');
(selTxt == 'textarea') && ($('oare').style.display = 'block') && ($('otxt').style.display = 'none');
}//-->
</SCRIPT>