function winpopup(url,width,height,xPosProzent,yPosProzent,scrollbars) {
	if (window.newwin) {if (!window.newwin.closed) window.newwin.close()}

	if (width      ==null) width      = 500 // (default)
	if (height     ==null) height     = 400 // (default)
	if (xPosProzent==null) xPosProzent=  50 // (default)
	if (yPosProzent==null) yPosProzent=  50 // (default)
	if (scrollbars ==null) scrollbars =   0 // (default)

	//if (width>screen.width) width=screen.width
	//if (height>screen.height) height=screen.height

	var x=(screen.width -width )*xPosProzent/100
	var y=(screen.height-height)*yPosProzent/100
	var paras="resizable=1,scrollbars="+scrollbars+",toolbar=0,menubar=0,location=0,status=0,directories=0,width="+width+",height="+height
	if (document.layers) window.newwin=window.open(url,"Bedandroses",paras+",screenX="+x+",screenY="+y)
	else                 window.newwin=window.open(url,"Bedandroses",paras);window.newwin.moveTo(x,y)
}

function settHeight(elt){
	//IE6
	if(elt==null) elt='textdiv';
	var headerH=195
	var footerH=30
	//alert(elt+'\n'+document.body.clientHeight)


	if (document.all) {
		//alert('height');

		var cH=document.body.clientHeight
		var obj=document.getElementById(elt)
		var maxH=cH-headerH-footerH
		obj.style.height=maxH
	}
}
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.innerWidth;
 else if (document.body && document.body.offsetHeight) return document.body.offsetHeight;
 else return 0;
}
function newHeight(){
 if (Weite != Fensterweite() || Hoehe != Fensterhoehe()) settHeight()
}
function init(){
if(!window.Weite && document.body && document.body.offsetWidth){
   window.onresize = newHeight;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe();
  }
if(!window.Weite && window.innerWidth){
   window.onresize = newHeight;
   Weite = Fensterweite();
   Hoehe = Fensterhoehe();
  }
}
//Keine Statusleiste
function chgStatus(){ window.status='';return true; }
document.onmouseover = chgStatus;

/*function showObj(o){
	if (o==null) alert("null")
	else if (!o) alert("undefined");
	else {var s="";for (var x in o) s+=x+" = "+o[x]+" #|# ";alert(s)}}
*/

