// ******************************** POPUP **************************************
function synchrone_popup(url,winname,width,height,scrollbars) 
{
	var toolbar=0;
	var location=0;
	var directories=0;
	var status=0;
	var resizable=0;
	var copy=0;
	var menubar=0;
	var ScreenWidth=window.screen.width;
	var ScreenHeight=window.screen.height;
	var movefromedge=0;
	   
		placementx=(ScreenWidth/2)-((width)/2);
		placementy=(ScreenHeight/2)-((height)/2);

	var base_href = "";
	var theBase = document.getElementsByTagName("base");

	if (theBase[0] != undefined && url.substr(0, 4).toLowerCase() != "http")
	{
		base_href = theBase[0].href+"/";
	}	
	return window.open(base_href+url,"","width="+width+",height="+height+",toolbar="+toolbar+",location="+location+",directories="+directories+",status="+status+",scrollbars="+scrollbars+",menubar="+menubar+",resizable="+resizable+",left="+placementx+",top="+placementy+",screenX="+placementx+",screenY="+placementy+",");
}

function printStatic()
{
	var browserName = navigator.appName;
	var objectName;

	if(browserName == 'Netscape'){
	  if(document.getElementById('divBody') == '[object HTMLDivElement]'){
		var transfert = document.getElementById('divBody').innerHTML;
  		frmPrint.document.getElementById('divPrint').innerHTML = transfert;
  		frmPrint.focus();
  		frmPrint.print();
	  }else{
		window.print();
	  }
	}else{
	  if(document.getElementById('divBody') == '[object]'){
		var transfert = document.getElementById('divBody').innerHTML;
  		document.frmPrint.document.getElementById('divPrint').innerHTML = transfert;
  		document.frmPrint.focus();
  		window.print();
	  }else{
		window.print();
	  }
	}
}