
function g1o_g4e_addMarker(markerType, zip, city, description, link) { 
	
	var _map = document.getElementById('gMap');
	var _popup = document.getElementById('gMaps_popup');
	var _position = new o1t_locate(_map);

	var popupCode = '';
	popupCode += '<b><a href="'+link+'" class="r9g_link">'+description+'</a></b>';
	popupCode += '<br/>';
	popupCode += markerType;
	popupCode += ', ';
	popupCode += zip;
	popupCode += ' ';
	popupCode += city;
	
	_popup.style.left = _position.x;
	_popup.style.top = _position.y;
	_popup.style.display = 'block';
	_popup.style.zIndex = 1000;
	_popup.style.padding = '4px;';
	_popup.style.border = '0px #000000 solid';
	
	o1t_innerHTML(_popup, o1t_createCase(popupCode));
}

function g1o_setZipAndCity(zip, city, field, hidden, id) { 
	
	var regex_zip = /(^zip$)|(_zip$)|(^zip_)$/;
	var regex_city = /(^city$)|(_city$)|(^city_)$/;
	
	var _input_zip;
	var _input_city;
	
	if (document.getElementById('g1o_location_icon') && document.getElementById('g1o_location_icon_text')) {
		var _icon = document.getElementById('g1o_location_icon');
		var _iconText = document.getElementById('g1o_location_icon_text');
		if (id) {
			_icon.src = o1t_webdir_pics+'buttons/yes_small.gif';
			o1t_innerHTML(_iconText, 'Es wurde eine Stadt gewählt');
		}
	}
	
	if (regex_zip.exec(field)) {
		_input_zip = document.getElementById(field);
		_input_city = document.getElementById(field.replace('zip', 'city'));
	}
	else {
		_input_zip = document.getElementById(field.replace('city', 'zip'));
		_input_city = document.getElementById(field);
	}
	
	if (hidden && document.getElementsByName(hidden)[0]) {
		document.getElementsByName(hidden)[0].value = id;
	}
	
	_input_zip.value = zip;
	_input_city.value = city;
	
	a2x_hideInputFieldBox();
}

