function showBox() 
{ 

      var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;

      var layer = document.createElement('div');
      layer.style.zIndex = 2;
      layer.id = 'layer';
      layer.style.position = 'absolute';
      layer.style.top = '0px';
      layer.style.left = '0px';
      layer.style.height = document.documentElement.clientHeight + 'px';
      layer.style.width = width + 'px';
      layer.style.backgroundColor = 'black';
      layer.style.opacity = '.6';
      layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");
      document.body.appendChild(layer); 

}

function MM2_confirm(msg) {  
      var width = document.documentElement.clientWidth + document.documentElement.scrollLeft;
      var layer = document.createElement('div');
      layer.style.zIndex = 2;
      layer.id = 'layer';
      layer.style.position = 'absolute';
      layer.style.top = '0px';
      layer.style.left = '0px';
      layer.style.height = document.documentElement.clientHeight + 'px';
      layer.style.width = width + 'px';
      layer.style.backgroundColor = 'black';
      layer.style.opacity = '.6';
      layer.style.filter += ("progid:DXImageTransform.Microsoft.Alpha(opacity=60)");
      document.body.appendChild(layer); 
      
      var div = document.createElement('div');
      div.style.zIndex 		= 3;
      div.id 							= 'div';
      div.style.position 	= 'absolute';
      div.style.overflow 	= 'auto';
      div.style.width 		= '300px';
      div.style.height 		= 'auto';
      div.style.top 			= '35%';
      div.style.left 			= '50%';
      div.style.right 		= '0';
      div.style.border 		= '2px solid #000';
      div.style.textDecoration = 'none';
      div.style.textAlign = 'left';
      div.style.padding		= '15px';
      div.style.marginLeft = '-125px';
      div.style.marginTop	= '-70px';
      div.style.backgroundColor = 'white';
      div.innerHTML = msg;
      document.body.appendChild(div);   
}

function showMe (it, box) {
var vis = (box.checked) ? "block" : "none";
document.getElementById(it).style.display = vis;
}

function showPop(id) {
   document.getElementById(id).style.visibility = 'visible';
}

function hidePop(id) {
   document.getElementById(id).style.visibility = 'hidden';
}

function FensterOeffnen(adresse) {
  Fenster1 = window.open(adresse, 'drucken','width=800,height=700,top=150,left=100,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,resizable=0');
  Fenster1.focus();
}
function MM_confirm(msg, url) { //v1.0
  if(confirm(msg)) location.replace(url);
}

function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

function anzeigen(text) {
 if (document.getElementById(text).style.display=='none') {
  document.getElementById(text).style.display='block';
 }
 else {
  document.getElementById(text).style.display='none';
 }
}
