function popup(url, name, width,height,center,
					resize,scroll,posleft,postop) {
					
      if (posleft != 0) 
			{ x = posleft }
      if (postop != 0) 
			{ y = postop }
      if (!scroll) 
			{ scroll = 1 }
      if (!resize) 
			{ resize = 1 }
      if ((parseInt (navigator.appVersion) >= 4 ) && (center)) {
             X = (screen.width - width ) / 2 ;
             Y = (screen.height - height) / 2;
      }
      if (scroll != 0) { scroll = 1 }
      var Win = window.open( url, name,
			'width='+width+',height='+height+',top='+Y+',left='+X
			+',resizable='+resize+',scrollbars='+scroll
			+',location=no,directories=no,status=no,menubar=no,toolbar=no');
		return false;
}


function popup2(bildurl,b,h)
{
var eigenschaften,sbreite,shoehe,fenster,b,h;

var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
}

x = (sbreite-b)/2;
y = (shoehe-h)/2;

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no,statusbar=0";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write("<html><head>");
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  document.write("function click() { window.close(); } ");
  document.write('</scr' + 'ipt>');
  document.write("<title>klick to close</title></head>");
	// include onblur if you want the window be closed on klick elsewhere
  document.write("<" + "body ");// onblur='window.close()';"); 
  document.write("marginwidth='0' marginheight='0' leftmargin='0' topmargin='0'>");
  document.write("<center>");
  document.write("<img onclick=\" window.close();\" src='"+ bildurl +"' border='0'>");
	document.write("<br /><span onclick=\" window.close();\" style=\"background:#d8d8d8;font:13px sans-serif;\">Schlie&szlig;en</span>");
  document.write("</center>");
  document.write("</body></html>");	
}
fenster.document.close();
return false;
}

function popUpDocument(url) {
	var eigenschaft,sbreite,shoehe,fenster02;
	
	var ns6=(!document.all && document.getElementById);
	var ie4=(document.all);
	var ns4=(document.layers);
	
	if(ns6||ns4)
	{
	sbreite = innerWidth;
	shoehe = innerHeight;
	} else if(ie4)
		 {
		 sbreite = document.body.clientWidth;
		 shoehe = document.body.clientHeight;
		 }
	
	fensterbreite=1000; //fensterbreite=outerWidth; um Fenster in voller Breite zu öffnen
	shoehe=shoehe+700;
	x=(sbreite-fensterbreite);
	
	popUp=window.open(url, 'KBT MEIS GmbH', 'toolbar=no, location=no, directories=no, status=no, menubar=no, scrollbars=yes, resizable=yes, width='+fensterbreite+', height='+shoehe+', left='+x+', top=0');
	return false;
};


