function focusInput(obj, standardValue) {
	if(obj.value == standardValue) {
		obj.value = '';
	}
}

function blurInput(obj, standardValue) {
	if(obj.value == '') {
		obj.value = standardValue;
	}
}

function checkForm(standardValuePLZ, standardValueCity, dontValidate, quick) {
	var success		= true;
	
	if(quick == undefined || !quick) {
		var objError	= document.getElementById('googlemaps_form_error');
		var objPLZ 		= document.getElementById('googlemaps_txt_zip');
		var objCity		= document.getElementById('googlemaps_txt_city');
	} else {
		var objError	= document.getElementById('quick_form_error');
		var objPLZ 		= document.getElementById('quick_txt_zip');
		var objCity		= document.getElementById('quick_txt_city');
	}
	
	var googlemaps_form_error_zip = document.getElementById('googlemaps_form_error_zip');
	if((isNaN(objPLZ.value) || objPLZ.value.length <= 1) && objCity.value == standardValueCity) {
		if(googlemaps_form_error_zip) googlemaps_form_error_zip.style.display = 'block';
		return false;
	} else {
		if(googlemaps_form_error_zip) googlemaps_form_error_zip.style.display = 'none';
	}
	
	if(dontValidate == undefined || !dontValidate) {
		objError.style.display = 'none';
		if(isNaN(objPLZ.value) && objPLZ.value != standardValuePLZ) success = false;
	}
	
	if(!success) {
		document.getElementById('googlemaps_form_error').style.display = 'block';
	} else {
		objPLZ.value 	= objPLZ.value 	== standardValuePLZ 	? '' : objPLZ.value;
		objCity.value 	= objCity.value == standardValueCity 	? '' : objCity.value;		
	}
	
	return success;
}
