
function Highlight(b,i)
{
if (b==1)
{
document.getElementById("m"+i).style.backgroundColor="#186cbb";
document.getElementById("m"+i).style.backgroundImage="";
}
if (b==0)
{
document.getElementById("m"+i).style.backgroundImage="url(images/menu.jpg)";
}
}

function Highlight2(b,i)
{ 
if (b==1)
{
document.getElementById("mm"+i).style.color="#670100";
document.getElementById("mt"+i).style.backgroundImage="url(images/m12.jpg)";
}
if (b==0)
{
document.getElementById("mm"+i).style.color="#FFFFFF";
document.getElementById("mt"+i).style.backgroundImage="url(images/m11.jpg)";
}
}

function Highlight3(b,i)
{
if (b==1)
{
document.getElementById("tab"+i).style.backgroundImage="url(images/m2.jpg)";
document.getElementById("l"+i).style.color="#FFFFFF";
}
if (b==0)
{
document.getElementById("tab"+i).style.backgroundImage="url(images/m1.jpg)";
document.getElementById("l"+i).style.color="#000000";
}
}

function Check()
{
if (document.getElementById("nom").value=="" || document.getElementById("email").value=="" || document.getElementById("obj").value=="" || document.getElementById("msg").value=="" )
alert ("Veuillez remplir les champs marqués par *");
if (document.getElementById("nom").value!="" && document.getElementById("email").value!="" && document.getElementById("obj").value!="" && document.getElementById("msg").value!="" )
document.getElementById("form1").submit();
}

function GotoURL(i)
{

switch (i)
{
case 1:
window.location.href="index.php";break;
case 2:
window.location.href="presentation.php";break;
case 3:
window.location.href="services.php";break;
case 4:
window.location.href="notre_equipe.php";break;
case 5:
window.location.href="consultation.php";break;
case 6:
window.location.href="patients_etrangers.php";break;
case 7:
window.location.href="contact.php";break;


}
}



