<!--

if (document.images) {
	members1 = new Image();
	members1.src = "images/members1.gif";
	members2 = new Image();
	members2.src = "images/members2.gif";
	directory1 = new Image();
	directory1.src = "images/directory1.gif";
	directory2 = new Image();
	directory2.src = "images/directory2.gif";
	newsline1 = new Image();
	newsline1.src = "images/newslinen1.gif";
	newsline2 = new Image();
	newsline2.src = "images/newsline2.gif";
	contact1 = new Image();
	contact1.src = "images/contact1.gif";
	contact2 = new Image();
	contact2.src = "images/contact2.gif";
}
function rollOver(imName,over) {
    if (over) { document.images[imName].src = "images/" + imName + "2.gif" }
         else { document.images[imName].src = "images/" + imName + "1.gif" }
}

var formWin
function openFormWin(url){
	if(!formWin || formWin.closed){
       formWin=window.open(url,"form","resizable,scrollbars,menubar,width=700,height=600");
	}else{
	   formWin.close();
	   formWin=window.open(url,"form","resizable,scrollbars,menubar,width=700,height=600");
	}
}

var subscriptions
function openSubscribe(url){
	if(!subscriptions || subscriptions.closed){
       subscriptions=window.open(url,"subscribe","resizable,scrollbars,width=200,height=200");
	}else{
	   subscriptions.close();
	   subscriptions=window.open(url,"subscribe","resizable,scrollbars,width=200,height=200");
	}
}

var formWin2
function openFormWin2(url){
	if(!formWin2 || formWin2.closed){
       formWin2=window.open(url,"form2","resizable,scrollbars,width=700,height=600");
	}else{
	   formWin2.close();
	   formWin2=window.open(url,"form2","resizable,scrollbars,width=700,height=600");
	}
}  
var goalWin
function opengoalWin(url){
	if(!goalWin || goalWin.closed){
       goalWin=window.open(url,"goal","resizable,scrollbars,width=700,height=600");
	}else{
	   goalWin.close();
	   goalWin=window.open(url,"goal","resizable,scrollbars,width=700,height=600");
	}
} 
function printForm(){
    if(confirm('Print this Form?')){
		print();
 	}
	return false;	
} 

function subscribe(){
	if(document.forms.mailingList.news.checked || document.forms.mailingList.digest.checked){
		document.forms.mailingList.status.checked = false;
	}else{
		document.forms.mailingList.status.checked = true;
	}
}

function subStatus(){
	if(document.forms.mailingList.status.checked){
		document.forms.mailingList.news.checked = false;
		document.forms.mailingList.digest.checked = false;
	}else{
		document.forms.mailingList.news.checked = true;
		document.forms.mailingList.digest.checked = true;
	}
}

function checkEmail(form){
		  
	var Email = document.forms[form].Email.value;
		  
	 // Return false if field data is missing or invalid
	if(isMail(form,Email,'Email')){
   		return true;
	}
	return false;
}
function isMail(form,email,fieldname)
   {
  
  if (email != null && email != "") {
        a = email.lastIndexOf("@");
        b = email.lastIndexOf(".");
        c = email.indexOf(":");
        d = email.indexOf("/");
		p = email.indexOf(" ");
        e = email.substring(0,a);
        f = e.indexOf("@");
        g = email.substring(a+1,email.length);
        h = g.indexOf("[");
        i = g.indexOf("]");
        j = g.indexOf("<");
        k = g.indexOf(">");
        l = email.substring(a+1,b);
        m = email.substring(b+1,email.length);
        n = email.substring(0,a);
        o = 0;
		
        if (a > b) {o++};
        if (c != -1) {o++};
        if (d != -1) {o++};
		if (p != -1) {o++};
        if (f != -1) {o++};
        if (h != -1) {o++};
        if (i != -1) {o++};
        if (j != -1) {o++};
        if (k != -1) {o++};
        if (l.length < 3) {o++};
        if (m.length < 2) {o++};
        if (n.length < 1) {o++};
        if (o != 0) {
          
        alert("Please enter a valid email address!");
			         document.forms[form].elements[fieldname].select();
			         document.forms[form].elements[fieldname].focus();
			         return false;
					 }
        }
		return true;
    }	
//-->