<?xml                  version="1.0" encoding="UTF-8" ?>
<Module>
<ModulePrefs title="Body Mass Index Calculator"
             title_url="http://my-google-gadgets.blogspot.com/"
             category="sports"
             category2="lifestyle"
             description="Will display the BMI (body mass index) and will tell you what's your condition."
             author="Alice Thai"
             author_email="the.gadget.architect@gmail.com"
             screenshot="http://sites.google.com/site/portalromanesc/Body-Mass-Index-Calculator.png"
             thumbnail="http://sites.google.com/site/portalromanesc/Body-Mass-Index-Calculator.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://my-google-gadgets.blogspot.com/"
             author_quote="Never argue with an idiot. They'll bring you down to their level, then beat you with experience"         
             height="280"             
             width="250">
</ModulePrefs>
<!--  -->
<Content type="html"><![CDATA[
<script language="JavaScript">
<!--
function calculateBmi() {
var weight = document.bmiForm.weight.value
var height = document.bmiForm.height.value
if(weight > 0 && height > 0){  
var finalBmi = weight/(height/100*height/100)
document.bmiForm.bmi.value = finalBmi
if(finalBmi < 18.5){
document.bmiForm.meaning.value = "That you are too thin."
}
if(finalBmi > 18.5 && finalBmi < 25){
document.bmiForm.meaning.value = "That you are healthy."
}
if(finalBmi > 25){
document.bmiForm.meaning.value = "That you have overweight."
}
}
else{
alert("Please Fill in everything correctly")
}
}
//-->
</script>
<form name="bmiForm" style="border-style: solid; border-width: 1px;">
<input type="text" name="weight" style="width:98%;" value="Write your weight here in Kg" onclick="this.value='';" onfocus="this.select()"><br><input onclick="this.value='';" onfocus="this.select()" type="text" name="height" style="width:98%;" value="Write your height here in cm">
<table border="0" width="100%" style="border-collapse: collapse">
  <tr>
    <td width="193">&nbsp;<input type="button" value="Calculate BMI" onClick="calculateBmi()" style="color: #FFFFFF; border-style: solid; border-width: 1px; background-color: #00cc00"> <input type="reset" value="Reset" style="color: #FFFFFF; border-style: solid; border-width: 1px; background-color: #00cc00" /><br>&nbsp;<input value="Your BMI" type="text" name="bmi" size="10">...this means:
</td>
  </tr>
  <tr>
    <td>
<center><iframe border=0 frameborder=0 height=60 marginheight=0 marginwidth=0 name=explain scrolling=no src=http://atat.ro/about.html title=Proxy width=234></iframe></center>
<input type="text" name="meaning" style="width:98%;"></td>
  </tr>
</table>
<center>

<a title="COOL GOOGLE GADGETS " target="_blank" href="http://atat.ro/" style="text-decoration: none; font-weight:700">
<font size="1">COOL GOOGLE GADGETS</font></a></center>


]]></Content>
</Module>














