function resizeW(value)
{
	window.outerHeight = value;
}


function resizeH(value)
{
	window.outerHeight = value;
}


function winOpen(seite,w,h){
	if(w == null){
		w = 800;
	}
	if(h == null){
		h = 600
	}
    popup = window.open(seite,"popup","toolbar=0,location=0,menubar=0,status=0,resizable=0,width=" + w + ",height=" + h +"");
    popup.focus();
  }


function maximize()
{
	replace(0,0);
	if (document.getElementById || document.all) 
  	{
  		window.resizeTo(screen.availWidth, screen.availHeight);
  	} else if(document.layers){
		 if (window.outerHeight<screen.availHeight || window.outerWidth<screen.availWidth)
    	{
    		resizeH(screen.availHeight);
    		resizeW(screen.availWidth);
		}else{
			alert('Impossible de maximiser la fenêtre!');
    	}
	}else{
		alert('Impossible de maximiser la fenêtre!');
	}
}


function replace(x,y)
{
	window.moveTo(x,y);
}


function setDocumentHeight(value)
{
	document.getElementById('flashcontent').style.height = value + 'px';
}


