
  /*
	Function:	change the radius options status "DISABLED" or "ENABLED" using value from "Country".
				if country = "DE", enabled it, otherweise disabled it.
	Parm: 		html object select country,
				html object select radius
	Return: 	bool true
  */
  function setRadiusInputStatus( objCountry, objRadius){
  		//alert("setRadiusInputStatus ("+objCountry.id+","+	objRadius.id+")");
  		if(objCountry.value=="germany"){
  			//alert("germany!");
  			objRadius.disabled=false;
  			showRadius(objRadius);
  		}
  		else{
  			//alert(objCountry.value + " can not use GeoSearch.");
  			objRadius.disabled=true;
  			hideRadius(objRadius);
  		}
  		return true;
  }

  function hideRadius(obj){
	setLabelsDisplay( getLableFor(obj) ,"none");
	obj.style["display"] = "none";
  }
  function showRadius(obj){
	setLabelsDisplay( getLableFor(obj) ,"inline");
	obj.style["display"] = "inline";
  }

  /*
  * Hide labels
  */
  function setLabelsDisplay( labels, str){
  	for(var i=0; i<labels.length; i++){
  		labels[i].style["display"] = str;
  	}
  }
  /*
  	Parm: HTML object select,
  	Return: array label object
  */
  function getLableFor(radius){
    //alert("getLabelFor"+radius.id);
  	var labels = document.getElementsByTagName("label");
  	var mylabels = new Array();
  	for(var i=0; i<labels.length; i++){
  		if( labels[i].htmlFor == radius.id ){
  			//alert("gefunden! " + labels[i].htmlFor);
  			mylabels.push(labels[i]);
  		}
  	}
	return mylabels;
  }
