var myObj = document.all.text1;
var aktiv;

function startab(){
   aktiv = setInterval("ab()", 50);
}

function stopab(){

   clearInterval(aktiv);
}

function startauf(){
   aktiv = setInterval("auf()", 50);
}

function stopauf(){
   clearInterval(aktiv);
}

function ab(){
  //myObj = getElementByName("text1");
  //alert(myObj.style.top);
  oben  = parseInt(myObj.style.top);
  hoehe = parseInt(myObj.style.height);
  if(oben > 380 - hoehe){
    myObj.style.top = oben - 10;
  }
}

function schnellab(){
  //myObj = getElementByName("text1");
  //alert(myObj.style.top);
  oben  = parseInt(myObj.style.top);
  hoehe = parseInt(myObj.style.height);
  if(oben > 380 - hoehe + 300){
    myObj.style.top = oben - 300;
  }
}

function auf(){
  //myObj = getElementByName("text1");
  //alert(myObj.style.top);
  oben  = parseInt(myObj.style.top);
  hoehe = parseInt(myObj.style.height);
  if(oben < 0 ){
    myObj.style.top = oben + 10;
  }
}

function schnellauf(){
  //myObj = getElementByName("text1");
  //alert(myObj.style.top);
  oben  = parseInt(myObj.style.top);
  hoehe = parseInt(myObj.style.height);
  if(oben < 0 - 300){
    myObj.style.top = oben + 300;
  }
}

function start(){
        myObj = document.getElementById("text1");
        myObj.style.top = 0;
        //alert(max_hoehe);
        myObj.style.height = max_hoehe;
}
