function AffWebTv(id, DatePubli){
		var charset = '';
		var fichierTraitement = "/homepage2009/add_on/fction/WebTv.asp";	
		
			if(window.XMLHttpRequest){ // Firefox ou Opéra
				xhr_object = new XMLHttpRequest();
			}else if(window.ActiveXObject){ // Internet Explorer
				xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
			}else { // XMLHttpRequest non supporté par le navigateur
				alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
				return;
			}
			//traitement différent en fonction du charset
			if(document.characterSet)charset = document.characterSet.toLowerCase();
			if(document.charset)charset = document.charset.toLowerCase();
	
			var method = "POST";var url = "";
			var data = 'id='+id;
			
			if(method == "POST"){
				url = fichierTraitement;
			}
			else
			{
				url = fichierTraitement + "?" + data;
				data = null; //pas besoin d'envoyer de data si on est en get
			}
			document.getElementById('playerwebtv').style.height=document.getElementById('playerwebtv').clientHeight+'px'; //evite le clignotement
			xhr_object.open(method, url, true); 
			xhr_object.onreadystatechange = function() {
				
				switch (xhr_object.readyState){
					case 1:
						document.getElementById('playerwebtv').innerHTML = '<img src="/finc/observatoire/marche/Carte/charge.gif"/>';
					break;
					case 4:
						var reponse = xhr_object.responseText;
						reponse = reponse.replace(/<!--.*-->/,'');
					
						document.getElementById('playerwebtv').innerHTML = reponse;
						//le titre du bloc
						document.getElementById('tnwebtvvideotitredroite').innerHTML = 'Publi&eacute; le '+DatePubli;
						
						//pour mettre les bonnes marges au bloc TNO
						limite3seccount=0;
						limite3sec=setInterval(function(){
							MarginBlocTNO();
							if(++limite3seccount==6){
								clearInterval(limite3sec);
								limite3sec=0;
							}
						},500);
					document.getElementById('playerwebtv').style.height='auto'; //evite le clignotement
					break;
				}  
			}
			xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xhr_object.send(data); //data pour le POST ; null pour le GET	
}


function AffPlaylistTNWTV(idBlock,idBlockTitle,params,title){
	if(window.XMLHttpRequest){ //les gens normaux
		xhr_object = new XMLHttpRequest();
	}else if(window.ActiveXObject){ //ie
		xhr_object = new ActiveXObject("Microsoft.XMLHTTP");
	}else { // AJAX non supporté par le navigateur
		alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest...");
		return;
	}
	document.getElementById(idBlock).style.height=document.getElementById(idBlock).clientHeight+'px'; //evite le clignotement
	xhr_object.open("GET", "/finc/player_flv/new_player/?writeinner="+idBlock+"&"+params, true); 
	xhr_object.onreadystatechange = function() {
		
		switch (xhr_object.readyState)
		{
			case 1:
				document.getElementById(idBlock).innerHTML = '<img src="/finc/observatoire/marche/Carte/charge.gif"/>';
			break;
			case 4:
				//window. pour forcer le eval au niveau global et non pas local a cette fonction
				if(window.execScript){ //ie
					window.execScript(xhr_object.responseText);
				}else{ //les gens normaux
					window.eval(xhr_object.responseText);
				}
				//le titre du bloc
				document.getElementById(idBlockTitle).innerHTML=title;
				//pour mettre les bonnes marges au bloc TNO
				limite3seccount=0;
				limite3sec=setInterval(function(){
					MarginBlocTNO();
					if(++limite3seccount==6){
						clearInterval(limite3sec);
						limite3sec=0;
					}
				},500);
				document.getElementById(idBlock).style.height='auto'; //evite le clignotement
			break;
		}  
	}
	xhr_object.setRequestHeader('Content-type', 'application/x-www-form-urlencoded; charset=iso-8859-1');
	xhr_object.send(null); //data pour le POST ; null pour le GET	
}

function AffPlaylistTNWTViframe(idBlock,idBlockTitle,params,title){
	//le contenu du bloc
	document.getElementById(idBlock).innerHTML='<iframe scrolling="no" frameborder="0" width="375" height="291" src="/finc/player_flv/new_player/visu.asp?writeinner=bodyid&'+params+'"></iframe>'
	//le titre du bloc
	document.getElementById(idBlockTitle).innerHTML=title;
	//pour mettre les bonnes marges au bloc TNO
	limite3seccount=0;
	limite3sec=setInterval(function(){
		MarginBlocTNO();
		if(++limite3seccount==6){
			clearInterval(limite3sec);
			limite3sec=0;
		}
	},500);
	document.getElementById(idBlock).style.height='auto'; //evite le clignotement
}
