function CacheSubMnu(pinNumSubDiv)
{
 document.getElementById("DivSousMenu"+pinNumSubDiv).style.visibility='hidden';
 document.getElementById('DivChargement').style.visibility='visible';
}

function PrintCmd(pinPaiementEchelon)
{
 if (pinPaiementEchelon>0)
 {
 if (document.getElementById('RadButtChk').checked==true)
 {window.open("VisuPrint.php?Param=1","Exemple","top=0,left=0,width=700,height=700,menubar=no,scrollbars=yes,resizable=yes,statusbar=no,toolbar=no,location=no");}
//  {window.open('VisuPrint.php?Param=1','Exemple,top=0,left=0,width=250,height=500,menubar=no,scrollbars=yes,resizable=yes,statusbar=no,toolbar=no,location=no');}
// {window.open('VisuPrint.php?Param=1','');}

 if (document.getElementById('RadButtVrt').checked==true)
 {window.open("VisuPrint.php?Param=2","Exemple","top=0,left=0,width=700,height=700,menubar=no,scrollbars=yes,resizable=yes,statusbar=no,toolbar=no,location=no");}
// {window.open('VisuPrint.php?Param=2','');}


 if (document.getElementById('RadButtPal').checked==true)
 {window.open("VisuPrint.php?Param=3","Exemple","top=0,left=0,width=700,height=700,menubar=no,scrollbars=yes,resizable=yes,statusbar=no,toolbar=no,location=no");}
// {window.open('VisuPrint.php?Param=3','');}
 }
 else
 {window.open("VisuPrint.php?Param=1","Exemple","top=0,left=0,width=700,height=700,menubar=no,scrollbars=yes,resizable=yes,statusbar=no,toolbar=no,location=no");}
}

function EnCaractereGras(pinStrId)
{
document.getElementById(pinStrId).style.fontWeight="bold";
}

function EnCaractereNormal(pinStrId)
{
document.getElementById(pinStrId).style.fontWeight="normal";
}

function MouseOverDetailSubMnu(pinStrIDd,pinObject) //,pinStrChar)
{
  pinObject.style.cursor='hand';
}

function FctCacheSousMenu(pinStrDivSousMenu,pinStrSubMnu)
{
 document.getElementById(pinStrDivSousMenu).style.visibility='hidden';
}

function FctVisibleSousMenu(pinStrDivSousMenu)
{
 document.getElementById(pinStrDivSousMenu).style.visibility='visible';
}

function MouseOver(pinStrID,pinStrChar,pinIntDecalageY,pinObject,pinStrSubMnu,pinStrPosYFleche,pinIntNbreMaxMnu) //,pinObject) MousOve(,,this)
{
var NbBt;
var PosYsouri;

EnCaractereGras("TD_M_P"+pinStrID);

 for(NbBt=1;NbBt<=pinIntNbreMaxMnu;NbBt++)
 {
  document.getElementById("DivSousMenu"+NbBt).style.visibility='hidden';
 }
 document.getElementById(pinStrChar).style.top = 75+pinIntDecalageY;
 document.getElementById(pinStrChar).style.visibility='visible';

 pinObject.style.cursor='hand';
}

function MouseOutTblMenu(pinIntNbreMaxMnu)
{
var NbBt=1;
  for(NbBt=1;NbBt<=pinIntNbreMaxMnu;NbBt++)
  {
   document.getElementById("DivSousMenu"+NbBt).style.visibility='hidden';
   EnCaractereNormal("TD_M_P"+NbBt);
  }
}

function PosSourie()
{
MousePosX = (navigator.appName.substring(0,3) == "Net") ? e.pageX : event.x+document.body.scrollLeft;
MousePosY = (navigator.appName.substring(0,3) == "Net") ? e.pageY : event.y+document.body.scrollTop;
}

