var origWidth, origHeight; // reload if windows resized
if (document.layers) {
  origWidth = window.innerWidth;
  origHeight = window.innerHeight;
  onresize = function() { if(innerWidth != origWidth || innerHeight != origHeight) location.reload(); }
}else if (document.all) onresize = function() {window.location.reload();}

function wclose() {
  window.opener = top;
  window.close();
}

function poptxt(wname,wspec){
var wname;
var wspec;
var theight = 480;
var twidth = 390;
// var theTop=(screen.height/2)-(theight/2);
var theTop=70;
var theLeft=(screen.width/2)-(twidth/2);
window.open(wname+'.htm','EID','height='+theight+',width='+twidth+',top='+theTop+',left='+theLeft+',resizable=yes,scrollbars=yes,dependent=yes');
return false;
if (parseInt(navigator.appVersion) >= 4) { Win.window.focus(); } else {window.focus();}
}

function printPage(){
   if(window.print) window.print();
   else{if (agt.indexOf("mac") != -1) printIt();
   alert("Um diese Seite zu auszudrucken, drücken Sie gleichzeitig die Tasten 'Command' und 'P' bzw. 'Strg' und 'P'.\r\n\r\nPour imprimer cette page ŕ partir d'un PC, appuyez simultanément sur les touches <CTRL> et <P> de votre clavier.\r\n\r\nTo print this page press Command-P on your keyboard.\r\n");
	}
}


function LayerOnOff(eidDivID, eidShow){ // 1 visible, 0 hidden
if(document.layers){	   //NN4+
		document.layers[eidDivID].visibility = eidShow ? "show" : "hide";
}
    else if(document.getElementById){	  //gecko(NN6) + IE 5+
     var obj = document.getElementById(eidDivID);
     obj.style.visibility = eidShow ? "visible" : "hidden";
	}
    else if(document.all){	// IE 4
     document.all[eidDivID].style.visibility = eidShow ? "visible" : "hidden";
	}
}


