function setToTopLink() {
  if(document.all) {
    bh = document.body.offsetHeight;
    dd = document.getElementById('seitenende').offsetTop;
    if (document.body.offsetHeight>(document.getElementById('seitenende').offsetTop + document.getElementById('seitenende').offsetHeight)) {
       writeHTMLinElement('toTop', '');
    }
  } else {
    bh = window.innerHeight;
    dd = document.body.offsetHeight;
    if (document.body.offsetHeight<window.innerHeight) {
      writeHTMLinElement('toTop', '');
    }
  }
}

function resizeWindow(w, h) {
  // resize current window...
  window.resizeTo(w,h);
  if(document.all){
    
  } else {
   // window.innerHeight = h;
   // window.innerWidth = w;
  }
}

function popup(urll,name,width,height) {
 var a = window.open(urll, name, 'width='+width+',height='+height+',left=0,top=0,status=no,scrollbars=no,toolbar=no');
}

function popupScroll(urll,name,width,height) {
 var a = window.open(urll, name, 'width='+width+',height='+height+',left=0,top=0,status=no,scrollbars=yes,toolbar=no');
}

function getScreenParam(windowWidth,windowHeight){
  if (screen.width >= windowWidth) {
    windowLeft = (screen.width-windowWidth)/4*3;
  } else {
    windowLeft = 0;
  }
  if (screen.height >= windowHeight) {
    windowTop = (screen.height-windowHeight)/2;
  } else {
    windowTop = 0;
  }
  var ret = new Array(windowLeft,windowTop);
  return ret;
}

function popupParam(url,param,name,width,height) {
 var a = window.open(url+'?'+param, name, 'width='+width+',height='+height+',left=0,top=0,status=no,scrollbars=yes,toolbar=no');
}

function setFlashFocus () {
 //document.flashFilm.focus();
 el = document.getElementById('test');
 alert(el.name);
 el.style.setAttribute("visibility","hidden");
}