function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

//-->
<!-- below begins code for navigation menu tree-->
//HV Menu v5.411- by Ger Versluis (http://www.burmees.nl/)
//Submitted to Dynamic Drive (http://www.dynamicdrive.com)
//Visit http://www.dynamicdrive.com for this script and more
function Go(){return}
<!-- End navigation menu tree -->

// mailing list verification of form input
		function SubmitVal(){

		//Mailing Options
			if(document.mailinglist.mail.value=="Select an Option"){alert("Please select a mailing option.");
				return false;
			}
			
		//First Name
			if(document.mailinglist.first_name.value==""){alert("Please enter your First Fame.");
				return false;
			}
			
		//Last Name
			if(document.mailinglist.last_name.value==""){alert("Please enter your Last Name.");
				return false;
			}

		//Address
			//if(document.mailinglist.address.value==""){alert("Please enter your Address.");
				//return false;
			//}
		
		//City
			if(document.mailinglist.city.value==""){alert("Please enter your City.");
				return false;
			}
			
		//State
			if(document.mailinglist.State.value=="Select a State"){alert("Please select a State.");
				return false;
			}
			
		//E-mail
			if(document.mailinglist.email.value==''){alert('Please enter your E-Mail address.');
				return false;
			}
		
			var RegvEmail = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			var RegiEmail = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)");
			var email = document.mailinglist.email.value;
			if (!(RegvEmail.test(email) && !RegiEmail.test(email))){alert("The e-mail address you enter does not meet the following format, (info@centuryhousing.org).  Please enter a valid e-mail address and try again.");
				return false;
			}
		//Verify E-mail
			if(document.mailinglist.email2.value==''){alert('Please VERIFY your E-Mail address.');
				return false;
			}
			
			var RegvEmail2 = new RegExp("^.+\\@(\\[?)[a-zA-Z0-9\\-\\.]+\\.([a-zA-Z]{2,3}|[0-9]{1,3})(\\]?)$");
			var RegiEmail2 = new RegExp("(@.*@)|(\\.\\.)|(@\\.)|(\\.@)|(^\\.)");
			var email2 = document.mailinglist.email2.value;
			if (!(RegvEmail2.test(email2) && !RegiEmail2.test(email2))){alert("The verifying e-mail address you entered does not meet the following format, (info@centuryhousing.org).  Please verify your e-mail address again.");
				return false;
			}
			
			if (document.mailinglist.email.value != mailinglist.email2.value)
    		{
	        alert('Your e-mail addresses do not match. Please verify your e-mail address again.');
    		    return false;
		    } 

		//ZIP Code
			var zip=document.mailinglist.zip_postal_code.value;
			var len=zip.length;
			
			if(len != 5){alert("Please enter your 5 digit ZIP Code.");
				return false;
			}

			
			
			else {

			return true;
		}
		}
//end verfications


			