
//this is used for the drop down for commercial, residential, etc on the search page

function go1(){
if (document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value != "none") {
location = document.selecter1.select1.options[document.selecter1.select1.selectedIndex].value
		}
	}
	
//this is used for the location selection box

function go1X(){
if (document.selecter1X.select1X.options[document.selecter1X.select1X.selectedIndex].value != "none") {
location = document.selecter1X.select1X.options[document.selecter1X.select1X.selectedIndex].value
		}
	}
	
	
	
//this is used for the popup windows
function openWin( windowURL, windowName, windowFeatures ) { 
		return window.open( windowURL, windowName, windowFeatures ) ; 
	} 
	
// this is used to hide and show the save search option just below the form on the prop results page

function show_hide(field) {
if (document.getElementById(field).style.display == 'block') document.getElementById(field).style.display = 'none'
else if (document.getElementById(field).style.display == 'none') document.getElementById(field).style.display = 'block'
}


function show_hides(field) {
if (document.getElementById(field).style.display == 'none') document.getElementById(field).style.display = 'block'
else if (document.getElementById(field).style.display == 'block') document.getElementById(field).style.display = 'none'
}
	
//this is used for the plus minus signs
	
	
function getItem(id)
    {
        var itm = false;
        if(document.getElementById)
            itm = document.getElementById(id);
        else if(document.all)
            itm = document.all[id];
        else if(document.layers)
            itm = document.layers[id];

        return itm;
    }


function togglePlmn(pls)
	{
	 if(!pls) 
	   return false;
	 
	 var target = getItem(pls);
	 
	 if(target.innerHTML=='+')
	    target.innerHTML = '-';
	 
	 else
	    target.innerHTML = '+';
	    
	 return true;
	}


function toggleItem(id,pls)
    {
        itm = getItem(id);

        if(!itm)
            return false;

        if(itm.style.display == 'none')
		{
            itm.style.display = 'block';
			togglePlmn(pls);
		}
        else
        {
		    itm.style.display = 'none';
			togglePlmn(pls);	
		}
        return false;
    }



	
	///
	

