this is what you are looking for , i guess
<html>
<head>
</head>
<script type="text/javascript">
function showdv(obj,id1,id2)
{
txt=obj.options[obj.selectedIndex].text;
document.getElementById("box").style.display='none';
if(txt.match(id1))
{
document.getElementById("box").style.display='block';
document.getElementById("boxx").value=txt
}
if(txt.match(id2))
{
document.getElementById("box").style.display='block';
document.getElementById("boxx").value=txt
}
}
</script>
<body>
<thead>
<select id="opts" onchange="showdv(this,'one','two');" >
<option value="">select</option>
<option value="one">one</option>
<option value="two">two</option>
</select>
</thead>
<div id="box" style="display:none;">
<input Type="text" id="boxx" maxlength="20" >
</div>
</body>
</html>
hope it helps...