//Warn of links opening in new window
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"; 
    anchor.title = (anchor.title != "") ? anchor.title+" (Opens in a new window)" : "opens in a new window"; 
    anchor.className = (anchor.className != '') ? anchor.className+' external' : 'external'; 
}
 } 
} 
window.onload = externalLinks;

function swap(targetId){
  
  if (document.getElementById)
        {
        target = document.getElementById(targetId);
        
            if (target.style.display == "none")
                {
                target.style.display = "";
                } 
            
            else 
                {
                target.style.display = "none";
                }
                
        }
}

//ensure comments entered on form
function validateForm(contact)
{

if(""==document.forms.contact.comment.value)
{
alert("Please enter your comments.");
document.forms.contact.comment.focus();
return false;
}

}


