| |
intelliot Site Admin

Joined: 01 May 2004
18653.45 GC$
Items
|
Posted: Sun Aug 08, 2004 10:09 pm Post subject: |
|
|
|
Here's a portion of their algo in Javascript (apparently uses BMI, or body mass index)
| Code: | // --------------------------------------------------------------
// Do oue BMI Calculations
// --------------------------------------------------------------
function MM_BMI()
{
br="ie";
if (navigator.appName == "Netscape")
{
br="ns";
}
ver = navigator.appVersion.substring(0,1);
var comnt = "";
WVal = document.main.weight.selectedIndex;
w = eval('document.main.weight.options[WVal].text');
w = (w * 1);
HtfVal = document.main.htf.selectedIndex;
Htf = eval('document.main.htf.options[HtfVal].text');
HeightFeetInt = (Htf * 1);
HtiVal = document.main.hti.selectedIndex;
Hti = eval('document.main.hti.options[HtiVal].text');
HeightInchesInt = (Hti * 1);
HeightFeetConvert = HeightFeetInt * 12;
h = HeightFeetConvert + HeightInchesInt;
displaybmi = (Math.round((w * 703) / (h * h)));
if (HeightInchesInt > 11)
{
reminderinches = mod(HeightInchesInt,12);
document.main.hti.value = reminderinches;
document.main.htf.value = HeightFeetInt + ((HeightInchesInt - reminderinches)/12);
document.main.answer.value = displaybmi;
}
if (displaybmi <19)
{
comnt = "Underweight";
}
if (displaybmi >=19 && displaybmi <=25)
{
comnt = "Desirable";
}
if (displaybmi >=25 && displaybmi <=29)
{
comnt = "Prone to health risks";
}
if (displaybmi >=30 && displaybmi <=40)
{
comnt = "Obese";
}
if (displaybmi >40)
{
comnt = "Extremely obese";
}
com = eval('"Your Category is: " + comnt');
if(document.all)
{
Comment.innerHTML = com;
}
else
{
if (ver <= 4)
{
document.main.iComment.value = com;
}
else
{
var cElement = document.getElementById('Comment');
cElement.innerHTML = com;
}
}
ans = eval('"Your Body Mass Index is: <FONT Color=990000 Size = 3><B>" + displaybmi + "</B></FONT>"');
if(document.all)
{
Answer.innerHTML = ans;
}
else
{
if (ver <= 4)
{
ans = eval('"Your Body Mass Index is: " + displaybmi + ""');
document.main.iAnswer.value = ans;
}
else
{
var cElement = document.getElementById('Answer');
cElement.innerHTML = ans;
}
}
if(document.all)
{
Click.innerHTML = '';
}
else
{
if (ver <= 4)
{
document.iClick.document.open();
document.iClick.document.write('');
document.iClick.document.close();
}
else
{
var cElement = document.getElementById('Click');
cElement.innerHTML = '';
}
}
if (displaybmi >=25)
{
clk = "<A HREF = 'BMIPage2.cfm'><FONT Color=990000 Size = 3><B>Click Here</B></FONT></A> To Find Out What This Number Means To You";
if(document.all)
{
Click.innerHTML = clk;
}
else
{
if (ver <= 4)
{
document.iClick.document.open();
document.layers.iClick.top = 634;
document.layers.iClick.left = 170;
document.layers.iClick.width = 500;
document.iClick.document.write(clk);
document.iClick.document.close();
}
else
{
var cElement = document.getElementById('Click');
cElement.innerHTML = clk;
}
}
}
}
// -------------------------------------
// Load our BMI explanation Window
// ------------------------------------
function MM_Win()
{
var URL = 'Bmi.cfm';
var winVal = "location=no,scrollbars=no,menubars=no,toolbars=no,resizable=yes" +
",left=" + 20 + ",top=" + 100 + ",width=" + 350 + ",height=75";
myWindow4 = window.open (URL,"", winVal);
} |
|
|
| Back to top |
|
|
tntcheats So sexy it hurts


Joined: 05 Jul 2004 Location: Cananada 13184.52 GC$
Items
|
|
| Back to top |
|
|
Snake King of Snakes


Joined: 28 Jul 2004 Location: Wisconsin 20845.02 GC$
Items
|
Posted: Sun Aug 08, 2004 10:40 pm Post subject: |
|
|
|
You got to be kidding me right? You WILL die soon or later. Sure this "device" may help alittle bit. But it WONT make you live forever. But this is interesting though. People actually buying this is interesting. Tntcheats, does this work? I guess we wont know til your in ur 70s. lol Please dont be offended by me not believing in this product. lol
Snake
(wishes he could live forever) |
|
| Back to top |
|
|
Orpheus GoogleCommunity Boss

Joined: 08 Jul 2004 Location: Slovakia 529.75 GC$
Items
|
Posted: Mon Aug 09, 2004 1:16 am Post subject: |
|
|
|
hmm, i think this is a good topic.But 60yrs to live isnt good on it. |
|
| Back to top |
|
|
tntcheats So sexy it hurts


Joined: 05 Jul 2004 Location: Cananada 13184.52 GC$
Items
|
Posted: Mon Aug 09, 2004 12:06 pm Post subject: |
|
|
|
| Quote: | | You got to be kidding me right? You WILL die soon or later. Sure this "device" may help alittle bit. But it WONT make you live forever. But this is interesting though. People actually buying this is interesting. Tntcheats, does this work? I guess we wont know til your in ur 70s. lol Please dont be offended by me not believing in this product. lol |
I don't have them, I was being sarcastic  _________________ Tetris | Great Big Blog |
|
| Back to top |
|
|
nebbie2004 Senior Googler


Joined: 20 Jun 2004 Location: Dublin, GA 1771.40 GC$
Items
|
Posted: Tue Aug 17, 2004 10:27 am Post subject: |
|
|
|
| Old news, AGAIN! |
|
| Back to top |
|
|
smokedragon Noogle

Joined: 17 Aug 2004
16.00 GC$
Items
|
Posted: Tue Aug 17, 2004 10:53 am Post subject: |
|
|
|
| i will never die even though it says i will in 5 years or so |
|
| Back to top |
|
|
Sponsored Links
|
Posted: 3 Dec 2008 2:11 pm Post subject: Advertisements |
|
|
|
|
|
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Host your free forums with Invision Plus.net forum web hosting with your own subdomain.
alexisBlue v1.2 // Theme Created By: Andrew Charron // Icons in Part By: Travis Carden
|
|
|
|
|