/*
<~> 
<~> fonctions_modules.js - Page de fonction en Javascript 
<~>
<~>  Par Sacha Vincent / Programmeur analyste
<~>
<~>  RÉVISIONS
<~>  2007/02/20 --> Création
<~>
<~> 
*/       

//-------------------------------------------------------------------------------------
//trouve la référence pour l'objet document
//-------------------------------------------------------------------------------------
function GetReference(id)
{
	if(document.layers) return document.layers[id];
	if(document.all && !document.getElementById) return document.all[id];
	if(document.all && document.getElementById) return document.getElementById(id);
	if(!document.all && document.getElementById) return document.getElementById(id);
	return false;
}

//---------------------------------------------------------------------
//Ouvrir une fenêtre pour impression
//---------------------------------------------------------------------
function Impression(iNomPage, iTitre, iWidth, iHeight)
{
    OuvrirFenetre(iNomPage, iTitre, iWidth, iHeight)	
} 

//---------------------------------------------------------------------
//Ouvrir une fenêtre pour Visualisation
//---------------------------------------------------------------------
function Visualisation(iNomPage, iTitre, iWidth, iHeight)
{
    OuvrirFenetre(iNomPage, iTitre, iWidth, iHeight)	
} 

//---------------------------------------------------------------------
//Ouvrir une fenêtre pour visualiser un image
//---------------------------------------------------------------------
function ShowImage(iNomPage, iTitre, iWidth, iHeight)
{
    OuvrirFenetre(iNomPage, iTitre, iWidth, iHeight)	
}


//---------------------------------------------------------------------
//Ouvrir une fenêtre
//---------------------------------------------------------------------
function OuvrirFenetre(iNomPage, iTitre, iWidth, iHeight)
{
	fenetre = window.open(iNomPage, iTitre, "top=0, left=0, width=" + iWidth + ", height=" + iHeight + ", scrollbars=yes, location=no, toolbar=no, menubar=no");
	fenetre.focus()
}
       

