
	var sShow  = '';
	var sHide  = 'none';

	function get_layer_obj(ID) {

		if (window.document.all)
			return eval("window.document.all."+ID+".style");

		if (typeof(window.document.getElementById)=="function")
			return window.document.getElementById(ID).style;

		sHide = "none";
		sShow = "";

		return eval("window.document.layers[iLAssign[ID]]");
	}

	 function show_layer(ID) {
	 	get_layer_obj(ID).display = sShow;
	}

    function hide_layer(ID) {
     	get_layer_obj(ID).display = sHide;
    }

	/* schaltet die Datumseingabe an oder aus */
	function toggle_layer(ID) {
		if ((get_layer_obj(ID).display) == sHide) get_layer_obj(ID).display = sShow;
		else get_layer_obj(ID).display = sHide;
	}

	/* Mouseover für Submit-Buttons (Internet-Explorer) */
	function NewColor(obj,stat) {
		if(obj.style) {
			obj.style.backgroundImage = "url(" + "../../style/gfx/btn/bgr_qs_send_" + stat + ".png" + ")";
		}
	}

	/* Mouseover für Submit-Buttons (Internet-Explorer) */
	function NewColorStd(obj,stat) {
		if(obj.style) {
			obj.style.backgroundImage = "url(" + "../../style/gfx/btn/bgr_or_" + stat + ".png" + ")";
		}
	}

	/* Mouseover für Submit-Buttons (Internet-Explorer) */
	function NewColorStdO(obj,stat) {
		if(obj.style) {
			obj.style.backgroundImage = "url(" + "http://angebote.maxholiday.de/style/gfx/btn/bgr_orh_" + stat + ".png" + ")";
		}
	}

	/* Mouseover für Submit-Buttons (Internet-Explorer) */
	function NewColorStdOn(obj,stat) {
		if(obj.style) {
			obj.style.backgroundImage = "url(" + "http://angebote.maxholiday.de/style/gfx/btn/bgr_or_" + stat + ".png" + ")";
		}
	}

	// Fenster für Online-Hilfe öffnen
    function openFlugPopup(ID) {
		// Fenster mit der Content-Hilfe öffnen
		parent.frames['fr_content'].location = "http://angebote.maxholiday.de/content/flug/flug.html";
	}

	function openFlugPopupI(ID) {
		var C_Fenster = window.open('http://angebote.maxholiday.de/index_flug.php', "chelp", "width=800,height=590,scrollbars=yes,resizable=yes,toolbar=no,directories=no,menubar=no,location=no,status=no");
	}

	// Fenster für Online-Hilfe öffnen
    function openSuntPopup(ID) {
		// Fenster mit der Content-Hilfe öffnen
		var C_Fenster = window.open('http://angebote.maxholiday.de/index_sunt.php', "chelp", "width=800,height=590,scrollbars=yes,resizable=yes,toolbar=no,directories=no,menubar=no,location=no,status=no");
	}

	// Schnellsuche: prüfen, welche Reiseart
    function ss_check_rart() {
		with (window.document.such)
		{
			// Werte übernehmen
			var Reiseart	= parseInt(nurflug.options[nurflug.selectedIndex].value);
		}

		if (Reiseart==1) {
			openFlugPopup(0);
			window.document.such.nurflug.selectedIndex = 0;
		}

		if (Reiseart==2) {
			window.location.href = 'http://angebote.maxholiday.de/content/cars/cars.html';
			window.document.such.nurflug.selectedIndex = 0;
		}
	}