var win = null;
function newWindow(mypage,myname,w,h,features) {
  var winl = (screen.width-w)/2-10;
/* var winl = (screen.width-w)/2+95;*/
  var wint = (screen.height-h)/3;
  if (winl < 0) winl = 0;
  if (wint < 0) wint = 0;
  var settings = 'height=' + h + ',';
  settings += 'width=' + w + ',';
  settings += 'top=' + wint + ',';
  settings += 'left=' + winl + ',';
  settings += features;
  win = window.open(mypage,myname,settings);
  win.window.focus();
}


/*function pos200() { 
window.scrollTo(0,200) 
}*/

/* cure for ultrabug in textselecting in ie6/aol-browser */
if (window.createPopup && document.compatMode && document.compatMode=="CSS1Compat")
{
  document.onreadystatechange = onresize = function fixIE6AbsPos()
  {
    if (!document.body) return;
    if (document.body.style.margin != "0px") document.body.style.margin = 0;
    onresize = null;
    document.body.style.height = 0;
    setTimeout(function(){ document.body.style.height = document.documentElement.scrollHeight+'px'; }, 1);
    setTimeout(function(){ onresize = fixIE6AbsPos; }, 100);
  }
}

/*
function blurAnchors() {  
if(document.getElementsByTagName) {    
	var a = document.getElementsByTagName("a"); 
		for(var i = 0; i < a.length; i++) { 
			a[i].onfocus = function(){
				this.blur()
			}; 
		} 
	}
}
window.onload = blurAnchors;
*/



function ShowHide(id, display) {
    obj = document.getElementsByTagName("div");
    obj[id].style.display = display;
}

function ShowBild(id, display) {
    obj = document.getElementsByTagName("div");
    obj[id].style.display = display;

}


/*
function ShowHide(id, visibility) {
    obj = document.getElementsByTagName("div");
    obj[id].style.visibility = visibility;
}
*/