<?xml      version="1.0"   encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Length Convertor"
title_url="http://atat.ro/"
category="tools"
category2="funandgames"
description="CM-INCH-FEET is a usefull tool to convert from centimeters into inchees and feets."
author="Portal Romanesc"
author_email="portal.romanesc@gmail.com"
screenshot="http://portal.romanesc.googlepages.com/CM-INCH-FEET.png"
thumbnail="http://portal.romanesc.googlepages.com/CM-INCH-FEET.png"
author_location="GR"
author_affiliation="PortalRomanesc"
author_photo="http://portal.romanesc.googlepages.com/sumotv.gif"
author_aboutme="I just love building gadgets"
author_link="http://portal.romanesc.googlepages.com"
author_quote="Never argue with an idiot. They'll bring you down to their level, then beat you with experience"
height="130"
width="190">
</ModulePrefs>
<!-- -->
<Content type="html"><![CDATA[

<center><TABLE cellSpacing=0 cellPadding=0 width=189 border=1 style="border-collapse: collapse">

<FORM name=cminch>
        <TBODY>
        <TR>
          <TD>
            <FONT face="Arial Narrow"><INPUT 
            onblur=cmconvert() value=2.54 name=cm> </FONT><FONT face="Arial Narrow" 
        size=-1>cm</FONT></TD>
        </TR>
        <TR>
          <TD>
            <FONT face="Arial Narrow"><INPUT 
            onblur=feetconvert() value=0 name=feet> </FONT><FONT face=Arial 
            size=-1>feet</FONT></TD>
        </TR>
        <TR>
          <TD>
            <FONT face="Arial Narrow"><INPUT 
            onblur=inchconvert() value=1 name=inch> </FONT><FONT face=Arial 
        size=-1>inch</FONT></TD>
        </TR>
        <TR>
          <TD width="73%">
              <p align="center"><input type="button" value="Convert" name="B3"><br /><b><a title="Cool Gadgets" target="_blank" href="http://gadget-blog.ro">
    <font size="2" color="#333333" face="Verdana">Cool Gadgets</font></a></b></b></p>
          </TD>
        </TR></TBODY></FORM>

<SCRIPT language=JavaScript>

function roundit(which){
return Math.round(which*100)/100
}

function cmconvert(){
with (document.cminch){
feet.value = roundit(cm.value/30.84);
inch.value = roundit(cm.value/2.54);
}
}

function inchconvert(){
with (document.cminch){
cm.value = roundit(inch.value*2.54);
feet.value=roundit(inch.value/12);
}
}

function feetconvert(){
with (document.cminch){
cm.value=roundit(feet.value*30.48);
inch.value=roundit(feet.value*12);
}
}

</SCRIPT>
</TABLE>

]]></Content>
</Module>











