/*
******************************* Fonctions générales xx ************************/
   /* confirmation d'action */
   function conf(Text) {
       return confirm("Etes-vous certain de vouloir "+ Text +" cette fiche ?");
       }
   function confic(Text) {
       return confirm("Etes-vous certain de vouloir "+ Text +" ce fichier ?");
       }
   /* test pour un formulaire */
   function Test( Const , Text){
       if (!Const){
           alert("Envoi impossible, "+Text+" ne doit pas être vide");
           return false;
           }
           else {
               return true;
           }
       }
    /* rend ou cache une division */
    function visibilite(id) {
       (id in document.all ? document.all[id].style.display=(document.all[id].style.display !="none" ? "none":"block"):"") ;
       }
    function pm_visibilite(id,boo) {
       document.all[id].style.display=(boo ? "block":"none") ;
       }
    /* change une image */
    function rollover_tjs(nom,src) {
	   document.images[nom].src=src;
       }
    function pm_nomfic(str_path,int_rep) {
        var arr = str_path.split("\\") ;
        var str_ret = "" ;
        for (i=arr.length-1;i>=arr.length-1-int_rep;i--) {
            str_ret = arr[i]+(str_ret!="" ? "/" :"")+str_ret ;
            }
        return str_ret ;
       }
    /* expedie des statistiques */
	function sq_stats( url , site ) {
		doc = document;
		d = new Date();
		res = screen.width+"x"+screen.height;
		c = screen.colorDepth;
		src = url+'?url='+escape(doc.location.pathname+doc.location.search);
		src += '&site='+site+'&res='+res;
        src += '&siteh='+doc.location.hostname+'&c='+c+'&h='+d.getHours()+'&m='+d.getMinutes()+'&s='+d.getSeconds();
        doc.writeln('<img border="0" alt="Stats by phpMyVisites" src="'+src+'&ref='+escape(doc.referrer)+'" />');
       }
//-->

