User:Toningputok

COMP04  var WA,SCR,LCR,TCL,NLEVEL,HEI; var i=0,mod=1,ten=1;

function ActRise{ document.getElementById("OD").innerHTML=" " document.getElementById("ERL").innerHTML=" "; NLEVEL = parseInt(document.frm_horizontal.NLEVEL.value); for (i=0;iGround Level<\/option>"); else if (mod==1&&i!=11) document.getElementById("ERL").innerHTML=(document.getElementById("ERL").innerHTML+""+ten+mod+"st Level<\/option>"); else if (mod==2&&i!=12) document.getElementById("ERL").innerHTML=(document.getElementById("ERL").innerHTML+""+ten+mod+"nd Level<\/option>"); else if (mod==3&&i!=13) document.getElementById("ERL").innerHTML=(document.getElementById("ERL").innerHTML+""+ten+mod+"rd Level<\/option>"); else document.getElementById("ERL").innerHTML=(document.getElementById("ERL").innerHTML+""+i+"th Level<\/option>"); }	var SC = document.getElementById("SC").options[document.getElementById("SC").selectedIndex].value; var Pair =document.getElementById("Pair").options[document.getElementById("Pair").selectedIndex].value; if (SC == "CMR" && Pair=="4") document.getElementById("OD").value=".20"; else if (SC == "CMR" && Pair=="25") document.getElementById("OD").value=".50"; else if (SC == "CMP" && Pair=="4") document.getElementById("OD").value=".19"; else if (SC == "CMP" && Pair=="25") document.getElementById("OD").value=".46"; } function Horizontal{ WA = parseInt(document.frm_horizontal.WA.value); SCR = parseInt(document.frm_horizontal.SCR.value); LCR = parseInt(document.frm_horizontal.LCR.value); if (SCR<25) SCR=25; if (SCR>90) SCR=90; if (LCR<25) LCR=25; if (LCR>90) LCR=90; document.getElementById("WA_hz").innerHTML=WA; document.getElementById("SCR_hz").innerHTML=SCR+" m."; document.getElementById("LCR_hz").innerHTML=LCR+" m."; document.getElementById("AL_hz").innerHTML=((SCR+LCR)/2)+" m."; document.getElementById("Slk_hz").innerHTML=(((SCR+LCR)/2)*.10)+ " m."; TCL=((SCR+LCR)/2)+(((SCR+LCR)/2)*.1)+4.5+6; document.getElementById("TCL_hz").innerHTML=TCL+" m."; document.getElementById("CR_hz").innerHTML=((305/TCL).toFixed(3))+" m."; document.getElementById("NB_hz").innerHTML=Math.ceil(WA/(305/TCL)); } function rise{ document.getElementById("floor").innerHTML=" "; var ER = parseInt(document.getElementById("ERL").options[document.getElementById("ERL").selectedIndex].value); document.getElementById("try").innerHTML=document.getElementById("ERL").options[document.getElementById("ERL").selectedIndex].innerHTML; document.getElementById("Hei").innerHTML= parseInt(document.frm_horizontal.HEI.value); var HLD_ER = ER; var HLD_i=i; for (i=0;ER>0;ER--){ document.getElementById("floor").innerHTML=document.getElementById("floor").innerHTML+" "+document.getElementById("ERL").options[document.getElementById("ERL").selectedIndex].innerHTML+" - Level "+(i)+" = <\/td>  m.<\/td> <\/td> <\/td><\/tr>"; HLD_i=i+1; i++; }		ER=HLD_ER; for (i=1;ER<(parseInt(document.frm_horizontal.NLEVEL.value)-1);ER++){ document.getElementById("floor").innerHTML=document.getElementById("floor").innerHTML+" "+document.getElementById("ERL").options[document.getElementById("ERL").selectedIndex].innerHTML+" - Level "+(ER+1)+" = <\/td>  m.<\/td> <\/td> <\/td><\/tr>"; HLD_i++; i++; }	document.getElementById("floor").innerHTML=document.getElementById("floor").innerHTML+""; }

function gen{ var rise_go = parseInt(document.frm_horizontal.NLEVEL.value); var PTU = parseInt(document.getElementById("PTU").value); var Rise_WA; for (i=0;i<=(rise_go);i++){ document.getElementById("sh"+i).value =(parseInt(document.getElementById("Len"+i).value))*((parseInt(document.getElementById("PTU").value))*(parseInt(document.getElementById("id"+i).value)))/parseInt(document.getElementById("Pair").options[document.getElementById("Pair").selectedIndex].value); }	}

 input{ width:50px; border: solid 1px #000000; }	.but{ width:100px; border:inherit; }	.body{ background:#999999; }	.main_tb{ border: solid #CC0033; }