// JavaScript Document
//<script language="javascript">
function ChangeColor(ident, backgrd, texte) {
document.getElementById(ident).style.backgroundColor = backgrd;
document.getElementById(ident).style.color = texte;
}
function cache_table (tableau) {
  	document.getElementById(tableau).style.display = "none"; 
}
function affiche_table (tableau,tranche) {
	ancien = document.form1.reserve.value;
	t_ancien = document.form1.T.value;	
//	document.getElementById(T1).style.background-Color="";
//	document.getElementById(T1).bgcolor="";
    ChangeColor(t_ancien, '#990000', 'white');
    ChangeColor(tranche, '#3333CC', 'white');	
    document.getElementById(ancien).style.display = "none"; 
	document.getElementById(tableau).style.display = "block";
	document.form1.reserve.value=tableau;
	document.form1.T.value = tranche;
}
//<script>t=document.truc.essai.value</script>}
//<script>document.truc.essai.value="Toto"</script>//function selectMultiple(groupe)
//{
//result="";
//nbLignes=document.forms[0].elements[groupe].length;
//compteur=0;
//while (compteur<nbLignes)
//{
//if (document.forms[0].elements[groupe].options[compteur].selected)
//if (result == "")
//result=document.forms[0].elements[groupe].options[compteur].value;
//else
//result=result + "," + document.forms[0].elements[groupe].options[compteur].value;
//compteur++;
//}
//return result;
//} 
//Par exemple :
//<form name="truc">
//   <input type="text" name="essai" value="Bonjour"></input>
//</form> 

//permettra de la lire <script>t=document.truc.essai.value</script> 

//ou de la modifier <script>document.truc.essai.value="Toto"</script> 
//
//<script language="javascript">
//function ChangeColor(ident, backgrd, texte) {
//document.getElementById(ident).style.backgroundColor = backgrd;
//document.getElementById(ident).style.color = texte;
//}
//</script>
//<table border="1">
//<tr>
//<td id="td1">
//Case 1
//</td>
//<td id="td2">
//Case 2
//</td>
//</tr>
//<tr>
//<td id="td3">
//Case 3
//</td>
//<td>
//&nbsp;
//</td>
//</tr>
//</table>
//<input type="button" value="Case 1 en Rouge (fond) et Blanc (texte)" onclick="ChangeColor('td1', 'red', 'white')">
//<input type="button" value="Case 2 en Bleu (fond) et Rouge (texte)" onclick="ChangeColor('td2', 'blue', 'red')">
//<input type="button" value="Case 3 en Vert (fond) et Orange (texte)" onclick="ChangeColor('td3', 'green', 'orange')">
 
