<html>
<head>
<script type="text/_javascript_">
function selectText()
{
document.getElementById("textField").focus();
document.getElementById("textField").select();
}
function changeText(elem)
{
var mammal =
elem.options[elem.selectedIndex].value;
document.getElementById('textField').value =
"The " + mammal + " is on the mat";
}
</script>
</head>
<body>
<form>
<input size="40" type="text" id="textField"
value="The cat is on the mat" />
<select id="timerPopup"
>
<option value="cat">cat</option>
<option value="bat">bat</option>
<option value="rat">rat</option>
</select>
</form>
</body>
</html>