function postprocess(id)
{
    var location = document.getElementById('id_PLZ').value;
    var country = 'Deutschland';
    var location = document.getElementById('id_Ort').value;
    var street = document.getElementById('id_Strasse').value;
    var geocoder = new GClientGeocoder();
    var frm = document.getElementById(id);
    
    if (document.getElementById('id_URL').value == "http://") 
	document.getElementById('id_URL').value = "";
    if (document.getElementById('id_Email').value == "ihre@email-adresse.de") 
	document.getElementById('id_Email').value = "";
    
    var query = street ? street + '+' : '' + location ? location + '+' + country : city + '+' + country;
    geocoder.getLocations(query, 
			function(response)
			{
			    if (!response) return;
				var point
				if (response.Placemark)
				{
				    place = response.Placemark[0];
			    	    point = new GLatLng(place.Point.coordinates[1],
				                    place.Point.coordinates[0]);
				}
				if (point)
				{
				    input = document.createElement('input');
				    input.type = "hidden";
				    input.name = 'coords';
				    input.value = point.lat() + ',' + point.lng();
				    frm.appendChild(input);
				    frm.submit();
				    return true;
				}
				else
				{
					alert ('Couldn\'t find your location! ');
					return false;
				}
			}
			)
    return false;
}

function process_category_change()
{
    var cat = document.getElementById('id_Kategorie');
    if(cat.value == "Hotel")
    {
	document.getElementById('other_fields_hotel').style.display = "block";    
    }
    else
    {
	document.getElementById('other_fields_hotel').style.display = "none";    
    }
}