function UpdateListShow(){
	if ( $('form_chaine') ){
		if ( document.form_chaine.tv.selectedIndex != 0 ){
			Center('indicator');
			$('indicator').show();
			new Ajax.Updater( 'list_play', 
				'mod-podcast/ajax/podcast.php', 
				{
					onComplete: hideIndicator,
					method:"post",
					encoding:'ISO 8859-1',
					evalScripts:true,
					parameters:$('form_chaine').serialize(true) 
				} 
			);	
		}
	}
}

function AddTvShow( id ){
	new Ajax.Updater( 'mytvshows', 
		'mod-podcast/ajax/addtvshow.php', 
		{
			method:"post", 
			encoding:'ISO 8859-1',
			evalScripts:true,
			parameters:'tvshow='+id 
		} 
	);	
}

function DeleteStreamTV( id ){
	var vHtmlElt = 'SETV_'+id ;	
	ShowIndicator();
	$('buttonclosing').hide();
	new Ajax.Updater( '_INFODIV',
						   'mod-system/ajax/deleteselection.php', { 
								onComplete:HideIndicator, 
								method: "post", 
								evalScripts:true,
								parameters:{playlist:'PODCAST', HtmlElt:vHtmlElt, todelete:id}
								}
						  );		
}	

function EffaceOption(id){
	if ( $('form_chaine') ){
		for(i=0; i<document.form_chaine.tv.length; i++)
			if(document.form_chaine.tv.options[i].value == id){
				document.form_chaine.tv.options[i] = null;
				break;
			}
		document.form_chaine.tv.options[0].selected = true ;	
	}
}
function AddOption( id, txt ){
	if ( $('form_chaine') ){
		nouvel_element = new Option(txt,id,false,false);
		document.form_chaine.tv.options[document.form_chaine.tv.length] = nouvel_element;	
	}
	else
	{
		if ( $('POD'+id) )
			new Effect.Appear('POD'+id) ;
	}
}



