母版页下的javascript应用|转换为数字

 <script language="javascript" type="text/javascript">
// <!CDATA[

function Reset1_onclick() {
//parseInt(),parseFloat()
}
function kaoqingday(){
    var hhll = document.all.<%=this.TextBox12.ClientID %>;
    var dayprice = document.all.<%=this.TextBox5.ClientID %>;
    var jiangjin = document.all.<%= this.TextBox13.ClientID %>;
    var qita = document.all.<%=this.TextBox6.ClientID %>;
    filtervalue(hhll);
    filtervalue(dayprice);
    filtervalue(jiangjin);
    filtervalue(qita);
    if(parseFloat(hhll.value) != 0 && parseFloat(hhll.value) !="" && parseFloat(dayprice.value) != 0 && parseFloat(dayprice.value) != "")
    {
        document.all.<%=this.TextBox19.ClientID %>.value = parseFloat(hhll.value) * parseFloat(dayprice.value) + parseFloat(jiangjin.value) + parseFloat(qita.value);
    }
    else
    {
        document.all.<%=this.TextBox19.ClientID %>.value = parseFloat(jiangjin.value) + parseFloat(qita.value);
    }
    shifa();
}
function koukuan(){
    var Unemployment = document.all.<%=this.TextBox14.ClientID %>;
    var Pension = document.all.<%=this.TextBox7.ClientID %>;
    var Medical = document.all.<%=this.TextBox15.ClientID %>;
    var Provident = document.all.<%=this.TextBox8.ClientID %>;
    var Education = document.all.<%=this.TextBox16.ClientID %>;
    var IncomeTax = document.all.<%=this.TextBox9.ClientID %>;
    var Heating = document.all.<%=this.TextBox17.ClientID %>;
    var Peoples = document.all.<%=this.TextBox18.ClientID %>;
    var Insurance = document.all.<%=this.TextBox28.ClientID %>;
    filtervalue(Unemployment);
    filtervalue(Pension);
    filtervalue(Medical);
    filtervalue(Provident);
    filtervalue(Education);
    filtervalue(IncomeTax);
    filtervalue(Heating);
    filtervalue(Peoples);
    filtervalue(Insurance);
    document.all.<%=this.TextBox29.ClientID %>.value = parseFloat(Unemployment.value) + parseFloat(Pension.value) + parseFloat(Medical.value) + parseFloat(Provident.value) + parseFloat(Education.value) + parseFloat(IncomeTax.value) + parseFloat(Heating.value) + parseFloat(Peoples.value) + parseFloat(Insurance.value);
    shifa();
}
function shifa(){
    var yinfa = document.all.<%=this.TextBox19.ClientID %>;
    var yinkou = document.all.<%=this.TextBox29.ClientID %>;
    filtervalue(yinfa);
    filtervalue(yinkou);
    document.all.<%=this.TextBox20.ClientID %>.value = parseFloat(yinfa.value) - parseFloat(yinkou.value);
}
function filtervalue(o){
if(!o.value.match(/^[/+/-]?/d*?/.?/d*?$/))
o.value=o.t_value;
else
o.t_value=o.value;
if(o.value.match(/^(?:[/+/-]?/d+(?:/./d+)?)?$/))
o.o_value=o.value
}

// ]]>
</script>

你可能感兴趣的:(母版页下的javascript应用|转换为数字)