<!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>
<style type="text/css">
<!--
.visible{
visibility:visible;
}
.hidden{
visibility:hidden;
}
-->
</style>
<script language="javascript">
function displayDiv(id){
var v_div=document.getElementById(id);
v_div.className="visible";
}
function undisplayDiv(id){
var v_div=document.getElementById(id);
v_div.className="hidden";
}
function displayVehicleCodeDiv(id){
var v_planType=document.getElementById('planType').value;
if(v_planType=='C'){
displayDiv(id);
}else{
undisplayDiv(id);
}
}
</script>
</head>
<body>
<table>
<tr>
<td colspan="2"> 保单号:<input type="text"></td>
</tr>
<tr>
<td colspan="2">被保险人:<input type="text"></td>
</tr>
<tr>
<td>
险种大类:<select name="planType" id="planType" onChange="displayVehicleCodeDiv('vehicleCodeDiv')">
<option value="">--请选择--</option>
<option value="A">财产险</option>
<option value="B">意健险</option>
<option value="C">车险</option>
</select>
</td>
<td>
<div id="vehicleCodeDiv" class="hidden">
车牌号:<input type="text">
</div>
</td>
</tr>
</table>
</body>
</html>