Google Community Chat
 
Death Clock, Yer gona die!!
Goto page Previous  1, 2
You're visiting Google Community as a guest.
In order to post, you'll need to register and log in.


(If you were registered and logged in, these advertisements wouldn't be here)
Post new topic   Reply to topic    Google Community Forum Index // Chit Chat
   
Author Message
intelliot
Site Admin


Joined: 01 May 2004

18653.45 GC$

Items

PostPosted: Sun Aug 08, 2004 10:09 pm    Post subject: Reply with quote
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
View user's profile Send private message Send e-mail Visit poster's website
tntcheats
So sexy it hurts
Master Googler


Joined: 05 Jul 2004
Location: Cananada
13184.52 GC$

Items

PostPosted: Sun Aug 08, 2004 10:29 pm    Post subject: Reply with quote
My estimated time of death:
NEVER!
_________________
Tetris | Great Big Blog
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Snake
King of Snakes
Google Freak


Joined: 28 Jul 2004
Location: Wisconsin
20845.02 GC$

Items

PostPosted: Sun Aug 08, 2004 10:40 pm    Post subject: Reply with 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

Snake
(wishes he could live forever)
Back to top
View user's profile Send private message
Orpheus
GoogleCommunity Boss
Google Freak


Joined: 08 Jul 2004
Location: Slovakia
529.75 GC$

Items

PostPosted: Mon Aug 09, 2004 1:16 am    Post subject: Reply with quote
hmm, i think this is a good topic.But 60yrs to live isnt good on it.Sad
Back to top
View user's profile Send private message Yahoo Messenger
tntcheats
So sexy it hurts
Master Googler


Joined: 05 Jul 2004
Location: Cananada
13184.52 GC$

Items

PostPosted: Mon Aug 09, 2004 12:06 pm    Post subject: Reply with quote
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 Wink
_________________
Tetris | Great Big Blog
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
nebbie2004
Senior Googler
Senior Googler


Joined: 20 Jun 2004
Location: Dublin, GA
1771.40 GC$

Items

PostPosted: Tue Aug 17, 2004 10:27 am    Post subject: Reply with quote
Old news, AGAIN!
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address
smokedragon
Noogle
Noogle


Joined: 17 Aug 2004

16.00 GC$

Items

PostPosted: Tue Aug 17, 2004 10:53 am    Post subject: Reply with quote
i will never die even though it says i will in 5 years or so
Back to top
View user's profile Send private message
Sponsored Links
Posted: 3 Dec 2008 2:11 pm    Post subject: Advertisements
Back to top
Post new topic   Reply to topic    Google Community Forum Index // Chit Chat All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2


 
Jump to:  
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

© 2005-2006 Google Community

Powered by phpBB

Privacy Policy | Contact Us

Powered by Google Search blog

This website is not affiliated in any way with Google, Inc.
Google™ is a registered trademark of Google, Inc.