// JavaScript Document
function Fensterweite()
{
 if (window.innerWidth) return window.innerWidth;
 else if (document.body && document.body.offsetWidth) return document.body.offsetWidth;
 else return 0;
}

function Fensterhoehe()
{
 if (window.innerHeight) return window.innerHeight;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}


function neuAufbau()
{
 if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
 window.history.go(0);
}

/*Überwachung von Netscape initialisieren*/
if(!window.Weite && window.innerWidth)
  {
   window.onresize = neuAufbau;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe();
  }


function content_up(){
alert(document.getElementById("content_overflow").innerHTML);
}
function content_down(){
}


function contentpopup(title,content,width,height,typ)
{
var w_style, pop_up, width, height, left, top, content, title, done;

if(typ==2){
width=width+30;
height=height+70;
}

left = (screen.width/2) - width/2;
top = (screen.height/2) - height/2;

done = "Schlie&szlig;en";
w_style="left="+left+",top="+top+",screenX="+left+",screenY="+top+",width="+width+",height="+height+",menubar=no,toolbar=no";
content_str=content;

pop_up=window.open("","",w_style);
pop_up.focus();
pop_up.document.open();
with (pop_up) {
  document.write('<html><head>');
   if(typ==1){
  document.write("<script type='text/javascript' language='JavaScript'>");
  document.write("function click() { window.close(); } ");
  document.write("document.onclick=click ");
  document.write("</script>"); 
  }
  document.write('<title>'+ title +'</title></head>');
  if(typ==1){
  document.write('<' + 'body onblur="self.close()" ');
  document.write('bottommargin="0" topmargin="0" leftmargin="0" rightmargin="0" marginheight="0" marginwidth="0">');
  }
  if(typ==2){
  document.write('<body ');
  document.write('bottommargin="10" topmargin="15" leftmargin="10" rightmargin="10" marginheight="15" marginwidth="10"><center>');
  }
  document.write(''+content_str+'');
  if(typ==2){
  document.write('<br><p><form><input type="button" value='+done+' onClick="self.close()"></form></p></center>');
  }
  document.write('</body></html>');
  if(typ==1)
  pop_up.document.close();
}
}
