/* 
	Tito Jackson: Global JS
	Author: Transmyt Marketing
	Last Updated: 06/22/09
	
							   */
/* External Links */

<!--
function externalLinks() {
 if (!document.getElementsByTagName) return;
 var anchors = document.getElementsByTagName("a");
 for (var i=0; i<anchors.length; i++) {
   var anchor = anchors[i];
   if (anchor.getAttribute("href") &&
       anchor.getAttribute("rel") == "external")
     anchor.target = "_blank";
 }
}
window.onload = externalLinks;
//-->

<!--

function ValidateSidebarForm()
	{
	    var name = document.SidebarForm.colName;
	    var email = document.SidebarForm.colEmail;
		var comments = document.SidebarForm.colComments;
	
		if (name.value == "")
		{
			window.alert("Please enter your name.");
			name.focus();
			return false;
		}
		
		if (email.value == "")
		{
			window.alert("Please enter a valid e-mail address.");
			email.focus();	
			return false;
		}
		if (email.value.indexOf("@", 0) < 0)
		{
			window.alert("Please enter a valid e-mail address.");
			email.focus();
			return false;
		}
		if (email.value.indexOf(".", 0) < 0)
		{
			window.alert("Please enter a valid e-mail address.");
			email.focus();	
			return false;
		}
		if (comments.value == "")
		{
			window.alert("Please enter your comments or suggestions.");
			comments.focus();
			return false;
		}
		
		return true;
		}

//-->

<!--

function ValidateInvolveForm()
	{
	    var name = document.InvolveForm.fullname;
	    var email = document.InvolveForm.emailaddress;
	
	    if (name.value == "")
	    {
	        window.alert("Please enter your name.");
	        name.focus();
	        return false;
	    }
	    
	    if (email.value == "")
	    {
		  window.alert("Please enter a valid e-mail address.");
  	      email.focus();	
  	      return false;
  		  }
  		  if (email.value.indexOf("@", 0) < 0)
		  	  {
	  	      window.alert("Please enter a valid e-mail address.");
	  	      email.focus();
	  	      return false;
	  	  }
	  	  if (email.value.indexOf(".", 0) < 0)
	  	  {
				window.alert("Please enter a valid e-mail address.");
		        email.focus();	
		        return false;
		  }
	
	    	return true;
		 }

//-->

<!--

function ValidateDonationForm()
	{
		var amount = document.donationform.amount;
	    var firstname = document.donationform.first_name;
		var lastname = document.donationform.last_name;
		var address1 = document.donationform.address1;
		var city = document.donationform.city;
		var state = document.donationform.state;
		var zip = document.donationform.zip;
		var accept = document.donationform.accept;
	
		if (amount.value == "")
	    {
	        window.alert("Please enter your contribution amount.");
	        amount.focus();
	        return false;
	    }
	
	    if (firstname.value == "")
	    {
	        window.alert("Please enter your first name.");
	        firstname.focus();
	        return false;
	    }
		
		if (lastname.value == "")
	    {
	        window.alert("Please enter your last name.");
	        lasttname.focus();
	        return false;
	    }
		
		if (address1.value == "")
	    {
	        window.alert("Please enter your address.");
	        address1.focus();
	        return false;
	    }
		
		if (city.value == "")
	    {
	        window.alert("Please enter your city.");
	        city.focus();
	        return false;
	    }
		
		if (state.value == "")
	    {
	        window.alert("Please enter your city.");
	        state.focus();
	        return false;
	    }
		
		if ( accept.checked == false )
		{
			alert ( "Please check the Terms & Conditions box." );
			valid = false;
		}
	
			return true;
		 }

//-->
