function showHTWGO(component_fields) {
	if(document.getElementById('types').value == '') {
		alert();
		return false;
	}
	
	requestXMLPage(component_fields['url']+document.getElementById('types').value, fillSelectField, component_fields, component_fields['load_error']);
    document.getElementById("HTWGO").className == 'popperHid' ? document.getElementById("HTWGO").className = 'popperShow' : document.getElementById("HTWGO").className = 'popperHid';
	return false;
}

function showHTWGO2(url) {
	document.getElementById("component_image").src = url;
    document.getElementById("HTWGO2").className == 'popperHid' ? document.getElementById("HTWGO2").className = 'popperShow' : document.getElementById("HTWGO2").className = 'popperHid';
	return false;
}

function show(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = "block";
	}
	else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = "block";
	}
	else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = "block";
	}
}

function hide(whichLayer) {
	if (document.getElementById) {
		// this is the way the standards work
		var style2 = document.getElementById(whichLayer).style;
		style2.display = "none";
	}
	else if (document.all) {
		// this is the way old msie versions work
		var style2 = document.all[whichLayer].style;
		style2.display = "none";
	}
	else if (document.layers) {
		// this is the way nn4 works
		var style2 = document.layers[whichLayer].style;
		style2.display = "none";
	}
}

function submitForm(value) {
	val = document.getElementById('types').value.length < 4 ? '0'+document.getElementById('types').value : document.getElementById('types').value;
	document.search_text_field.gap_nummer.value = val+value;
	document.search_text_field.submit();
}
function submitForm2(value) {
	document.search_text_field.gap_nummer.value = value;
	document.search_text_field.submit();
}