function changeform(value)
{
  varaction="/proddir/search/";
  document.search.action=varaction+value;
}

var addison = true 
var bennington = true
var caledonia = true
var chittenden = true
var essex = true
var franklin = true
var grandisle = true
var lamoille = true
var orange = true
var orleans = true
var rutland = false
var washington = true
var windham = true
var windsor = false

//function countyinit()
//{
  
  //x = document.forms["search"];
  
  //addison.style.display = "none";
//}

function changecountystatus( county )
{
  var foundcounty = MM_findObj2 (county);
  
  if ( county == "addison" )
  {
  	if ( addison == true )
  	{
		foundcounty.style.display = "block";
	  	addison = false;
	}
	else if ( addison == false )
	{
		foundcounty.style.display = "none";
		addison = true;
	}
  }
  
  if ( county == "bennington" )
  {
  	if ( bennington == true )
  	{
		foundcounty.style.display = "block";
	  	bennington = false;
	}
	else if ( bennington == false )
	{
		foundcounty.style.display = "none";
		bennington = true;
	}
  }
  
  if ( county == "caledonia" )
  {
  	if ( caledonia == true )
  	{
		foundcounty.style.display = "block";
	  	caledonia = false;
	}
	else if ( caledonia == false )
	{
		foundcounty.style.display = "none";
		caledonia = true;
	}
  }

  if ( county == "chittenden" )
  {
  	if ( chittenden == true )
  	{
		foundcounty.style.display = "block";
	  	chittenden = false;
	}
	else if ( chittenden == false )
	{
		foundcounty.style.display = "none";
		chittenden = true;
	}
  }
  
  if ( county == "essex" )
  {
  	if ( essex == true )
  	{
		foundcounty.style.display = "block";
	  	essex = false;
	}
	else if ( essex == false )
	{
		foundcounty.style.display = "none";
		essex = true;
	}
  }
  
  if ( county == "franklin" )
  {
  	if ( franklin == true )
  	{
		foundcounty.style.display = "block";
	  	franklin = false;
	}
	else if ( franklin == false )
	{
		foundcounty.style.display = "none";
		franklin = true;
	}
  }
  
  if ( county == "grandisle" )
  {
  	if ( grandisle == true )
  	{
		foundcounty.style.display = "block";
	  	grandisle = false;
	}
	else if ( grandisle == false )
	{
		foundcounty.style.display = "none";
		grandisle = true;
	}
  }
  
  if ( county == "lamoille" )
  {
  	if ( lamoille == true )
  	{
		foundcounty.style.display = "block";
	  	lamoille = false;
	}
	else if ( lamoille == false )
	{
		foundcounty.style.display = "none";
		lamoille = true;
	}
  }
  
  if ( county == "orange" )
  {
  	if ( orange == true )
  	{
		foundcounty.style.display = "block";
	  	orange = false;
	}
	else if ( orange == false )
	{
		foundcounty.style.display = "none";
		orange = true;
	}
  }
  
  if ( county == "orleans" )
  {
  	if ( orleans == true )
  	{
		foundcounty.style.display = "block";
	  	orleans = false;
	}
	else if ( orleans == false )
	{
		foundcounty.style.display = "none";
		orleans = true;
	}
  }
  
  if ( county == "rutland" )
  {
  	if ( rutland == true )
  	{
		foundcounty.style.display = "block";
	  	rutland = false;
	}
	else if ( rutland == false )
	{
		foundcounty.style.display = "none";
		rutland = true;
	}
  }
  
  if ( county == "washington" )
  {
  	if ( washington == true )
  	{
		foundcounty.style.display = "block";
	  	washington = false;
	}
	else if ( washington == false )
	{
		foundcounty.style.display = "none";
		washington = true;
	}
  }
  
  if ( county == "windham" )
  {
  	if ( windham == true )
  	{
		foundcounty.style.display = "block";
	  	windham = false;
	}
	else if ( windham == false )
	{
		foundcounty.style.display = "none";
		windham = true;
	}
  }
  
  if ( county == "windsor" )
  {
  	if ( windsor == true )
  	{
		foundcounty.style.display = "block";
	  	windsor = false;
	}
	else if ( windsor == false )
	{
		foundcounty.style.display = "none";
		windsor = true;
	}
  }
}	

function MM_findObj2(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;
}
