// JavaScript Document
function Search(){
	 if ((document.Search.Search.value == "")||(document.Search.Search.value == "Search")||(document.Search.Search.value.length<3))
  {
    alert("Enter at least 3 Characters.");
    document.Search.Search.focus();
    return ;
	}
				 }
function NewsLetter(){
	 if ((document.NewsLetter.NewsLetter.value == "")||(document.NewsLetter.NewsLetter.value.length<2)||(document.NewsLetter.NewsLetter.value.indexOf ('@', 0) == -1)||(document.NewsLetter.NewsLetter.value.indexOf ('.', 0) == -1))
	{
    alert("Enter Your Correct Email please.");
    document.NewsLetter.NewsLetter.focus();
    return ;
	}																												   }
function validContact(){
	 if (document.contactform.FullName.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    document.contactform.FullName.focus();
    return ;
	}
	 if (document.contactform.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    document.contactform.LastName.focus();
    return ;
	}
	if ( document.contactform.Email.value.indexOf ('@', 0) == -1 || document.contactform.Email.value.indexOf ('.', 0) == -1 ) 
{
alert("please enter a valid e-mail");
document.contactform.Email.focus();
return;
}
	 else document.contactform.submit();
 }
 
function Reset(forme){
	document.getElementById(forme).reset();
	;}
	 
function validMember(){
	 if ((document.member.Username.value == "")||(document.member.Username.value == "Username"))
  {
    alert("Enter UserName.");
    document.member.Username.focus();
    return ;
	}
		 if ((document.member.Password.value == "")||(document.member.Password.value == "Password"))
  {
    alert("Enter Password.");
    document.member.Password.focus();
    return ;
	}
		 }
function validCareer(){
	 if (document.careerform.FullName.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    document.careerform.FullName.focus();
    return ;
	}
	 if (document.careerform.LastName.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    document.careerform.LastName.focus();
    return ;
	}
	if ( document.careerform.Email.value.indexOf ('@', 0) == -1 || document.careerform.Email.value.indexOf ('.', 0) == -1 ) 
{
alert("please enter a valid e-mail");
document.careerform.Email.focus();
return;
}
	 else document.careerform.submit();
 }
 	var img1="";
	var PanelSlideOut = "";
function revelerCacherSousNav_2(LienId,x,img){
	var LI = document.getElementById (LienId).parentNode;
	var Sub = document.getElementById (LienId+"_sub");
		if(Sub.style.display == "none"){
				document.getElementById (x).src = 'images/'+img+'on.gif';
				//alert(document.getElementById (x).src);
			//document.getElementById (x).className= "portal";
			//document.getElementById ('span').innerHTML="&nbsp;-";
			//document.getElementById (LienId).className= "test";
			//LI.className = "bgtdleft2";
			Sub.style.display = "";
			if (PanelSlideOut != "") revelerCacherSousNav_2(PanelSlideOut,x1,img1);
			PanelSlideOut = LienId;
			x1=x;
			img1=img;
		}
		else
		{
				document.getElementById (x).src = 'images/'+img+'.gif';
			//document.getElementById ('span').innerHTML="+";
			//document.getElementById (x).className= "conslistfinal";
			//document.getElementById (LienId).className= "test";
			//LI.className = "bgtdleft";
			Sub.style.display = "none";
			PanelSlideOut = "";
			x1="";
			img1="";
		}
	}
