/*'---------------------------------------------------------------------------
' 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é
*
***********************************************************************************/

/*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
**************************************************************/
var chvWindow = null
function CorpsHumain()
	{
		if(chvWindow && !chvWindow.closed){			
			gloWindow.close()
		}
		chvWindow = window.open('<%=NbRep%>Sante/CorpsHumain/illustration.asp', 'chvglossaire', 'width=720,height=750,scrollbars=yes,resizable,status=yes,menubar=no,toolbar=no')
				            
	}	


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=550,height=400,scrollbars=yes,resizable,menubar=yes,toolbar=yes')
				            
	}
	
var gloWindow = null
function Glossaire(id)
	{
		if(gloWindow && !gloWindow.closed){			
			gloWindow.close()
		}
		gloWindow = window.open('../Aujourdhui/DetailGlossaire.asp?IdSection='+id+'&bApercu=1', 'wndglossaire', 'width=550,height=400,scrollbars=yes,resizable,menubar=yes,toolbar=yes')
				            
	}	
	
var CRWindow = null
function CopyRight(id)
	{
		if(CRWindow && !CRWindow.closed){			
			CRWindow.close()
		}
		CRWindow = window.open('../Aujourdhui/DetailGlossaire.asp?IdSection='+id+'&bApercu=1', 'CRWindow', 'width=450,height=450,scrollbars=no,resizable=no,menubar=no,toolbar=no')
				            
	}		
	
function gf_LinkNews(idnews, bnewwindow, iChannel)
{
	if(bnewwindow)
	{
		window.open('RedirectNews.asp?idnews=' + idnews + '&idchannel=' + iChannel + '', 'NewWindow', 'width=700,height=400,status,scrollbars,resizable,location,toolbar,menubar')
	}
	else
	{
		window.location.href='RedirectNews.asp?idnews=' + idnews + '&idchannel=' + iChannel + ''
	}
} 

function gf_LinkMenu(idmenu, bnewwindow, iChannel)
{
	if(bnewwindow)
	{
		window.open('DetailMenu.asp?idmenu=' + idmenu + '&idchannel=' + iChannel + '', 'NewWindow', 'width=700,height=400,status,scrollbars,resizable,location,toolbar,menubar')
	}
	else
	{
		window.location.href='DetailMenu.asp?idmenu=' + idmenu + '&idchannel=' + iChannel + ''
	}
} 

function gf_LinkNewsAll(idnews, bnewwindow, iChannel)
{
	if(bnewwindow)
	{
		window.open('RedirectNewsAll.asp?idnews=' + idnews + '&idchannel=' + iChannel + '', 'NewWindow', 'width=700,height=400,status,scrollbars,resizable,location,toolbar,menubar')
	}
	else
	{
		window.location.href='RedirectNews.asp?idnews=' + idnews + '&idchannel=' + iChannel + ''
	}
} 

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='';
		}
	}	
