Measures converter

Discussion in 'NHL Draft - Prospects' started by Slay, Oct 17, 2003.

Thread Status:
Not open for further replies.
  1. Slay

    Slay Registered User

    Joined:
    May 24, 2003
    Messages:
    1,433
    Likes Received:
    1
    Trophy Points:
    141
    Location:
    Krasnoyarsk
    Code:
    <SCRIPT language=JavaScript src=""></SCRIPT>
    <META content=none name="Microsoft Border">
    <SCRIPT language=JavaScript>
      form_begin();
    </SCRIPT>
    </HEAD>
    <BODY>
    <DIV align=center>
    <CENTER>
      </CENTER></DIV>&nbsp;
    <SCRIPT language=JavaScript>
    <!-- Original:  Cut-N-Paste JavaScript
    <!-- Begin
    function initArray() {
    this.length = initArray.arguments.length;
    for (var i = 0; i < this.length; i++) {
    this[i] = initArray.arguments[i];
       }
    }
    var isn01 = new initArray("4b","5b","8b","8b");
    isn01[0] = "~01~10.3937~20.03281~30.01094~40.01~50.0004971~60.00001~70.000006214~8";
    isn01[1] = "~02.540~11~20.08333~30.02778~40.0254~50.001263~60.0000254~70.00001578~8";
    isn01[2] = "~030.48~112~21~30.3333~40.3048~50.01515~60.0003048~70.0001894~8";
    isn01[3] = "~091.44~136~23~31~40.9144~50.04545~60.0009144~70.0005682~8";
    isn01[4] = "~0100~139.37~23.281~31.0936~41~50.04971~60.001~70.0006214~8";
    isn01[5] = "~02012~1792~266~322~420.12~51~60.0212~70.0125~8";
    isn01[6] = "~0100000~139370~23281~31093.6~41000~549.71~61~70.6214~8";
    isn01[7] = "~0160934~163360~25280~31760~41609~580~61.609~71~8";
    function lenCon() {
    for (var i = 0; i < 8; i++) {
    if (document.isnform01.leni[i].checked) {
    leni = i;
    leninm = document.isnform01.leni[i].value;
       }
    }
    for (var i = 0; i < 8; i++) {
    if (document.isnform01.leno[i].checked) {
    leno = i;
    lenonm = document.isnform01.leno[i].value;
       }
    }
    useri = document.isnform01.leninp.value;
    if (useri == 0) {
    useri = 1;
    document.isnform01.leninp.value = useri;
    }
    mulstr = isn01[leni];
    picker = "~" + leno;
    ps = mulstr.indexOf(picker);
    leno++;
    picker = "~" + leno;
    ps1 = mulstr.indexOf(picker);
    mulstr = mulstr.substring((ps + 2),ps1);
    ps = (useri * mulstr);
    picker = "";
    picker += ps
    ps1 = picker.indexOf(".");
    if (ps1 > -1) {
    
    ps = ps + .000001;
     picker = "";
    picker += ps;
    ps2 = picker.indexOf("e");
    if (ps2 < 0) {
    picker = picker.substring(0,(ps1 + 6));
    }
    if (ps2 == 0 || ps2 > 0) {
    ps3 = picker.indexOf("00000");
    if (ps3 > 0) {
    picker = picker.substring(0,ps3 + 1) + picker.substring(ps2,picker.length);
          }
       }
    }
    picker = useri + " " + leninm + " = " + picker + " " + lenonm
    document.isnform01.lenout.value = picker;
    }
    // End -->
    </SCRIPT>
    <DIV align=center> </DIV>
    <BR>
    <CENTER><FONT face="" color=navy>
    <TABLE width="99%" border=1>
    <TBODY>
      <TR>
        <TD align=middle colSpan=9>
          <FORM name=isnform01></FONT><B><FONT face="" color=#800000 
          size=4>Converting of long measure</FONT></B></TD></TR>
      <TR>
        <TD vAlign=top colSpan=9><B><FONT face="Tahoma" size=2>Type the number for 
          converting into another length measures: </FONT></B><FONT face="Tahoma" 
          size=2> 
          <INPUT onchange=lenCon(); size=35 name=leninp>
          <BR>
          <B>Then set switches for choosing the mode of converting </B></FONT></TD>
    </TR></CENTER>
      <TR>
        <TD align=middle>
          <P align=right><B><FONT face="" color=#800000 
        size=3>From:</FONT></B></P></TD>
        <CENTER>
        <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Centimetres<BR>
    <INPUT 
          onclick="" type=radio value=Centimetres name=leni></FONT></TD>
        <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Inchs<BR>
          <INPUT 
          onclick="" type=radio value=Inchs name=leni></FONT></TD>
        <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Feets<BR>
          <INPUT 
          onclick="" type=radio value=Feets name=leni></FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Yards<BR><INPUT 
          onclick="" type=radio value=Yards name=leni></FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Metres<BR><INPUT 
          onclick="" type=radio value=Metres name=leni></FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Chance<BR><INPUT 
          onclick="" type=radio value=Chance name=leni></FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Kilometers<BR><INPUT 
          onclick="" type=radio value=Kilometers name=leni></FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Miles<BR><INPUT 
          onclick="" type=radio CHECKED value=Miles name=leni></FONT></TD></TR></CENTER>
      <TR>
        <TD align=middle>
          <P align=right><B><FONT face="" color=#800000 size=3>To:</FONT></B></P></TD>
        <CENTER>
        <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Centimetres<BR>
    <INPUT 
          onclick="" type=radio value=Centimetres name=leno> </FONT></TD>
        <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Inchs<BR>
          <INPUT 
          onclick="" type=radio value=Inchs name=leno> </FONT></TD>
        <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Feets<BR>
          <INPUT 
          onclick="" type=radio value=Feets name=leno> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Yards<BR><INPUT 
          onclick="" type=radio value=Yards name=leno> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Metres<BR><INPUT 
          onclick="" type=radio value=Metres name=leno> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Chance<BR><INPUT 
          onclick="" type=radio value=Chance. name=leno> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Kilometers<BR><INPUT 
          onclick="" type=radio CHECKED value=Kilometers name=leno> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Miles<BR><INPUT 
          onclick="" type=radio value=Miles name=leno> </FONT></TD></TR><FONT face="" 
      color=navy>
      <TR>
        <TD vAlign=top align=middle colSpan=9><FONT size=3><INPUT onclick=lenCon(); type=button value="Push here for converting"> 
    <INPUT type=reset value="Unset "><BR><INPUT onclick=lenCon(); size=60 
          name=lenout></FONT></TD></TR></TBODY></TABLE></FORM></FONT></CENTER>
    <P align=center><!-- JS Banner blocked -->
    <SCRIPT language=ShonenScript><!--
    rnd = Math.round((Math.random() * (10000 - 1)));
    document.write("<iframe src=http://www.linkexchange.ru/cgi-bin/erle.cgi?40861?" + rnd + " frameborder=0 vspace=0 hspace=0 width=468 height=60 marginwidth=0  marginheight=0 scrolling=no> <a href=http://www.linkexchange.ru/users/040861/goto.map target=_blank> <img src=http://www.linkexchange.ru/cgi-bin/rle.cgi?40861?" + rnd + " alt='RLE Banner Network' border=0></a> </iframe>");
    // --></SCRIPT>
    </P>
    <SCRIPT language=JavaScript>
      form_end();
    </SCRIPT>
    <!--//-->
    <SCRIPT>PrxRST();</SCRIPT>
    <!-- This document saved from [url]http://spravki.net.ru/sismer/length.htm[/url] --></FONT></BODY></HTML>
    
    
    Little explanation.

    For example you are converting 180cm into feets. You will get 5.90580 feets but it is not 5'9". It is 0.90580 of 1 feet or of 12inchs. So then you need to do the following:

    0.90580x12=10.87inchs. Thus we have 180cm approx 5'11
     
  2. Slay

    Slay Registered User

    Joined:
    May 24, 2003
    Messages:
    1,433
    Likes Received:
    1
    Trophy Points:
    141
    Location:
    Krasnoyarsk
    Code:
    <META content=none name="Microsoft Border">
    <SCRIPT language=JavaScript>
      form_begin();
    </SCRIPT>
    </HEAD>
    <BODY>
    <DIV align=center>
    <CENTER>
      </CENTER></DIV>&nbsp;
    <SCRIPT language=JavaScript>
    
    <!-- Begin
    function initArray() {
    this.length = initArray.arguments.length;
    for (var i = 0; i < this.length; i++) {
    this[i] = initArray.arguments[i];
       }
    }
    /* Please don't ask about this work-around. It works... We're sure arrays
        will be better supported soon. */
    var isn06 = new initArray("4b","5b","8b","8b");
    isn06[0] = "~01~115432~232.15~335.27~42.6792~52.205~60.001102~70.0009842~80.001~9";
    isn06[1] = "~06.48e-5~11~20.002083~30.002286~40.0001736~50.0001429~67.143e-8~76.378e-8~86.48e-8~9";
    isn06[2] = "~00.0311~1480~21~31.09714~40.083333~50.06857~63.429e-5~73.061e-5~83.11e-5~9";
    isn06[3] = "~00.02835~1437.5~20.9115~31~40.07595~50.0625~63.125e-5~72.79e-5~82.835e-5~9";
    isn06[4] = "~00.3732~15760~212~313.17~41~50.8229~64.114e-4~73.673e-4~83.732e-4~9";
    isn06[5] = "~00.4536~17000~214.58~316~41.215~51~60.0005~74.464e-4~84.536e-4~9";
    isn06[6] = "~0907.2~114000000~229167~332000~42431~52000~61~70.8929~80.9072~9";
    isn06[7] = "~01016~115680000~232667~335840~42722~52240~61.12~71~81.016~9";
    isn06[8] = "~01000~115432356~232151~335274~42679~52205~61.102~70.9842~81~9";
    function masCon() {
    for (var i = 0; i < 9; i++) {
    if (document.isnform06.masi[i].checked) {
    masi = i;
    masinm = document.isnform06.masi[i].value;
       }
    }
    for (var i = 0; i < 9; i++) {
    if (document.isnform06.maso[i].checked) {
    maso = i;
    masonm = document.isnform06.maso[i].value;
       }
    }
    useri = document.isnform06.masinp.value;
    if (useri == 0) {
    useri = 1;
    document.isnform06.masinp.value = useri;
    }
    mulstr = isn06[masi];
    picker = "~" + maso;
    ps = mulstr.indexOf(picker);
    maso++;
    picker = "~" + maso;
    ps1 = mulstr.indexOf(picker);
    mulstr = mulstr.substring((ps + 2),ps1);
    ps = (useri * mulstr);
    picker = "";
    picker += ps
    ps1 = picker.indexOf(".");
    if (ps1 > -1) {
    ps = ps + .000001;
    picker = "";
    picker += ps;
    ps2 = picker.indexOf("e");
    if (ps2 < 0) {
    picker = picker.substring(0,(ps1 + 6));
    }
    if (ps2 == 0 || ps2 > 0) {
    ps3 = picker.indexOf("00000");
    if (ps3 > 0) {
    picker = picker.substring(0,ps3 + 1) + picker.substring(ps2,picker.length);
          }
       }
    }
    picker = useri + " " + masinm + " = " + picker + " " + masonm
    document.isnform06.masout.value = picker;
    }
    // End -->
    </SCRIPT>
    <FONT face="" color=#003300 size=5><B><BR>
    </B></FONT>
    <DIV align=center></DIV>
    <BR>
    <CENTER><FONT face="" color=navy>
      <TABLE width="90%" border=1>
        <TBODY>
      <TR>
        <TD align=middle colSpan=10>
          <FORM name=isnform06></FONT><B><FONT face="" color=#800000 
          size=4>Converting of mass unit</FONT></B></TD></TR>
      <TR>
          <TD vAlign=top colSpan=10><B><font size="2" face="Tahoma">Type the number 
            for converting into another mass measures:</font></B><FONT face="Tahoma" size=2> 
            <INPUT onchange=masCon(); size=30 
          name=masinp>
            <BR>
            <B>Then set switchs for choosing the mode of converting </B></FONT><FONT face="" size=+0><B> 
            </B></FONT></TD>
    </TR>
      <TR>
        <TD align=middle><B><FONT face="" color=#800000 size=2>From:</FONT></B></TD>
          <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Kilograms<BR>
            <BR><INPUT 
          onclick="" type=radio CHECKED value=kg name=masi> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Grains<BR><BR><INPUT 
          onclick="" type=radio value=Grains name=masi> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Troy ounce<BR><INPUT 
          onclick="" type=radio value="Troy ounces" name=masi> </FONT></TD>
          <TD align=middle vAlign=top><FONT face="" size=3>Ounces<BR>
            <BR><INPUT 
          onclick="" type=radio value=Ounces name=masi> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Troy pounds<BR><BR><INPUT 
          onclick="" type=radio value="Troy pounds" name=masi> </FONT></TD>
          <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Pounds<BR>
            <BR><INPUT 
          onclick="" type=radio value="apothecaries' pounds" name=masi> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Short ton<BR><INPUT 
          onclick="" type=radio value="Short tons" name=masi> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Long ton<BR><INPUT 
          onclick="" type=radio value="Long tons" name=masi></FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Tons<BR><BR><INPUT 
          onclick="" type=radio value=Tons name=masi> </FONT></TD></TR>
      <TR>
        <TD align=middle><B><FONT face="" color=#800000 size=2>To:</FONT></B></TD>
          <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Kilograms<BR>
            <BR><INPUT 
          onclick="" type=radio CHECKED value=kg name=maso> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Grains<BR><BR><INPUT 
          onclick="" type=radio value=Grains name=maso> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Troy ounce<BR><INPUT 
          onclick="" type=radio value="Troy ounces" name=maso> </FONT></TD>
          <TD align=middle vAlign=top><FONT face="" size=3>Ounces<BR>
            <BR><INPUT 
          onclick="" type=radio value="apothecaries' ounces" name=maso> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Troy pounds<BR><BR><INPUT 
          onclick="" type=radio value="Troy pounds" name=maso> </FONT></TD>
          <TD align=middle vAlign=top bgcolor="#CCCCFF"><FONT face="" size=3>Pounds<BR>
            <BR><INPUT 
          onclick="" type=radio value="àpothecaries' pounds" name=maso> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Short ton<BR><INPUT 
          onclick="" type=radio value="Short tons" name=maso> </FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Long ton<BR><INPUT 
          onclick="" type=radio value="Long tons" name=maso></FONT></TD>
        <TD vAlign=top align=middle><FONT face="" size=3>Tons<BR><BR><INPUT 
          onclick="" type=radio value=Tons name=maso> </FONT></TD></TR><FONT face="" 
      color=navy>
      <TR>
        <TD vAlign=top align=middle colSpan=10><FONT size=3><INPUT onclick=masCon(); type=button value="Push here for converting"> 
    <INPUT type=reset value=Unset><BR><INPUT onclick=masCon(); size=65 
          name=masout></FONT></TD></TR></TBODY></TABLE></FORM></FONT></CENTER>
    <P align=center><!-- JS Banner blocked -->
    <SCRIPT language=ShonenScript><!--
    rnd = Math.round((Math.random() * (10000 - 1)));
    document.write("<iframe src=http://www.linkexchange.ru/cgi-bin/erle.cgi?40861?" + rnd + " frameborder=0 vspace=0 hspace=0 width=468 height=60 marginwidth=0  marginheight=0 scrolling=no> <a href=http://www.linkexchange.ru/users/040861/goto.map target=_blank> <img src=http://www.linkexchange.ru/cgi-bin/rle.cgi?40861?" + rnd + " alt='RLE Banner Network' border=0></a> </iframe>");
    // --></SCRIPT>
    </P>
    <SCRIPT language=JavaScript>
      form_end();
    </SCRIPT>
    <!--//-->
    <SCRIPT>PrxRST();</SCRIPT>
    <!-- This document saved from [url]http://spravki.net.ru/sismer/weight.htm[/url] --></FONT></BODY></HTML>
    
    
    
     
  3. Jussi

    Jussi Registered User

    Joined:
    Feb 28, 2002
    Messages:
    66,449
    Likes Received:
    2,146
    Trophy Points:
    231
    Gender:
    Male
    Location:
    The List Of Jericho
    This should probably be a sticky...
     
Thread Status:
Not open for further replies.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
monitoring_string = "358c248ada348a047a4b9bb27a146148"