<!--
function LoadCountyPicker(fromListBoxID)
{	
	var fromListBox = document.getElementById(fromListBoxID);
	var countylist = "";

	// If "All" is selected, just open the county picker
	if(fromListBox != null && fromListBox.options.length > 0 && fromListBox.options[0].selected == false)
	{					
		for(var i=0; i < fromListBox.options.length; i++)
		{
			if(fromListBox.options[i].selected == true)
			{
				countylist += fromListBox.options[i].text + ",";
			}
		}	
		
		countylist = countylist.slice(0, -1);
	}

	var pickerName = 'County';
	window.open('/net/location/picker'+pickerName+'.aspx?formItem='+fromListBoxID+'&counties='+countylist + '&s=0.0.5.3013&db=mygeorgia','Picker','width=750,height=540,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no');
}

function SaveCountyPicker(toListBoxID)
{
	var toListBox = window.opener.document.getElementById(toListBoxID);
	
	// Reset all the toListBox entries
	for(var i=0; i < toListBox.options.length; i++)
	{
		toListBox[i].selected = false;
	}
	
    var selectedCountiesListBox = document.getElementById('lstSelectedCounties');
	for (i=0; i< selectedCountiesListBox.options.length; i++) 
	{
		selectedvalue = selectedCountiesListBox.options[i].text;
	    for(var j=0; j < toListBox.options.length; j++)
	    {
			if(toListBox.options[j].text == selectedvalue)
			{
				toListBox.options[j].selected = true;
				break;
			}
		}
	}
}

function closeWindow() 
{
	window.close();
}
//-->

