   var scrl = null;
   
   var scrollingTimer;
   
   function scrl_param(myId){ 

      this.txt_ln = document.getElementById(myId).value;

      this.myId = myId;
      this.speed = 200; 
      this.box_lg = 40;
      this.pos = 0; 
      this.box_ln = "";
      this.msg_ln = this.txt_ln; 
      this.msg_ln += "      ";

      return this;
   }
     
   function scrlbox() { 

     document.getElementById(scrl.myId).style.fontStyle = 'normal';

     /* if whole has been scrolled, reset to beginning of line */

     if( scrl.pos > scrl.msg_ln.length ){
       scrl.pos = 1;  
     } 
    
     /* construct display line using the line position property */
     scrl.box_ln = ""; 
     scrl.box_ln += scrl.msg_ln.substring(scrl.pos,scrl.msg_ln.length);  
     scrl.box_ln += scrl.msg_ln.substring(0,scrl.pos); 
 
     scrl.pos++; 

     document.getElementById(scrl.myId).value = scrl.box_ln;
     scrollingTimer = setTimeout('scrlbox()',scrl.speed);                   
     
  }
   
  function startscrl(myId){
     /* Enter if: 1) No scrolling previously done */
     /*           2) Scrolling is stopped */ 
     
     if (scrollingTimer == null) { 
       scrl = scrl_param(myId);
       document.getElementById(myId).style.fontStyle = 'normal';
       scrlbox();
     } 
  } 
    
   function stopscrl(){ 
      clearTimeout ( scrollingTimer );
      scrollingTimer = null;
      document.getElementById(scrl.myId).value = scrl.txt_ln;
      document.getElementById(myId).style.fontStyle = 'italic';
   }