//*****************************************************************************
// AGIIR Network /
// date de création: 04/02 VPN
// version: APV2.1.1
//*****************************************************************************
// Dernière Modification: 01/05/03 MCN
//				29/03/06 FDX
//*****************************************************************************

function supp_file(nom_fichier)
{
elem=document.getElementById(nom_fichier);
elem.value="";

}

function createCookie(name,value)
{
	days=5;
	if (days)
	{
		var date = new Date();
		date.setTime(date.getTime()+(days*24*60*60*1000));
		var expires = "; expires="+date.toGMTString();
	}
	else var expires = "";
	document.cookie = name+"="+value+expires+"; path=/";
}

function readCookie(name)
{
	var nameEQ = name + "=";
	var ca = document.cookie.split(';');
	for(var i=0;i < ca.length;i++)
	{
		var c = ca[i];
		while (c.charAt(0)==' ') c = c.substring(1,c.length);
		if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
	}
	return null;
}

function eraseCookie(name)
{
	createCookie(name,"",-1);
}



function Lancer(act)
{
if (act=="quit.php")  if (!confirm("Souhaitez-vous vraiment quitter l'application ?")) return ;
    with(document.lanceur)
                {
                        action=act;
                        submit();
                }
}

function Lancerspecial(act,categpasse)
{
	if (act=="bve_recherche.php")
	{
	    	with(document.lanceur)
                {
			rubbve.value=document.recherche.trouv.value;
                }
	}
	document.lanceur.modeappel.value=categpasse;
	document.lanceur.pkcateg.value=categpasse;
    	with(document.lanceur)
                {
                        action=act;
                        submit();
                }
}

function Lancerged(act,categpasse)
{
document.lanceur.pkcateg.value=categpasse;
    with(document.lanceur)
                {
                        action=act;
			//method="get";
			document.location="ged.php?login=vvv&password=vvv&pk_orga=9&pkcateg="+categpasse;
                        //submit();
                }
}


function reloadparam()
{
    with(document.lanceur)
                {
                        target="_self";
                }
}
