// JavaScript Document

var PanelSlideOut = "";
var spanSlideOut = "";
function revelerCacherSousNav(LienId,span){
	var LI = document.getElementById (LienId).parentNode;
	var Sub = document.getElementById (LienId+"_sub");
		if(Sub.style.display == "none"){
			//document.getElementById (LienId).style.color="#f78f04";
			//document.getElementById (span).innerHTML="&nbsp;(-)";
			//document.getElementById (span).style.fontSize ="15px";
			document.getElementById (span).style.background="#fb1603";
			document.getElementById (LienId).style.color="#3e3224";
			//document.getElementById (LienId).className= "maronite";
			//LI.className = "bgtdleft2";
			Sub.style.display = "";
			if (PanelSlideOut != "") revelerCacherSousNav(PanelSlideOut,spanSlideOut);
			PanelSlideOut = LienId;
			spanSlideOut = span;
		}
		else
		{
			//document.getElementById (span).innerHTML="(+)";
			//document.getElementById (span).style.fontSize ="14px";
			document.getElementById (LienId).style.color="#3e3224";
			document.getElementById (span).style.background="#4d74bd";
			//document.getElementById (LienId).style.color="#0c0a5f";
			
			//document.getElementById (LienId).style.color="#F4130D";
			//document.getElementById (LienId).className= "maronite";
			//LI.className = "bgtdleft";
			Sub.style.display = "none";
			PanelSlideOut = "";
		}
	}
	
	
//	var PanelSlideOut2 = "";
	var x="";
	var y="";
function revelerCacherSousNav2(LienId){
	var LI = document.getElementById (LienId).parentNode;
	var Sub = document.getElementById (LienId+"_sub");
		
			if (x)
				x.style.display = "none";
				Sub.style.display = "";
			 	x =Sub;
			if (y)
			{
			document.getElementById (y).style.background="#f6f6f6";
			document.getElementById (y).style.color="#aaa9a9";
			}
			document.getElementById (LienId).style.background="#eceded";
			document.getElementById (LienId).style.color="#000000";
			
			 y=LienId;
	}
	

	function valid1()
{ 
if (document.Add.firstname.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    document.Add.firstname.focus();
    return ;
 }
if (document.Add.lastname.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    document.Add.lastname.focus();
    return ;
 }
if ( document.Add.Email.value.indexOf ('@', 0) == -1 || document.Add.Email.value.indexOf ('.', 0) == -1 ) 
{
alert("please enter a valid e-mail");
document.Add.Email.focus();
return;
}

if (document.Add.country.selectedIndex <= 0)
  {
    alert("Please select a value for the \"Country\" field.");
    document.Add.country.focus();
    return ;
   
}
if (document.Add.field.value == "")
  {
    alert("Please enter a value for the \"Field of Activity\" field.");
    document.Add.field.focus();
    return ;
 }

 else document.Add.submit();}
 
 function reset()
{ (document.Add.reset())

}