// ID Sert a mettre un ID unique dans l'url qui force le rechargement de la page
// car j'ai constate des bugs...
function Imprime(ID) 
{
	var listA=document.URL.split("#");
	var NewURL=listA[0]+"?print="+ID;
	//alert('impression:'+NewURL);
	window.open(NewURL,"ToPrint","toolbar=no,status=no,menubar=no,width=400,height=600")
}
function ImprimePage() 
{
	window.print();
	window.close();
}

function MM_displayStatusMsg(msgStr) { //v1.0
  status=msgStr;
  document.MM_returnValue = true;
}

/*function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}*/
function CheckPlugin(plgIn) { //v4.0
  var ok=false; 
  document.MM_returnValue = false;
  with (navigator) 
  	if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) 
	{
    	ok=(plugins && plugins[plgIn]);
  	} 
	else if (appVersion.indexOf('3.1')==-1) 
	{ //not Netscape or Win3.1
    	if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash;
    	else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir;
    		  else ok=autoGo; 
	}
	return ok;
}
/*with (navigator) if (appName.indexOf('Microsoft')!=-1 && appVersion.indexOf('Mac')==-1) document.write(''+
'<scr'+'ipt language="VBScript">\nOn error resume next\n'+
'MM_dir = IsObject(CreateObject("SWCtl.SWCtl.1"))\n'+
'MM_flash = NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash"))\n</scr'+'ipt>');
MM_reloadPage(true);*/

