var countCounty=0;

var strCounty="";
var strCity="";
var strArea="";
var strTown="";
var strSchoolD="";
var strSchoolH="";
var strSchoolE="";
var strZipCode="";
var arrayCounty= new Array();
var arrayCity= new Array();
var arrayArea= new Array();
var arrayTown= new Array();
var arraySchoolD= new Array();
var arraySchoolH= new Array();
var arraySchoolE= new Array();
var arrayZipCode= new Array();

function countyOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arrayCounty.length;
if(val!="")
	{
document.getElementById("listCounty").style.display="block";
arrayCounty[len]=val;
var ol = document.getElementById("listCounty");
        var child="county-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0 0 0 10px;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeCountyChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";

		
        document.getElementById('searchCounty').value=arrayCounty.join(",");
    }    
		

}

function removeCountyChild(id)
{
	//alert(idv+" -     c --");

 var id_array=id.split("-");
 var countyIndex=id_array[1];
 
 var select =document.getElementById('searchCounty_list');

 
 var remove_val=select.options[countyIndex].value;

 select.options[countyIndex].disabled = "";
try{
var idx = arrayCounty.indexOf(remove_val); // Find the index
if(idx!=-1) 
arrayCounty.splice(idx, 1); // Remove it if really found!
}catch(e){}

 document.getElementById('searchCounty').value=arrayCounty.join(",");

var elem=document.getElementById(id);
 elem.parentNode.removeChild(elem);

 
 if(arrayCounty.length==0)
	{
 document.getElementById("listCounty").style.display="none";
 document.getElementById("searchCounty_list").value="";
	
	}
 }

function cityOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arrayCity.length;

if(val!="")
	{
document.getElementById("listCity").style.display="block";
arrayCity[len]=val;
        var ol = document.getElementById("listCity");
        var child="city-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0 0 0 10px;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeCityChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";
        document.getElementById('searchCity').value=arrayCity.join(",");

	}
}


function removeCityChild(id)
{
 var id_array=id.split("-");
 var countyIndex=id_array[1];
 var select =document.getElementById('searchCity_list');
 
 var remove_val=select.options[countyIndex].value;
 select.options[countyIndex].disabled = "";
try{
var idx = arrayCity.indexOf(remove_val); // Find the index
if(idx!=-1) arrayCity.splice(idx, 1); // Remove it if really found!
}catch(e){}

document.getElementById('searchCity').value=arrayCity.join(",");

var elem=document.getElementById(id);
elem.parentNode.removeChild(elem);

 if(arrayCity.length==0)
	{
 document.getElementById("listCity").style.display="none";
	 document.getElementById("searchCity_list").value="";
	}

}

function removeCityChilds()
{
for(var i=1; i<=100;i++)
	{
	var removeid="city-"+i;
    try{
	removeCityChild(removeid);
	}catch (e){}
	}
}


function areaOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arrayArea.length;
if(val!="")
	{
	document.getElementById("listArea").style.display="block";
arrayArea[len]=val;
document.getElementById('searchAreaDesc').value=arrayArea.join(",");

        var ol = document.getElementById("listArea");
        var child="area-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0 0 0 10px;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeAreaChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";

	}
}


function removeAreaChild(id)
{
 var id_array=id.split("-");
 var countyIndex=id_array[1];
 var select =document.getElementById('searchAreaDesc_list');

 select.options[countyIndex].disabled = "";

var remove_val=select.options[countyIndex].value;

try{
var idx = arrayArea.indexOf(remove_val); // Find the index
if(idx!=-1) arrayArea.splice(idx, 1); // Remove it if really found!

}catch(e){}

document.getElementById('searchAreaDesc').value=arrayArea.join(",");


 var elem=document.getElementById(id);
elem.parentNode.removeChild(elem);

if(arrayArea.length==0)
	{
 document.getElementById("listArea").style.display="none";
	document.getElementById("searchAreaDesc_list").value="";
	}
}


function removeAreaChilds()
{
for(var i=1; i<=100;i++)
	{
	var removeid="area-"+i;
    try{
	removeAreaChild(removeid);
	}catch (e){}
	}
}



function townOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arrayTown.length;
if(val!="")
	{
	document.getElementById("listTown").style.display="block";
arrayTown[len]=val;
document.getElementById('searchTownShip').value=arrayTown.join(",");

        var ol = document.getElementById("listTown");
        var child="town-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0 0 0 10px;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeTownChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";

	}
}


function removeTownChild(id)
{
 var id_array=id.split("-");
 var countyIndex=id_array[1];
 var select =document.getElementById('searchTownShip_list');

 select.options[countyIndex].disabled = "";

var remove_val=select.options[countyIndex].value;

try{
var idx = arrayTown.indexOf(remove_val); // Find the index
if(idx!=-1) arrayTown.splice(idx, 1); // Remove it if really found!

}catch(e){}
document.getElementById('searchTownShip').value=arrayTown.join(",");

 var elem=document.getElementById(id);
elem.parentNode.removeChild(elem);

if(arrayTown.length==0)
	{
 document.getElementById("listTown").style.display="none";
	document.getElementById("searchTownShip_list").value="";
	}
}



function SchoolDOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arraySchoolD.length;
if(val!="")
	{
	document.getElementById("listSchoolD").style.display="block";
arraySchoolD[len]=val;
document.getElementById('searchDistrictSchool').value=arraySchoolD.join(",");


        var ol = document.getElementById("listSchoolD");
        var child="schoolD-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeSchoolDChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";

	}
}


function removeSchoolDChild(id)
{
 var id_array=id.split("-");
 var countyIndex=id_array[1];
 var select =document.getElementById('searchDistrictSchool_list');

 select.options[countyIndex].disabled = "";

var remove_val=select.options[countyIndex].value;
try{
var idx = arraySchoolD.indexOf(remove_val); // Find the index
if(idx!=-1) arraySchoolD.splice(idx, 1); // Remove it if really found!

}catch(e){}
document.getElementById('searchDistrictSchool').value=arraySchoolD.join(",");

 var elem=document.getElementById(id);
elem.parentNode.removeChild(elem);

if(arraySchoolD.length==0)
	{
 document.getElementById("listSchoolD").style.display="none";
 document.getElementById("searchDistrictSchool_list").value="";
	}

}






function SchoolHOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arraySchoolH.length;
if(val!="")
	{
document.getElementById("listSchoolH").style.display="block";
arraySchoolH[len]=val;
document.getElementById('searchHighSchool').value=arraySchoolH.join(",");


        var ol = document.getElementById("listSchoolH");
        var child="schoolH-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0 0 0 10px;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeSchoolHChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";

	}
}


function removeSchoolHChild(id)
{
 var id_array=id.split("-");
 var countyIndex=id_array[1];
 var select =document.getElementById('searchHighSchool_list');

 select.options[countyIndex].disabled = "";

var remove_val=select.options[countyIndex].value;
try{
var idx = arraySchoolH.indexOf(remove_val); // Find the index
if(idx!=-1) arraySchoolH.splice(idx, 1); // Remove it if really found!

}catch(e){}
document.getElementById('searchHighSchool').value=arraySchoolH.join(",");

var elem=document.getElementById(id);
elem.parentNode.removeChild(elem);

if(arraySchoolH.length==0)
	{
 document.getElementById("listSchoolH").style.display="none";
 document.getElementById("searchHighSchool_list").value="";
	}

}



function SchoolEOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arraySchoolE.length;
if(val!="")
	{
document.getElementById("listSchoolE").style.display="block";
arraySchoolE[len]=val;
document.getElementById('searchElementarySchool').value=arraySchoolE.join(",");


        var ol = document.getElementById("listSchoolE");
        var child="schoolE-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0 0 0 10px;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeSchoolEChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";

	}
}


function removeSchoolEChild(id)
{
 var id_array=id.split("-");
 var countyIndex=id_array[1];
 var select =document.getElementById('searchElementarySchool_list');

 select.options[countyIndex].disabled = "";

var remove_val=select.options[countyIndex].value;

try{
var idx = arraySchoolE.indexOf(remove_val); // Find the index
if(idx!=-1) arraySchoolE.splice(idx, 1); // Remove it if really found!

}catch(e){}
document.getElementById('searchElementarySchool').value=arraySchoolE.join(",");

 var elem=document.getElementById(id);
elem.parentNode.removeChild(elem);

if(arraySchoolE.length==0)
	{
 document.getElementById("listSchoolE").style.display="none";
 document.getElementById("searchElementarySchool_list").value="";
	}

}


function zipOnChangeFun(select)
{
countCounty++;
var val=select.value;
var index=select.selectedIndex;
var len=arrayZipCode.length;
if(val!="")
	{
	 document.getElementById("listZip").style.display="block";
arrayZipCode[len]=val;
document.getElementById('searchZipCode').value=arrayZipCode.join(",");

        var ol = document.getElementById("listZip");
        var child="zip-"+index;
        var li = document.createElement("li");
        var litext = document.createTextNode(val);
        li.appendChild(litext);
		li.setAttribute("id", child)
        li.setAttribute("class", "fsListItem1")
		li.setAttribute("style", "*border:0px solid #000;width:173px;margin:0 0 0 10px;*margin-left:-20px;")
        li.setAttribute("value", val)
        ol.appendChild(li);
	
	    var txt='<div style="*height:25px;height:17px;width:173px;margin:0;background: #DADADB;*margin-left:-20px;*border-bottom:1px solid #DADADB"><span float:left;padding:2px 0 0 0;>'+val+'</span> <span style="float:right; *margin-top:-13px;"> <a href="#" title="Remove item" onclick="removeZipChild(\''+ child +'\');"><img src="http://wellesbowen.com/search/images/icon1_small.png"></a><span></div>';	
		document.getElementById(child).innerHTML=txt;
		select.options[index].disabled = "desabled";

	}
}


function removeZipChild(id)
{
 var id_array=id.split("-");
 var countyIndex=id_array[1];
 var select =document.getElementById('searchZipCode_list');

 select.options[countyIndex].disabled = "";

 var remove_val=select.options[countyIndex].value;

try{
var idx = arrayZipCode.indexOf(remove_val); // Find the index
if(idx!=-1) arrayZipCode.splice(idx, 1); // Remove it if really found!
}catch(e){}

document.getElementById('searchZipCode').value=arrayZipCode.join(",");


 var elem=document.getElementById(id);
elem.parentNode.removeChild(elem);

if(arrayZipCode.length==0)	{
    document.getElementById("listZip").style.display="none";
	document.getElementById("searchZipCode_list").value="";
	}

}


function removeZipChilds()
{
for(var i=1; i<=100;i++)
	{
	var removeid="zip-"+i;
    try{
	removeZipChild(removeid);
	}catch (e){}
	}
}


 function removeByElement(arrayName,arrayElement)
 {
    for(var i=0; i<arrayName.length;i++ )
     { 
        if(arrayName[i]==arrayElement)
            arrayName.splice(i,1); 
      } 
  }


 function isOlCity(postCity)
 {
	 var post_city=postCity.split(',');
	 var str=''; 
	 //alert(post_city.length);
	if(post_city.length>0)
	 {
		

	var listBox=document.getElementById('searchCity_list');
	
     var selIndex=new Array();
     var st=0;
	 for(var k=0;k<post_city.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == post_city[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
  
  for(var i=0 ;i<post_city.length;i++)
		 {
	  var si=selIndex[i];
	 arrayCity[i]=post_city[i];
	 str=str+'<li id="city-'+si+'" class="fsListItem1" style="width:173px;margin: 0 0 0 10px;" value="'+post_city[i]+'"><div style="height: 17px; width: 173px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+post_city[i]+'</span> <span style="float: right; *margin:-13px 0 0 0;"> <a onclick="removeCityChild(\'city-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=post_city[i-1];
	 document.getElementById('searchCity_list').value=lastValue;
	 document.getElementById('listCity').innerHTML=str;
	 } 	
 return ;
 }


function isOlCounty(postCounty)
 {
	 var selIndex=new Array();
	 var postArray=postCounty.split(',');
	 var str=''; 
	
	 //alert(postArray.length);
	if(postArray.length>0)
	 {
		

	var listBox=document.getElementById('searchCounty_list');
	 var st=0;	 
	 for(var k=0;k<postArray.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == postArray[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
	
	for( var i=0 ;i<postArray.length;i++)
		 {var si=selIndex[i];
			arrayCounty[i]=postArray[i];
	 str=str+'<li id="county-'+si+'" class="fsListItem1" style="width:173px;margin: 0 0 0 px;" value="'+postArray[i]+'"><div style="height: 17px; width: 173px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+postArray[i]+'</span> <span style="float: right;"> <a onclick="removeCountyChild(\'county-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=postArray[i-1];
	 document.getElementById('searchCounty_list').value=lastValue;
	 document.getElementById('listCounty').innerHTML=str;
	 } 	
 return ;
 }



function isOlArea(postArea)
 {
	 var postArray=postArea.split(',');
	 var str=''; 
	 var selIndex=new Array();
	 //var len=arrayCounty.length;
	//alert(postArea);
	 //alert(postArray.length);
	if(postArray.length>0)
	 {
	

	var listBox=document.getElementById('searchAreaDesc_list');
	 var st=0;	 
	 for(var k=0;k<postArray.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == postArray[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
	for( var i=0 ;i<postArray.length;i++)
		 {
		var si=selIndex[i];
	 arrayArea[i]=postArray[i];	
	 str=str+'<li id="area-'+si+'" class="fsListItem1" style="width:173px;margin: 0 0 0 10px;" value="'+postArray[i]+'"><div style="height: 17px; width: 173px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+postArray[i]+'</span> <span style="float: right;"> <a onclick="removeAreaChild(\'area-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=postArray[i-1];
	 document.getElementById('searchAreaDesc_list').value=lastValue;
	 document.getElementById('listArea').innerHTML=str;
	 } 	
 return ;
 }



function isOlTown(postTown)
 {
	 var postArray=postTown.split(',');
	 var str=''; 
	  var selIndex=new Array();
	 //var len=arrayCounty.length;
	//alert(postArea);
	 //alert(postArray.length);
	if(postArray.length>0)
	 {
		

	var listBox=document.getElementById('searchTownShip_list');
		 var st=0; 
	 for(var k=0;k<postArray.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == postArray[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
 
    for( var i=0 ;i<postArray.length;i++)
		 {
			var si=selIndex[i];
	 arrayTown[i]=postArray[i];	
	 str=str+'<li id="town-'+si+'" class="fsListItem1" style="width:173px;margin: 0 0 0 10px;" value="'+postArray[i]+'"><div style="height: 17px; width: 173px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+postArray[i]+'</span> <span style="float: right;"> <a onclick="removeTownChild(\'town-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=postArray[i-1];
	 document.getElementById('searchTownShip_list').value=lastValue;
	 document.getElementById('listTown').innerHTML=str;
	 } 	
 return ;
 }


function isOlZip(postZip)
 {
	 var postArray=postZip.split(',');
	 var str='';
	  var selIndex=new Array();
	 //var len=arrayCounty.length;
	//alert(postArea);
	 //alert(postArray.length);
	if(postArray.length>0)
	 {
		

	var listBox=document.getElementById('searchZipCode_list');
		 var st=0; 
	 for(var k=0;k<postArray.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == postArray[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
for( var i=0 ;i<postArray.length;i++)
		 {
	var si=selIndex[i];
	 arrayZipCode[i]=postArray[i];	
	 str=str+'<li id="zip-'+si+'" class="fsListItem1" style="width:173px;margin: 0 0 0 10px;" value="'+postArray[i]+'"><div style="height: 17px; width: 173px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+postArray[i]+'</span> <span style="float: right;"> <a onclick="removeZipChild(\'zip-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=postArray[i-1];
	 document.getElementById('searchZipCode_list').value=lastValue;
	 document.getElementById('listZip').innerHTML=str;
	 } 	
 return ;
 }


function isOlSchoolE(postSchoolE)
 {
	 var postArray=postSchoolE.split(',');
	 var str='';
	 var selIndex=new Array();
	 //var len=arrayCounty.length;
	//alert(postArea);
	 //alert(postArray.length);
	if(postArray.length>0)
	 {
		

	var listBox=document.getElementById('searchElementarySchool_list');
		 var st=0; 
	 for(var k=0;k<postArray.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == postArray[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
for( var i=0 ;i<postArray.length;i++)
		 {
	var si=selIndex[i];
	 arraySchoolE[i]=postArray[i];	
	 str=str+'<li id="schoolE-'+si+'" class="fsListItem1" style="width:173px;margin: 0 0 0 10px;" value="'+postArray[i]+'"><div style="height: 17px; width: 173px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+postArray[i]+'</span> <span style="float: right;"> <a onclick="removeSchoolEChild(\'schoolE-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=postArray[i-1];
	 document.getElementById('searchElementarySchool_list').value=lastValue;
	 document.getElementById('listSchoolE').innerHTML=str;
	 } 	
 return ;
 }


function isOlSchoolD(postSchoolD)
 {
	 var postArray=postSchoolD.split(',');
	 var str='';
	 var selIndex=new Array();
	 //var len=arrayCounty.length;
	//alert(postArea);
	 //alert(postArray.length);
	if(postArray.length>0)
	 {
		

	var listBox=document.getElementById('searchDistrictSchool_list');
		 var st=0; 
	 for(var k=0;k<postArray.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == postArray[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
for( var i=0 ;i<postArray.length;i++)
		 {
	var si=selIndex[i];
	 arraySchoolE[i]=postArray[i];	
	 str=str+'<li id="schoolD-'+si+'" class="fsListItem1" style="width:173px;margin: 0 0 0 10px;" value="'+postArray[i]+'"><div style="height: 17px; width: 173px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+postArray[i]+'</span> <span style="float: right;"> <a onclick="removeSchoolDChild(\'schoolD-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=postArray[i-1];
	 document.getElementById('searchDistrictSchool_list').value=lastValue;
	 document.getElementById('listSchoolD').innerHTML=str;
	 } 	
 return ;
 }



function isOlSchoolH(postSchoolH)
 {
	 var postArray=postSchoolH.split(',');
	 var str=''; 
	 var selIndex=new Array();
	 //var len=arrayCounty.length;
	//alert(postArea);
	 //alert(postArray.length);
	if(postArray.length>0)
	 {
		

	var listBox=document.getElementById('searchHighSchool_list');
	 var st=0;	 
	 for(var k=0;k<postArray.length;k++)
	 {
		 for (var x = 0; x < listBox.length; x++) { 

		  if (listBox.options[x].value == postArray[k]) { 
			listBox.options[x].disabled = "desabled";
			selIndex[st]=x;
			st++;
		  } 
		} 
	 }
for( var i=0 ;i<postArray.length;i++)
		 {
	var si=selIndex[i];
	 arraySchoolH[i]=postArray[i];	
	 str=str+'<li id="schoolH-'+si+'" class="fsListItem1" style="width:132px;margin: 0pt;" value="'+postArray[i]+'"><div style="height: 17px; width: 132px; margin: 0pt; background: none repeat scroll 0% 0% rgb(218, 218, 219);"><span float:left;padding:2px="">'+postArray[i]+'</span> <span style="float: right;"> <a onclick="removeSchoolHChild(\'schoolH-'+si+'\');" title="Remove item" href="#">	<img src="http://wellesbowen.com/search/images/icon1_small.png"></a>	<span></span></span></div></li>'
		 }
	 var lastValue=postArray[i-1];
	 document.getElementById('searchHighSchool_list').value=lastValue;
	 document.getElementById('listSchoolH').innerHTML=str;
	 } 	
 return ;
 }





