function getCookieInfo(dataName)
{
     var cookieLen = dataName.length;
     var cookieData = document.cookie;
     var allcookieLen = cookieData.length;

     var i = 0;
     var cookieEnd;

     while(i < allcookieLen)
     {
          var j = i + cookieLen;
          if (cookieData.substring(i,j) == dataName)
          {
               cookieEnd = cookieData.indexOf(";", j);
               if (cookieEnd == -1)
               {
                    cookieEnd = cookieData.length;
               }
              return unescape(cookieData.substring(j+1, cookieEnd))
         }
         i++;
     }
return null
}	

function OuvrirPop(url,nom,largeur,hauteur,options) {
	larg=screen.width/2;
	haut=screen.height/2;
	test=haut-(haut/2)
	ouvpop=window.open(url,nom,"top="+test+",left="+(larg-larg/2)+",width="+largeur+",height="+hauteur+","+options);
}

function showaction(url) {
	$('page_action_iframe').contentWindow.document.body.innerHTML='Chargement en cours...';
	$("page_action").style.visibility = "visible";
// ici, l'iframe prend tout la place disponible, mais il est aussi pssible de definir une largeur et une hauteur finie
	$("page_action_iframe").style.width = "100%";
	$("page_action_iframe").style.height = "100%";
	frames['page_action_iframe'].location.href= url ;
}
	
function hideaction() {
	$("page_action").style.visibility = "hidden";
	$("page_action_iframe").style.width = "1px";
	$("page_action_iframe").style.height = "1px";
}

function xiti(page) {
	Xt_param = 's=353561&p='+page;
	try {Xt_r = top.document.referrer;}
	catch(e) {Xt_r = document.referrer; }
	Xt_h = new Date();
	Xt_i = '<img width="80" height="15" border="0" alt="" ';
	Xt_i += 'src="http://logv145.xiti.com/vcg.xiti?'+Xt_param;
	Xt_i += '&hl='+Xt_h.getHours()+'x'+Xt_h.getMinutes()+'x'+Xt_h.getSeconds();
	if(parseFloat(navigator.appVersion)>=4)
		{Xt_s=screen;Xt_i+='&r='+Xt_s.width+'x'+Xt_s.height+'x'+Xt_s.pixelDepth+'x'+Xt_s.colorDepth;}
	document.write(Xt_i+'&ref='+Xt_r.replace(/[<>"]/g, '').replace(/&/g, '$')+'" title="Internet Audience">');
}
