var pstep = 1;
var cloc = document.location.href;

function scrollTop(element) {
//alert(pstep);
if (pstep == -1) pstep = 0;
mt = pstep*100;
       // mt += 100;
  if (pstep > -1) {
  document.location.href = cloc+'#p'+pstep;

  
  pstep--;
      
        document.getElementById('scrl').style.marginTop =  mt + 'px';  
  }
}


function scrollDown(element) {

  if (pstep < 0) {
  pstep = 0;
  }
  mt = pstep*100;
  //mt += 100; 
  
  if (mt < document.body.offsetHeight-700) {
  document.location.href = cloc+'#p'+pstep;
//window.scrollTo(0, mt); 
//scrollByLines(5);
  pstep++;
 //mt = pstep*100;
  document.getElementById('scrl').style.marginTop = mt + 'px';
  
}


}