<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>测试</title>
<style type="text/css">
<!--
.STYLE1 {color: #CCCCCC}
-->
</style>
<script>
function f(obj){
var t = obj.value;
if(t=="1"){
var temp = document.getElementById("test");
temp.style.display="block";
}else if(t=="2"){
var temp = document.getElementById("test");
temp.style.display="none";
}
//document.form1.submit();
//alert(t);
}
</script>
</head>
<body>
<form id="form1" name="form1" method="post" action=""">
<p> </p>
<p> </p>
<p>
<label>
<input type="radio" name="radiobutton" value="1" onclick="return f(this);"/>
1
</label>
<label>
<input type="radio" name="radiobutton" value="2" onclick="return f(this);" />
</label>
2</p>
</form>
<div id="test" style="display:none">此处是要显示的内容!</div>
<span class="STYLE1"></span>
</body>
</html>