	 function repShow(date, lang, more_word, spectacle_word, cal, day_id, hour_1, txt_1, id_1, spectacle_id_1, hour_2, txt_2, id_2, spectacle_id_2, hour_3, txt_3, id_3, spectacle_id_3, hour_4, txt_4, id_4, spectacle_id_4, hour_5, txt_5, id_5, spectacle_id_5) {
	 var d = document.getElementById('txt');
	 var day = document.getElementById('day_'+day_id);
	if(cal == ' ') {
		cal = 0;
	}  
	if(hour_1 != undefined)
		{
		if(id_1 != ' ') {
			txt_more_1 = '<a href="index.php?action=PageView&id='+id_1+'&ref=Repertory&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+more_word+' &raquo;</a>';
		}
		else {
			txt_more_1 = '';
		}

	if(spectacle_id_1 != ' ') {
			txt_spectacle_1 = '<a href="index.php?action=PageView&id='+spectacle_id_1+'&ref=Spectacles&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+spectacle_word+' &raquo;</a>';
		}
		else {
			txt_spectacle_1 = '';
		}
	}
	else {
		hour_1 = '';
		txt_1 = '';
		txt_more_1 = '';
		txt_spectacle_1 = '';
	}

	if(hour_2 != undefined)
		{
		if(id_2 != ' ') {
			txt_more_2 = '<a href="index.php?action=PageView&id='+id_2+'&ref=Repertory&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+more_word+' &raquo;</a>';
		}
		else {
			txt_more_2 = '';
		}
		if(spectacle_id_2 != ' ') {
			txt_spectacle_2 = '<a href="index.php?action=PageView&id='+spectacle_id_2+'&ref=Spectacles&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+spectacle_word+' &raquo;</a>';
		}
		else {
			txt_spectacle_2 = '';
		}
	}
	else {
		hour_2 = '';
		txt_2 = '';
		txt_more_2 = '';
		txt_spectacle_2 = '';
	}
	
	if(hour_3 !=undefined)
	{
		if(id_3 != ' ') {
			txt_more_3 = '<a href="index.php?action=PageView&id='+id_3+'&ref=Repertory&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+more_word+' &raquo;</a>';
		}
		else {
			txt_more_3 = '';
		}
		if(spectacle_id_3 != ' ') {
			txt_spectacle_3 = '<a href="index.php?action=PageView&id='+spectacle_id_3+'&ref=Spectacles&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+spectacle_word+' &raquo;</a>';
		}
		else {
			txt_spectacle_3 = '';
		}
	}
	else {
		hour_3 = '';
		txt_3 = '';
		txt_more_3 = '';
		txt_spectacle_3 = '';
	}
	
	if(hour_4 !=undefined)
	{
		if(id_4 != ' ') {
			txt_more_4 = '<a href="index.php?action=PageView&id='+id_4+'&ref=Repertory&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+more_word+' &raquo;</a>';
		}
		else {
			txt_more_4 = '';
		}
		if(spectacle_id_4 != ' ') {
			txt_spectacle_4 = '<a href="index.php?action=PageView&id='+spectacle_id_4+'&ref=Spectacles&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+spectacle_word+' &raquo;</a>';
		}
		else {
			txt_spectacle_4 = '';
		}
	}
	else {
		hour_4 = '';
		txt_4 = '';
		txt_more_4 = '';
		txt_spectacle_4 = '';
	}
	
	if(hour_5 !=undefined)
	{
		if(id_5 != ' ') {
			txt_more_5 = '<a href="index.php?action=PageView&id='+id_5+'&ref=Repertory&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+more_word+' &raquo;</a>';
		}
		else {
			txt_more_5 = '';
		}
		if(spectacle_id_5 != ' ') {
			txt_spectacle_5 = '<a href="index.php?action=PageView&id='+spectacle_id_5+'&ref=Spectacles&lang='+lang+'&showRep='+(parseInt(day_id)-1)+'&cal='+cal+'">'+spectacle_word+' &raquo;</a>';
		}
		else {
			txt_spectacle_5 = '';
		}
	}
	else {
		hour_5 = '';
		txt_5 = '';
		txt_more_5 = '';
		txt_spectacle_5 = '';
	}
		
		d.innerHTML = '<h2>'+date+'</h2><p><strong>'+hour_1+'</strong>'+txt_1+' '+txt_more_1+' '+txt_spectacle_1+'</p><p><strong>'+hour_2+'</strong>'+txt_2+' '+txt_more_2+' '+txt_spectacle_2+'</p><p><strong>'+hour_3+'</strong>'+txt_3+' '+txt_more_3+' '+txt_spectacle_3+'</p><p><strong>'+hour_4+'</strong>'+txt_4+' '+txt_more_4+' '+txt_spectacle_4+'</p><p><strong>'+hour_5+'</strong>'+txt_5+' '+txt_more_5+' '+txt_spectacle_5+'</p>';		
	 	d.style.display = 'block';
//		day.style.backgroundColor = 'yellow';	
	}