L1*= | Kg (Total weight in kg)*= | |
L2*= | N (Number of gas springs) = | |
Your Newton value will be:
alert('kommer hit');
function calculate_newton() { var a, b, antal, vikt, newton; var errstr = "";
// Hämta indata a = document.form.a.value; b = document.form.b.value; antal = document.form.antal.value; vikt = document.form.vikt.value;
// Kolla indata if(a == "" || isNaN(1 * b)) errstr += "L1n"; if(b == "" || isNaN(1 * a)) errstr += "L2n"; if(antal == "" || isNaN(1 * vikt)) errstr += "Kgn"; if(vikt == "" || isNaN(1 * antal)) errstr += "Nn";
if(errstr != "") { alert("The following field is not completed correctly. Read the help test (at the bottom of the page) how the field should be completed.n" + "n" + errstr); return; } newton = (vikt * b * 12) / (2 * antal * a); newton = Math.floor(newton); if(newton >= 1000) newton = 100 * Math.round(newton / 100); else newton = 10 * Math.round(newton / 10);
document.form.newton.value = newton; }
function klistra_in_och_stang() { var opener = window.opener;
if(opener) { var doc = opener.document; if(doc) { var form = doc.gasform; if(form) { form.newton.value = document.form.newton.value; window.close(); return; } } }
}
Instructions:
Fill in the values. All fields L1, L2, Kg and N must be filled in. Click on “Calculate”.
* L1 is measured from center of the hinge (O).
* L2 is measured from the hinge´s center (O) to the closest fix point of the gas spring when cover is open.
* The weight refers to the total weight of the cover.
To get total weight of the cover: Remove gas springs, put a scale in the opening at the back. Close the cover on to the scale and double the value.