/*****************************************************************************
 * JavaScript de BlancClassic                                                *
 *****************************************************************************/

/***********************************************************************
 * Sélection d'un onglet                                               *
 ***********************************************************************/

function gdSelect(pPartie)
{
wString = "index.php";
document.location.replace(wString);
var wString;
if (pPartie != 0)
  {
  wString = "index.php?Partie=" + pPartie;
  document.location.replace(wString);
  }
}

/***********************************************************************
 * Change l'image du menu                                              *
 ***********************************************************************/

function PictureMenu(pPicture, pNom, pNum)
{
var wImage, wName;

wImage = "Pages/Images/Onglets/" + pNom + pPicture + ".gif";
wName = "Pic" + pNum;
document.images[wName].src = wImage;
}

/***********************************************************************
 * Ouverture de la page de l'envoi du mail                             *
 ***********************************************************************/

function OpenPopMail(pNum)
{
var wCells, wString, wState, wWidth, wLeft, wTop, wHeight;
var gView = null

wString = "Pages/gomail.php?num=" + pNum;
wWidth = 400;
wHeight = 300;
wLeft = (screen.width - wWidth) / 2;
wTop = (screen.height - wHeight) / 2;
wState  = "toolbar=no, location=no, directories=no, status=no, scrollbars=yes, ";
wState += "resizable=yes, copyhistory=no, width=" + wWidth;
wState += ", height=" + wHeight + ", left=" + wLeft + ", top=" + wTop;
gView = window.open(wString, "Popup", wState);
}

/***********************************************************************
 * Change l'image des pages                                            *
 ***********************************************************************/

function PictureNext(pNom, pPicture)
{
var wImage, wName;

wImage = "Pages/Parties/Images/Page" + pNom + pPicture + ".gif";
wName = "Pic" + pNom;
document.images[wName].src = wImage;
}

/***********************************************************************
 * Sélection d'un onglet                                               *
 ***********************************************************************/

function SelectPage(pPartie, pPage)
{
var wString;

wString = "index.php?Partie=" + pPartie + "&page=" + pPage;
document.location.replace(wString);
}
