// ******************************** 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)
	{
		base_href = theBase[0].href+"/";
	}	
	WinPop=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'){	
	var frmPrint = window.frames['frmPrint'];
	  if(document.getElementById('divBody') == '[object HTMLDivElement]'){
		var transfert = document.getElementById('divBody').innerHTML;
  		frmPrint.document.getElementById('divPrint').innerHTML = transfert;
  		frmPrint.focus();
  		frmPrint.print();
	  }else{
	  alert("error");
		//window.print();
	  }
	}else{
	  if(document.getElementById('divBody') == '[object]'){
		var transfert = document.getElementById('divBody').innerHTML;
  		//document.frmPrint.document.getElementById('divPrint').innerHTML = transfert;
  		//frmPrint.document.getElementById('divPrint').innerHTML = transfert;
  		alert(frmPrint.document.firstChild.innerHTML);
  		frmPrint.focus();
  		window.print();
	  }else{
	  alert("error");
		//window.print();
	  }
	}
}