<body onload="testFun();">
下面是我自己改的一段代码:
<table width="100%"  border="0" cellpadding="0" cellspacing="0" background="../images/loginbg1.gif">
  <tr>
    <td> 类型:   
  <select name="selectObj" onchange="testFun();">
  <option value="1" >个 人</option>
  <option value="2" >企 业</option>
    </select>
</td></tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="3" align="center" id=tb1 style='DISPLAY:none'>
  <tr>
    <td bgcolor="#CCCCCC">&nbsp;</td>
  </tr>
</table>
<table width="80%" border="0" cellspacing="0" cellpadding="3" align="center" id=tb2 style='DISPLAY:none'>
  <tr>
    <td bgcolor="#999999">&nbsp;</td>
  </tr>
</table><script language=javascript>
function testFun()
{
var theSelectValue=document.all.selectObj.value;
document.all('tb'+theSelectValue).style.display='';
document.all('tb'+(3-theSelectValue)).style.display='none';}</script>