// <!--
// *********************************************************
// Copyright ARTOTAL
// Fichier services/js_services.js
// Création :    CL 08/02/2001
// Mise à jour : CL 30/01/2007 (transfert sur artotal.com)
// *********************************************************
//

// Déclaration de variables pour "stat_acces"
var typetag ="";
var nomtag ="";


// Déclaration de variables pour "intraframe"
var urlframe ="";


// Fonction de trace statistiques accès
function stat_acces(typetag, nomtag)
	{
	var date_courante = new Date();

	// Modif CL 020112 
	// Prise en compte chiffre au hazard pour gestion multi-process
	// - suite pb nb limité sessions simultanées par process -
	var s = "a" + Math.random();
	i = s.length;

//  Modif CL 30/01/2007
//  document.write('<IMG SRC="http://www.artotal-club.com/stat/stat_prg/stat_enr_acces' + s.substring(i-1,i) + '.cgi?TYPETAG=' + typetag + '&NOMTAG=' + nomtag + '&FRAMETAG=' + top.location + '&DATETAG=' + date_courante.getHours() + 'D' + date_courante.getMinutes() + 'D' + date_courante.getSeconds() + '" WIDTH=1 HEIGTH=1 BORDER=0>');
	document.write('<IMG SRC="http://www.artotal.com/stat/stat_prg/stat_enr_acces' + s.substring(i-1,i) + '.cgi?TYPETAG=' + typetag + '&NOMTAG=' + nomtag + '&FRAMETAG=' + top.location + '&DATETAG=' + date_courante.getHours() + 'D' + date_courante.getMinutes() + 'D' + date_courante.getSeconds() + '" WIDTH=1 HEIGTH=1 BORDER=0>');

	return;
	}

// Contrôle de la frame supérieure et affichage page défaut le cas échéant
function intraframe(urlframe) 
	{
	if (top == self) 
		{
        	self.location.href = urlframe;
        	}
   	}


// -->
