<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<form name="form1" method="post" action="">
<input name="radiobutton" type="radio" onClick="tt()" value="0" checked>
<input type="radio" name="radiobutton" value="1" onClick="tt()">
<input type="text" name="textfield" style="display:none ">
</form>
<script>
function tt()
{
var rad=form1.radiobutton;
if(rad[0].checked)
form1.textfield.style.display="none";
else
form1.textfield.style.display="block";
}
</script>
</body>
</html>