
    <!--
      function startClock()
      {
        timeRemaining();
      }

      function round_number(number,dec_places)
      {
        var new_number='';
        var i=0;
        number=number.toString();
        dec_places=dec_places*1;
        dec_point_pos=number.lastIndexOf(".");
        if(dec_point_pos==0)
        {
          number="0"+number;dec_point_pos=1
        }
        if(dec_point_pos==-1||dec_point_pos==number.length-1)
        {
          if(dec_places>0)
          {
            new_number=number+".";
            for(i=0;i<dec_places;i++)
            {
              new_number+="0"
            }
            return new_number
          } else
          {
            return number
          }
        }

        var existing_places=(number.length-1)-dec_point_pos;
        if(existing_places==dec_places)
        {
          return number
        }

        if(existing_places<dec_places)
        {
          new_number=number;

          for(i=existing_places;i<dec_places;i++)
          {
            new_number+="0"
          }

          return new_number
        }

        var end_pos=(dec_point_pos*1)+dec_places;
        var round_up=false;
        if((number.charAt(end_pos+1)*1)>4)
        {
          round_up=true
        }

        var digit_array=new Array();
        for(i=0;i<=end_pos;i++)
        {
          digit_array[i]=number.charAt(i)
        }

        for(i=digit_array.length-1;i>=0;i--)
        {
          if(digit_array[i]==".")
          {
            continue
          }
          if(round_up)
          {
            digit_array[i]++;
            if(digit_array[i]<10)
            {
              break
            }
          } else {
            break
          }
        }

        for(i=0;i<=end_pos;i++)
        {
          if(digit_array[i]=="."||digit_array[i]<10)
          {
            new_number+=digit_array[i]
          } else
          {
            new_number+="0"
          }
        }
        
        if(dec_places==0)
        {
          new_number=new_number.replace(".","")
        }
        
        return new_number
      }

      function string(number)
      {
        var tempnum;

        tempnum= Math.round(number)+" ";
        tempnum= tempnum.substring(0,tempnum.length-1);

        if (tempnum.length >3)
        {
          tempnum = tempnum.substring(0,tempnum.length-3) + "," + tempnum.substring(tempnum.length-3, 99);
        }
        if (tempnum.length >7)
        {
          tempnum = tempnum.substring(0,tempnum.length-7) + "," + tempnum.substring(tempnum.length-7, 99);
        }
        if (tempnum.length >11)
        {
          tempnum = tempnum.substring(0,tempnum.length-11) + "," + tempnum.substring(tempnum.length-11, 99);
        }
        if (tempnum.length >15)
        {
          tempnum = tempnum.substring(0,tempnum.length-15) + "," + tempnum.substring(tempnum.length-15, 99);
        }
        if (tempnum.length == 11)
        {
          tempnum = "  " + tempnum;
        }
        if (tempnum.length == 10)
        {
          tempnum = "   " + tempnum;
        }
        if (tempnum.length == 9)
        {
          tempnum = "   " + tempnum;
        }
        if (tempnum.length == 7)
        {
          tempnum = "      " + tempnum;
        }
        if (tempnum.length == 6)
        {
          tempnum = "       " + tempnum;
        }
        if (tempnum.length == 5)
        {
          tempnum = "        " + tempnum;
        }
        if (tempnum.length == 3)
        {
          tempnum = "          " + tempnum;
        }
        if (tempnum.length == 2)
        {
          tempnum = "           " + tempnum;
        }
        if (tempnum.length == 1)
        {
          tempnum = "            " + tempnum;
        }
        return tempnum;
      }

      function timeRemaining()
      {
        var now = new Date();
        var newyears = new Date("January 1, 2000");
        var todaysdate = new Date("January 1, 2000");
        var may4 = new Date("May 4, 1999");

        var currentPop;
        var BirthsInYear;

        newyears.setFullYear(now.getFullYear());

        secsSince = Math.round(now.getTime() - newyears.getTime())/1000;
        secsSincePop = Math.round(now.getTime() - may4.getTime())/1000;

        todaysdate.setMonth(now.getMonth());
        todaysdate.setDate(now.getDate());
        todaysdate.setFullYear(now.getFullYear());
        secsToday = (now.getTime()-todaysdate.getTime())/1000;

        // population
        current_population = string(secsSincePop * 2.48573 + 5979540016);
        document.pweb.elements["current_population"].value = current_population;

        // environment
        co2_emissions = string((secsSince) * 708);
        document.pweb.elements["co2_emissions"].value = co2_emissions;


        timerID = setTimeout("timeRemaining()", 1);
        timerRunning = true;

      }

      //////////////////////////////////////////////////////////////////////////
      //  End of code core
      //////////////////////////////////////////////////////////////////////////
    //-->

