
<!--
 function AddToURL(url) {
    p = document.Menu.Party.selectedIndex;
    return  url + "?PN=" + escape(document.Menu.Party.options[p].value);	
    }

 function AddToURLP(that) {
  var i = document.Menu.Party.selectedIndex;
	var v = document.Menu.Party.options[i].value; 
	var t = document.Menu.Party.options[i].text; 
if (i==0) {
		alert("\n Please select a Party.")
		return }
if (v == 'R') {
		alert("\n This option not available for the Republican Party.")
		return;
		}
else if (v == 'I$#') {
		alert("\n xxxx is not participating in the Gubernatorial Preference Ballot.")
		return;
		}
  else		{ 	
  	window.location = "ElecRslts.asp?PtyCd="+v+"&M=PTY&R=all"
    }
	}

 function AddToURLPBP(that) {
  var i = document.Menu.PartyDown.selectedIndex;
	var v = document.Menu.PartyDown.options[i].value; 
	var t = document.Menu.PartyDown.options[i].text; 
	
if (i==0) {
		alert("\n Please select a Party.")
		return }
if (v == 'R') {
		alert("\n These statistics are not available for the Republican Party.")
		return;
		}
else if (v == 'xxx') {
		alert("\n The xxx Party is not participating in the Presidential Preference Ballot.")
		return;
		}
else		{ 	
  	window.location = "PrecRptByParty.asp?PtyCd="+v+"&M=PTY&R=all"
    }
	}
	
	
	
 function AddToURLLEG(that) {
	
	if (that == 'Legislative') {
		var i = document.Menu.Legislative.selectedIndex;
		var v = document.Menu.Legislative.options[i].value; 
		var t = document.Menu.Legislative.options[i].text; 
	}	

if (i==0) {
		alert("\n Please select a Legislative District.")
		return }
  else		{
	 window.location = "ElecRslts.asp?M=GLG&R=all&LD="+v
}
 }	

 function AddToURLLEGREP(that) {
	
	if (that == 'LegislativeRep') {
		var i = document.Menu.LegislativeRep.selectedIndex;
		var v = document.Menu.LegislativeRep.options[i].value; 
		var t = document.Menu.LegislativeRep.options[i].text; 
	}	

if (i==0) {
		alert("\n Please select a District.")
		return }
  else		{
	 window.location = "ElecRslts.asp?M=GLG&R=all&LD="+v
}
 }	

 function AddToURLLEGSENSUM(that,party) {
	if (that == 'Senate') {
		var i = document.Menu.LegislativeSummarySenate.selectedIndex;
		var v = document.Menu.LegislativeSummarySenate.options[i].value; 
		var t = document.Menu.LegislativeSummarySenate.options[i].text; 
	}	
	
if (i==0) {
		alert("\n Please select a District.")
		return }
  else		{ //alert("ElecRslts.asp?M=LGSENSUM&R=all&LD="+v+"&PtyCd="+party)
	 window.location = "ElecRslts.asp?M=LGSENSUM&R=all&LD="+v+"&PtyCd="+party
}
 }	



function AddToURLLEGHOUSESUMDFL(obj,party) {
 	var i = obj.selectedIndex;
		var v = obj.options[i].value; 
		var t = obj.options[i].text; 

if (i==0) {
		alert("\n Please select a District.")
		return }
  else		{
  	 window.location = "ElecRslts.asp?M=LGHOUSESUMDFL&R=all&LD="+v+"&PtyCd="+party
}
 }	

 
 function AddToURLLEGHOUSESUM(obj,party) {
 	var i = obj.selectedIndex;
		var v = obj.options[i].value; 
		var t = obj.options[i].text; 

if (i==0) {
		alert("\n Please select a District.")
		return }
  else		{
  	 window.location = "ElecRslts.asp?M=LGHOUSESUM&R=all&LD="+v+"&PtyCd="+party
}
 }	




 function AddToURLC(that) {
	
	if (that == 'County1') {
		var i = document.Menu.County1.selectedIndex;
		var y = document.Menu.County1.options[i].value; 
		var d = document.Menu.County1.options[i].text; 
	}	

if (i==0) {
		alert("\n Please select a county.")
		return }
  else		{ 	
	 window.location = "ElecRslts.asp?CtyCd="+y+"&rq="+y+d+"&M=CTY&R=all&CtyNm="+d
}
 }	

function AddToURLCG(that) {
	
	if (that == 'Congressional') {
		var i = document.Menu.Congressional.selectedIndex;
		var y = document.Menu.Congressional.options[i].value; 
		var d = document.Menu.Congressional.options[i].text; 
	}	

if (i==0) {
		alert("\n Please select a Congressional District.")
		return }
  else		{ 	
	 window.location = "ElecRslts.asp?CD="+y+"&M=CGG"

}
 }	
 
 
function AddToURLD(that) {
	if (that == 'Legs1') { 
		var i = document.Menu.Legs1.selectedIndex;
		var y = document.forms[0].Legs1.options[i].value;
		url = "ElecRslts.asp?M=LG" }
	if (that == 'Legs2') {
		var i = document.Menu.Legs2.selectedIndex;
	 	var y = document.forms[0].Legs2.options[i].value; 
		//url = "SelectPrecinctLG.asp?M=LG"}
		url = "Cross_PLD.asp?M=LG"}
	if (that == 'Legs3') {
		var i = document.Menu.Legs3.selectedIndex;
	 	var y = document.forms[0].Legs3.options[i].value; 
		url = "ElecRslts.asp?M=PLG"}
	if (y=='00') {
		alert("\n Please select a district.")
		return }
   else		{ 
  
			window.location =  url +  "&LD=" + escape(y);	
}
 }	

 
//-->
