[CODE]
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
.style5
{
font-size: 12px;
color: #0099FF
}
.style8 {font-size: 12px}
.style10 {font-size: 14px; color: #CC0000; }
.style12 {font-size: 12px; color: #CC3333; }
-->
</style>
<script language="javascript">
function Total_Click()
{
try
{
var TolNum=0;
TolNum+=parseInt(document.form1.StatisticsTxt[0].value);
document.form1.Total.value=TolNum.toString();
TolNum+=parseInt(document.form1.HealthTxt.value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.FoodTxt[0].value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.VeterinaryTxt[0].value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.FuneralTxt.value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.LaborTxt.value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.CultureTxt.value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.HealthServiceTxt.value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.MedicalTxt[0].value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.Sewage.value);
document.form1.Total.value=TolNum;
TolNum+=parseInt(document.form1.Water.value);
document.form1.Total.value=TolNum;
}
catch(e)
{
}
}
function Qualifying_Change()
{
document.form1.ID.value=document.form1.Code.value+document.form1.Qualifying.value+document.form1.No.value;
}
function Categories_Enter()
{
if(document.form1.Area_Codes.value=='Q')
document.form1.Categories.value="企业";
else
document.form1.Categories.value="个体";
}
function EnterCode_Blur()
{
var CodeStr=document.form1.InpCode.value;
document.form1.Code.value=CodeStr.charCodeAt(0);
document.form1.Area_Codes.value=CodeStr.charAt(0);
document.form1.Outline.value=CodeStr.substr(0,3);
document.form1.Azimuth.value=CodeStr.charAt(3);
Categories_Enter();
}
function Health_Change(val)
{
document.form1.HealthTxt.value=val;
Total_Click();
}
function Statistics_Change(val)
{
if(val=="0")
{
document.form1.StatisticsTxt[0].value=val;
document.form1.StatisticsTxt[1].value=val;
}
if(val=="20")
{
document.form1.StatisticsTxt[0].value=val;
}
if(val=="10")
{
document.form1.StatisticsTxt[1].value=val;
}
Total_Click();
}
function Food_Change(val)
{
if(val=="0")
{
document.form1.FoodTxt[0].value=val;
document.form1.FoodTxt[1].value=val;
}
if(val=="35")
{
document.form1.FoodTxt[0].value=val;
}
if(val=="15")
{
document.form1.FoodTxt[1].value=val;
}
Total_Click();
}
function Veterinary_Change(val)
{
if(val=="0")
{
document.form1.VeterinaryTxt[0].value=val;
document.form1.VeterinaryTxt[1].value=val;
}
if(val=="50")
{
document.form1.VeterinaryTxt[0].value=val;
}
if(val=="150")
{
document.form1.VeterinaryTxt[1].value=val;
}
Total_Click();
}
function Chk_Click(chk,Txt)
{
if(chk.checked)
Txt.value=chk.value;
else
Txt.value=0;
Total_Click();
}
function IsNum(val)
{
var isNum=false;
try
{
var TNum=eval(val+1);
isNum=true;
}
catch(e)
{
isNum=false;
}
return isNum;
}
function TxtIsEmpty(Txt,Msg)
{
if(Txt.value=="")
{
alert(Msg+"为空");
Txt.focus();
return false;
}
return true;
}
function TxtIsNum(Txt,Msg)
{
if(!IsNum(Txt.value))
{
alert(Msg+"非数字");
Txt.focus();
return false;
}
return true;
}
function ChkA_Click(chk,Txt,iTxt,Msg)
{
if(!TxtIsEmpty(Txt,Msg))
return false;
if(!TxtIsNum(Txt,Msg))
return false;
if(chk.checked)
{
iTxt.value=eval(Txt.value+"*"+chk.value);
if(Msg=="从业人数")
document.form1.MedicalTxt[1].value=eval(Txt.value+"*"+5);
}
Total_Click();
}
</script>
</head>
<body>
<form name="form1" method="post">
<table width="817" border="0" cellpadding="0" cellspacing="0" bgcolor="#CED7F8">
<!--DWLayoutTable-->
<tr>
<td width="11" height="12"></td>
<td width="798"></td>
<td width="8"></td>
</tr>
<tr>
<td height="320"></td>
<td valign="top">
<table width="100%" bordercolor="#CED7F8" border="1" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<!--DWLayoutTable-->
<tr>
<td height="60" colspan="3" valign="buttom" class="style5"><br><br><div align="left">编号:
<input type="text" style="width:85px; " name="ID">
序号:
<input type="text" style="width:50px; " name="No">
代码:
<input type="text" style="width:25px; " name="Code">
排位:
<input type="text" style="width:30px; " onChange="Qualifying_Change();" name="Qualifying">
区码:
<input type="text" style="width:15px; " name="Area_Codes">
分区:
<input type="text" style="width:30px; " name="Outline">
方位:
<input type="text" style="width:15px; " name="Azimuth">
拼音缩写:
<input type="text" style="width:50px; " name="initials">
类别:
<input type="text" style="width:33px; " name="Categories">
</div></td>
</tr>
<tr>
<td valign="top">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="7" height="8"></td>
<td width="345"></td>
<td width="32"></td>
<td width="400"></td>
</tr>
<!--DWLayoutTable-->
<tr>
<td height="238"></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="333" height="12"></td>
<td width="19"></td>
</tr>
<tr>
<td height="17" valign="top"><span class="style8"> 输入编码:
<input type="text" style="width:70px;" maxlength="4" onBlur="EnterCode_Blur();" name="InpCode">
</span></td>
<td valign="center"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="16" valign="top"><span class="style8"> 字号名称:
<input type="text" name="Name">
</span></td>
<td valign="top"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="2"></td>
<td></td>
</tr>
<tr>
<td height="1"></td>
<td rowspan="2" valign="top"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="17" valign="top"><span class="style8"> 业主姓名:
<input type="text" style="width:120px; " name="Owners_Name">
</span></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="18" valign="top"><span class="style8"> 联系电话:
<input type="text" style="width:95px; " name="Phone">
</span></td>
<td valign="top"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="17" valign="top"><span class="style8"> 从业人数:
<input name="Number_of" type="text" style="width:39px; " value="0">
</span></td>
<td valign="top"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="17" valign="top"><span class="style8"> 经营面积:
<input name="Area" type="text" style="width:39px; " value="0">
</span></td>
<td valign="top"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="21" valign="top"><span class="style8"> 所属行业:
<select style="width:70px;" name="Industry">
</select>
</span></td>
<td valign="top"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="21" valign="top"><span class="style8"> 减免证件:
<select style="width:100px;" name="Relief">
</select>
</span></td>
<td valign="top"><div align="center"><span class="style10">*</span></div></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="21" valign="center"><span class="style8"> 现定费:
<input type="radio" name="Fixed" value="Yes">
暂不定:
<input type="radio" name="Fixed" value="No">
</span></td>
<td></td>
</tr>
<tr>
<td height="3"></td>
<td></td>
</tr>
<tr>
<td height="20" valign="top"><span class="style8"> 截止日期:
<input type="text" style="width:95px; " name="EndDate">
</span></td>
<td></td>
</tr>
</table></td>
<td valign="center" class="style10">
<div align="left">带<br>
[*]<br>
号的<br>
必<br>
填!
</div> </p></td>
<td valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="132" height="21" valign="center"><div align="right"><span class="style8">统计证:
</span></div></td>
<td colspan="2" valign="top">
<select name="Statistics" onChange="Statistics_Change(this.options[this.selectedIndex].value);">
<option value="20">新办</option>
<option value="10">年检</option>
<option value="0" >不选择</option>
</select></td>
<td width="55"> </td>
<td width="15"> </td>
<td colspan="2" valign="top"><input name="StatisticsTxt" type="text" style="width:30px; " value="0">
<input name="StatisticsTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="21" valign="center"><div align="right"><span class="style8">卫生许可证:</span></div></td>
<td colspan="2" valign="top"><select name="Health" onChange="Health_Change(this.options[this.selectedIndex].value);">
<option value="35">新办</option>
<option value="10">年检</option>
<option value="0">不选择</option>
</select></td>
<td> </td>
<td> </td>
<td colspan="2" valign="top"><input name="HealthTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="21" valign="center"><div align="right"><span class="style8">食品卫生合格证:</span></div></td>
<td colspan="2" valign="top"><select name="Food" onChange="Food_Change(this.options[this.selectedIndex].value);">
<option value="35">新办</option>
<option value="15">年检</option>
<option value="0">不选择</option>
</select></td>
<td> </td>
<td> </td>
<td colspan="2" valign="top"><input name="FoodTxt" type="text" style="width:30px; " value="0">
<input name="FoodTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="21" valign="center"><div align="right"><span class="style8">兽医证:</span></div></td>
<td colspan="3" valign="top"><select name="Veterinary" onChange="Veterinary_Change(this.options[this.selectedIndex].value);">
<option value="0">不选择</option>
<option value="50">肉类卫生合格证</option>
<option value="150">动物防疫合格证</option>
</select></td>
<td> </td>
<td colspan="2" valign="top"><input name="VeterinaryTxt" type="text" style="width:30px; " value="0">
<input name="VeterinaryTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="17" valign="center"><div align="right"><span class="style8">殡葬市场管理费:</span></div></td>
<td width="25" valign="top"><input type="checkbox" name="Funeral" onClick="Chk_Click(this,document.form1.FuneralTxt);" value="600"></td>
<td width="38"> </td>
<td> </td>
<td> </td>
<td colspan="2" valign="top"><input name="FuneralTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="16" valign="top"><div align="right"><span class="style8">劳动用工年检费:</span></div></td>
<td valign="top"><input type="checkbox" name="Labor" onClick="Chk_Click(this,document.form1.LaborTxt);" value="110"></td>
<td> </td>
<td> </td>
<td> </td>
<td colspan="2" valign="top"><input name="LaborTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="16" valign="top"><div align="right"><span class="style8">文化经营许可证:</span></div></td>
<td valign="top"><input type="checkbox" onClick="Chk_Click(this,document.form1.CultureTxt);" name="Culture" value="20"></td>
<td> </td>
<td> </td>
<td> </td>
<td colspan="2" valign="top"><input name="CultureTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="16" valign="top"><div align="right" class="style8">卫生有偿服务费:</div></td>
<td valign="top"><input type="checkbox" onClick="ChkA_Click(this,document.form1.Area,document.form1.HealthServiceTxt,'经营面积');" name="HealthService" value="0.5"></td>
<td> </td>
<td> </td>
<td> </td>
<td colspan="2" valign="top"><input name="HealthServiceTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="16" valign="top"><div align="right"><span class="style8">体检费:</span></div></td>
<td valign="top"><input type="checkbox" name="Medical" onClick="ChkA_Click(this,document.form1.Number_of,document.form1.MedicalTxt[0],'从业人数');" value="50"></td>
<td> </td>
<td> </td>
<td> </td>
<td colspan="2" valign="top"><input name="MedicalTxt" type="text" style="width:30px; " value="0">
<input name="MedicalTxt" type="text" style="width:30px; " value="0"></td>
</tr>
<tr>
<td height="17" valign="top"><div align="right" class="style8">排污费:</div></td>
<td colspan="2" valign="top"><input name="Sewage" type="text" onChange="Total_Click();" style="width:50px; " value="0"></td>
<td> </td>
<td> </td>
<td width="72" valign="top"><div align="center"><span class="style12">合计</span></div></td>
<td width="63"> </td>
</tr>
<tr>
<td height="18" valign="top"><div align="right" class="style8">水资源费:</div></td>
<td colspan="2" valign="top"><input name="Water" type="text" onChange="Total_Click();" style="width:50px; " value="0"></td>
<td> </td>
<td> </td>
<td valign="top"><div align="center">
<input name="Total" type="text" onClick="Total_Click();" style="width:50px; ">
</div></td>
<td> </td>
</tr>
<tr>
<td height="16"> </td>
<td colspan="4" valign="top"><div align="center" class="style8">[返回]</div></td>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="27"> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="33"></td>
<td colspan="3" valign="center"><div align="center">
<input type="submit" name="Submit" value="提交">
<input name="Reset" type="reset" value="重置">
<input type="button" name="Close" value="关闭">
</div></td>
</tr>
<tr>
<td height="5"></td>
<td></td>
<td></td>
<td></td>
</tr>
</table></td>
<td></td>
</tr>
</table></td>
<td></td>
</tr>
<tr>
<td height="25"></td>
<td> </td>
<td></td>
</tr>
</table>
</form>
</body>
</html>[/CODE]
楼主要的代码
除了拼音缩写和排位没有实现。