Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <SCRIPT LANGUAGE="JavaScript">
- function Calculate() {
- //alert("Calculate");
- var s = document.getElementById("tStatic").value;
- var r = document.getElementById("tResid").value;
- var d = document.getElementById("tDia").value;
- var p = document.getElementById("tPitot").value;
- var c = .9;
- if (d > 2.5) {var c = .75};
- if (s >= 40) {var mp = 20};
- if (s < 40) {var mp = s/2};
- var xxx = 29.83;
- var x = Math.pow(d,2);
- var xx = Math.sqrt(p);
- var f = (xxx * c * x * xx);
- document.getElementById("tFlow").value = Math.round(f);
- {
- var t = Math.pow((s-mp),.54);
- var b = Math.pow((s-r),.54);
- var fe = ((t / b) * f)
- };
- //alert(fe);
- document.getElementById("FireFlow").value = Math.round(fe);
- }
- function openComments(){
- Comments = window.open("Comments.asp?Object=<%=rsTask("cid")%>&ObType=FlowTest&WO=<%=FlowId%>");
- }
- </SCRIPT>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement