var popup;
function popup(url,name,large,haut) {
  features='width='+large+',height='+haut+',toolbar=no,location=no,status=no,menubar=no,scrollbars=no,resizable=no';
  	if(window.screen){
		var left = (screen.width-large)/2;
		var top = (screen.height-haut)/2;
		features+=',left='+left+',top='+top;
	}
  popup = window.open(url,name,features);
}
function popup_scroll(url,name,large,haut) {
  features='width='+large+',height='+haut+',toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
  	if(window.screen){
		var left = (screen.width-large)/2;
		var top = (screen.height-haut)/2;
		features+=',left='+left+',top='+top;
	}
  popup = window.open(url,name,features);
}
//function fullscreen(url,name,large,haut) {
// features='toolbar=no,location=no, menubar=no,scrollbars=no,resizable=yes,width='+screen.width+',height='+screen.height;
//  features+=',left=0,top=0';
//  popup = window.open(url,name,features);
//  popup.moveTo(0,0) ;
//}
function fullscreen (url,name,large,haut) {
	var largeur = screen.width-10
	var hauteur = screen.height-55
	date_t = new Date;
	time = date_t.getTime();
	winprops = 'height='+hauteur+',width='+largeur+',top=0,left=0,scrollbars=0,status=0,resizable'
	win = window.open(url, time, winprops)
	} 

window.moveTo(0,0);
if (document.all) 
{
window.resizeTo(screen.availWidth,screen.availHeight);
}
else if (document.layers) 
{
if (window.outerHeight<screen.availHeight||window.outerWidth<screen.availWidth)
{
window.outerHeight = screen.availHeight;
window.outerWidth = screen.availWidth;
}
}
