function TechnischeZeichnung (BildID){
	/*window_open(document.location.href + '/../../../view-image.php?img=' + document.location.href + '/../../../images/bilder_produkte/'+BildID+'.gif', 'tz_popup', 350, 220, false, 50, 50, true);*/
		window_open('http://bauer-magnettechnik.de/view-image.php?img=http://bauer-magnettechnik.de/images/bilder_produkte/'+BildID+'.gif', 'tz_popup', 350, 220, false, 50, 50, true);
}

/**
 * Individuelles Popup-Fenster öffnen
 */
function window_open(url, name, width, height, scrollbars, left, top, set_focus, resizable, parameters, return_object){

	// Bildschirmauflösung auslesen
	var width_screen	= screen.availWidth;
	var height_screen	= screen.availHeight;

	// Breite auf Maximum setzen
	if(width == '__MAX__'){
		width = width_screen - 10;
	} // if

	// Höhe auf Maximum setzen
	if(height == '__MAX__'){
		height = height_screen - 30;
	} // if

	// Parameter 'scrollbars' korrigieren
	if(scrollbars){
		scrollbars = String('yes');
	}else{
		scrollbars = String('no');
	} // if

	// Parameter 'resizable' korrigieren
	if(resizable){
		resizable = String('yes');
	}else{
		resizable = String('no');
	} // if

	// Popup horrizontal zentrieren
	if(!left){
		left = Math.round((width_screen - width) / 2);
	} // if

	// Popup vertikal zentrieren
	if(!top){
		top = Math.round((height_screen - height) / 2);
	} // if

	if(parameters){
		parameters = ',' + parameters;
	}else{
		parameters = '';
	} // if

	// Fenster öffnen
	var popup = window.open(url, name, 'width=' + width + ',height=' + height + ',resizable=' + resizable + ',scrollbars=' + scrollbars + ',top=' + top + ',left=' + left + parameters);

	// Fenster fokussieren
	if(set_focus){
		popup.focus();
	} // if

	// Referenz zurückgeben
	if(return_object == true){
		return popup;
	} // if
} // function
