// JavaScript Document

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;

//alternating row color
function alternate(id){ 
 if(document.getElementsByTagName){  
   var table = document.getElementById(id);   
   var rows = table.getElementsByTagName("tr");   
   for(i = 0; i < rows.length; i++){           
 //manipulate rows 
     if(i % 2 == 0){ 
       rows[i].className = "empty"; 
     }else{ 
       rows[i].className = "shaded"; 
     }       
   } 
 } 
}


function jumper() {
	i = document.county_pulldown.url.selectedIndex;
	x = document.county_pulldown.url.options[i].value;
	if (x != "") {
		window.top.location.href = x;
	}
}

function jumper2() {
	i = document.town_pulldown.url.selectedIndex;
	x = document.town_pulldown.url.options[i].value;
	if (x != "") {
		window.top.location.href = x;
	}
}
