function updateCounter(Account, Style, TimeOutSeconds) {	var CounterServer='http://www.alphaprojet.com/web/counters/alphaprojet.nsf';	var IncParam='';		// set default timeout	if (TimeOutSeconds=='') TimeOutSeconds=600;	// get current date/time	var now=new Date();	// retrieve existing cookie, if exists	var cookiename='GEPCountLastVisit'+Account;	var index=document.cookie.indexOf(cookiename);	if (index==-1) {		// no cookie present, therefore first visit to page		IncParam='&U';	} else {		// DomCountLastVisit cookie exists, get date/time value		var countbegin=(document.cookie.indexOf("=",index)+1);		var countend=document.cookie.indexOf(";", index);		if (countend == -1) countend = document.cookie.length;		var LastVisit=new Date(document.cookie.substring(countbegin, countend));		// calculate seconds elapsed between last visit and now		// (N.B. if your page will only be used by recent browsers (IE4/5, NS4), you can		// use the Math.round function below for more precision)		var elapsed=Math.round((now-LastVisit)/1000);		if (elapsed<=TimeOutSeconds) {		// user still within same session			IncParam='';		} else {			// create agent parameter to indicate unique visit			IncParam='&U';		}	}	// set SRC for IMG tag (will auto-load as soon as this is set)	document.getElementById(Account).src=CounterServer+"/WebCounter?OpenAgent&S="+Style+"&X="+Account+"&V"+IncParam;		// set LastVisit cookie value (after above tests and image loading)	document.cookie=cookiename+"="+now;}