//<script language=javascript>
/*'---------------------------------------------------------------------------
' Projet           : MokaSofa
' Fichier          : LibFctClient.js
' Version ToolsBox : v2.0.0
' Auteur           : Pascal Girard
' Date             : 2000-12-13,mai 2001
'
' Description      : Fichier contenant les fonctions d'usage general cote client.
'
' (c) 2002 Marcotte Multimédia, Inc. Tous droits reservés.
'---------------------------------------------------------------------------
'---------------------------------------------------------------------------
' Modifié par      : +AUTEURMODIF+
' En date du       : +DATEMODIF+
'
' Modification     : +MODIFICATION+
'-------------------------------------------------------------------------



*********************************************************************************
* Index des fonctions disponibles dans ce fichier (par ordre d'apparition):
* 
* Important:	Pour retrouver rapidement la fonction recherchee, faire une recherche
* 				sur le numero de la fonction + "-" ou par le nom de la fonction.
* _______________________________________________________________________________
* 
* 1- gf_JumpTo()			- Navigue à l'url envoyé
* 2- gf_OpenRegister(sUrl)	- Ouvrir le pop-register
*
***********************************************************************************/

/*1**********************************************************
*Fontion:gf_JumpTo()
*Pascal Girard
*Entrée(s):Url->Url à ouvrir
		   bNewWin->1 si on ouvre dans une nouvelle fenêtre
*
*
*Description:Navigue à l'adresse donné en paramètre
**************************************************************/
function gf_JumpTo(url)
	{
	var MyUrl=url.toString();
	if (MyUrl!='-1')
		{
		var ArrayVal=MyUrl.split(',');
		var bNewWin=ArrayVal[1];
		var MyUrl=ArrayVal[0];
		bNewWin=bNewWin.toString();
		if(bNewWin=='1')
			{
			window.open(MyUrl, 'SubMenuWinHead', 'width=550,height=380,scrollbars=yes,resizable=yes,toolbar=yes,status=yes,location=yes,menubar=yes');
			}
		else
			{
			document.location.href=MyUrl;
			}
		}	
	}
	
function gf_OuvrirFenetre(pAddy,pNom,pParam){
	window.open(pAddy,pNom,pParam);
}	

var gloWindow = null
function OpenGlossaireUrl(url)
	{
		if(gloWindow && !gloWindow.closed){			
			gloWindow.close()
		}
		gloWindow = window.open(url, 'wndglossaire', 'width=450,height=400,scrollbars=yes,resizable')
				            
	}
	
/*2-******************************************************************************
* Fonction:		gf_OpenRegister(sUrl)
* 
* Auteur :		Maxime Demers	23 mai 2003
* Entree(s):	sUrl(string) -> le url de la page pop-register
*				
* 
* Description:	Ouvrir le popup register
*********************************************************************************/
var regiWindow = null;
function gf_OpenRegister(sUrl)
{
	if(regiWindow && !regiWindow.closed)
	{			
		regiWindow.close();
	}
	regiWindow = window.open(sUrl, 'popregister', 'width=385, height=450, scrollbars=yes, resizable=no');
}
function gf_LostFocusField(Obj_Field,str_constante)
	{
	if(Obj_Field.value=='')
		{
		Obj_Field.value=str_constante;
		}
	}
function gf_GetFocusField(Obj_Field,str_constante)
	{	
	if(Obj_Field.value==str_constante)
		{
		Obj_Field.value='';
		}
	}	