
				// am=active menu ai=active image
	am='n1'; // initialize to a valid id, or it doesn't know it's an object
	ai='nav1';

	function switchMenu(nm){
	document.getElementById(am).style.display="none";
	document.getElementById(nm).style.display="block";
	am=nm;
	}
	function switchPic(i){
	s1="document.images.";
	s2=".src=";
	s3="'/images/nav/"+i+"-on.gif'";
	s3b="'/images/nav/"+ai+".gif'";
	eval(s1+ai+s2+s3b); // turn active image off;
	document.getElementById(am).style.display='none' //turn menu off;
	eval (s1+i+s2+s3);
	ai=i; //make i new active image
	}	
	
	function ImageOff(i){
	s1="document.images.";
	s2=".src=";
	s3="'/images/nav/"+i+".gif'";
	eval(s1+i+s2+s3); 
	}
	
	function ImageOn(i){
	s1="document.images.";
	s2=".src=";
	s3="'/images/nav/"+i+"-on.gif'";
	eval(s1+i+s2+s3); 
	}
	
	
	
	function switchOff(i){
	
	s1="document.images.";
	s2=".src=";
	s3b="'/images/nav/"+i+".gif'";
	eval(s1+i+s2+s3b);
	}
	
	function imageNorm(i){
	s1="document.images.";
	s2=".src=";
	s3="'/images/nav/"+i+".gif'";
	eval(s1+i+s2+s3);	
	}

	function ValidEmail (email, scrub)

  { var fail = false;
    if (email.value.length == 0 ) return false;
    var atpos = email.value.indexOf('@',0);
    if( (email.value.length < 5) || (atpos == -1))
        fail = true;              // too short or no '@'
    if (! fail)
       { if (email.value.indexOf('.',atpos) == -1)
            fail = true;          // no '.' in address after the @
       };
    if ( (fail) && (scrub) )
        { alert ("Excuse me!!!\n \""
                 + email.value
                 + "\" is an invalid E-mail address!");
          email.select();
          email.focus();
          return false;
        };
    return (! fail);
  }
  function ValidEmailT (email, scrub)

  { var fail = false;
    if (email.value.length == 0 ) return false;
    var atpos = email.value.indexOf('@',0);
    if( (email.value.length < 5) || (atpos == -1))
        fail = true;              // too short or no '@'
    if (! fail)
       { if (email.value.indexOf('.',atpos) == -1)
            fail = true;          // no '.' in address after the @
       };
    if ( (fail) && (scrub) )
        { alert ("Excuse me!!!\n \""
                 + email.value
                 + "\" is an invalid E-mail address!");
          email.select();
          email.focus();
          return false;
        };
    return (! fail);
  }

function CheckMail(AdToList)
{
 if ((document.AdToList.email.value=="") || (! ValidEmail (document.AdToList.email, false)))
        {alert("Please Enter Your Email Address!!!");
        return false;
        email.select();
        }
return true;
}

function popWindow() {
	window.open('../learn/conserve-video.htm','','height=400,width=525');
	//if (window.focus) {newwindow.focus()}
	return false;
}
