/*----------------------------------------------------------------------*/
/*  progress.js: Anzeige eines horizontalen Fortschrittsbalkens         */
/*  Copyright by Antritter-Informatik, August 2003                      */ 
/*----------------------------------------------------------------------*/



/*- Konstruktor: -------------------------------------------------------*/

function Progress( progressDiv, width, height )
   {
   // Daten:
   this.progressDiv = progressDiv;
   this.width = width;
   this.height = height;

   // Methoden:
   this.output = PROGRESS_output;

   return this;
   }



/*----------------------------------------------------------------------*/

function PROGRESS_output( zahl )
   {
   var x = zahl;
   if( x<0 ) x=0;
   if( x>100 ) x=100;

   Browser_setClip(
      this.progressDiv,
      0,
      Math.floor(this.width * x / 100),
      this.height,
      0
      );
   }



/*- end of file --------------------------------------------------------*/

