function sc_down(x) { 
 stopscroll();
 t = container.style.top.replace(/px/, "");
 t = parseInt(t);
 container.style.top = t - x;
 xx = x;
 scroll_down = window.setTimeout("sc_down(xx);", 0);
}

function sc_up(x) {
 stopscroll();
 t = container.style.top.replace(/px/, "");
 t = parseInt(t);
 if (t >= 0) { return false; }
 container.style.top = t + x;
 xx = x;
 scroll_up = window.setTimeout("sc_up(xx);", 0);
}

function pic_down(x) { 
 stopscroll();
 t = overview.style.top.replace(/px/, "");
 t = parseInt(t);
 overview.style.top = t - x;
 xx = x;
 scroll_pic_down = window.setTimeout("pic_down(xx);", 0);
}

function pic_up(x) {
 stopscroll();
 t = overview.style.top.replace(/px/, "");
 t = parseInt(t);
 if (t >= 0) { return false; }
 overview.style.top = t + x;
 xx = x;
 scroll_pic_up = window.setTimeout("pic_up(xx);", 0);
}

function stopscroll() { 
 if (window.scroll_down) clearTimeout(scroll_down);
 if (window.scroll_up) clearTimeout(scroll_up);
 if (window.scroll_pic_down) clearTimeout(scroll_pic_down);
 if (window.scroll_pic_up) clearTimeout(scroll_pic_up);

}

function viewpic(url,br,ho) {
 scp = overview.style.top.replace(/px/, "");

 if(navigator.appName.indexOf("Netscape") != -1)  {
  nl = (window.innerWidth / 2) - (br / 2);
  nt = (window.innerHeight / 2) - (ho / 2);
  f1 = window.open(url+'&scp='+scp,'View','resizable=no,status=no,left='+nl+',top='+nt+',height='+ho+',width='+br);
  f1.focus();
 } else {
  ml = (document.all.tags("body")[0].offsetWidth / 2) - (br / 2);
  mt = (document.all.tags("body")[0].offsetHeight / 2) - (ho / 2);
  f2 = window.open(url+'&scp='+scp,'View','resizable=no,status=no,left='+ml+',top='+mt+',height='+ho+',width='+br);
  f2.focus();
 }

}

function divmain(url) {
 sc = container.style.top.replace(/px/, "");
 window.location.href=url+'&sc='+sc;
}

function leeren(element) {
 if (element.className == 'mail3') {
  element.value = "";
  element.className = 'mail2';
 }
}

