	var gZwrFunctionsDebug = false;

	var ie=(document.all)? true:false;
	var ns=(document.layers)? true:false;
	var ns6=navigator.appName.indexOf("Netscape")!=1&& parseInt(navigator.appVersion)>=5 ;


	hide = new Array ();
	/* nitLayers
		just give an array like onload="initLayers(new Array('vendor','category','article'))"
	*/

	function initLayers(pHide) {
		var i = 0;
		for (var foundMainEntry in pHide) {
			hide[pHide[i++]]="";
		}
		var dummy = "ads";
		dummy = "";
	}
	/* init layers as array with indexes as literals for each main layer
		all sublayers should be an array with names of sublayers or an empty entry if no more sublayers
		hide['text1'] = new Array('text1sub1','text1sub2');
		hide['text2'] = new Array('text2sub1','text2sub2','text2sub3');
		hide['text3'] = "";
	*/
	function initLayerWithSubLayers(pHide) {
		hide = pHide;
	}
	function doSwitch(pEbene) {
		if (isMainLayer(pEbene)) {
			switchMainLayers(pEbene);
		}
		else {
			switchSubLayers(pEbene);
		}
	}

	// helpers -------------------------
	function isMainLayer(pLayerName) {
		for (var foundMainEntry in hide) {
			if (pLayerName == foundMainEntry) {
				return true;
			}
		}
		return false;
	}

	function getSubLayersOfLayer(pLayerName) {
		var result = null;
		for (var foundMainEntry in hide) {
			if (foundMainEntry == pLayerName) {
				if (typeof hide[foundMainEntry] == "array" || typeof hide[foundMainEntry] == "object") {
					result = hide[foundMainEntry];
					break;
				}
			}
		}
		return result;
	}

	function switchMainLayers(pLayerName) {
		for (var foundMainEntry in hide) {
			if (pLayerName == foundMainEntry) {
				turnLayerVisibility(foundMainEntry,true);
				switchMainSubLayers(foundMainEntry,true,"");
			}
			else {
				turnLayerVisibility(foundMainEntry,false);
				switchMainSubLayers(foundMainEntry,false,"");
			}
		}
	}

	function switchMainSubLayers(pLayerName,pVisibility,pSubLayerName) {
		for (var foundMainEntry in hide) {
			if (pLayerName == foundMainEntry) {
				subLayers = getSubLayersOfLayer(pLayerName);
				if (subLayers != null) {
					for (var i = 0; i < subLayers.length; i++) {
						// is vis true set only the first layers visible as default
						curSublayerName = subLayers[i];
						turnOn = false;
						if (pVisibility == true) {
							if (pSubLayerName != null && pSubLayerName != "") {
								if (curSublayerName == pSubLayerName) {
									turnOn = true;
								}
							}
							else {
								if (i==0) {
									turnOn = true;
								}
							}
						}

						turnLayerVisibility(curSublayerName,turnOn);
					}
				}
			}
		}
	}

	function getMainlayerNameForSublayer(pLayerName) {
		result = null;
		for (var foundMainEntry in hide) {
			subLayers = getSubLayersOfLayer(foundMainEntry);
			if (subLayers != null) {
				for (var i = 0; i < subLayers.length; i++) {
					if (subLayers[i] == pLayerName) {
						result = foundMainEntry;
						break;
					}
				}
			}
		}
		return result;
	}

	function switchSubLayers(pSubLayerName) {
		mainLayer = getMainlayerNameForSublayer(pSubLayerName);
		switchMainSubLayers(mainLayer,true,pSubLayerName);
	}

	function turnLayerVisibility(pLayerName,pVisibility) {
		_turnLayerVisibility(false,pLayerName,pVisibility);
	}

	function turnLayerVisibilityOpener(pLayerName,pVisibility) {
		_turnLayerVisibility(true,pLayerName,pVisibility);
	}

	function _turnLayerVisibility(pOpenerFlag,pLayerName,pVisibility) {
		var windowObj = window;
		if (true == pOpenerFlag && opener) {
			windowObj = opener;
		}

		if (_layerExists(windowObj,pLayerName)) {
			if(ie) {
				if (pVisibility == true) {
					windowObj.document.all[pLayerName].style.visibility="visible";
				}
				else {
					windowObj.document.all[pLayerName].style.visibility="hidden";
				}
			}
			if(ns) {
				if (pVisibility == true) {
					windowObj.document.layers[pLayerName].visibility="show";
				}
				else {
					windowObj.document.layers[pLayerName].visibility="hide";
				}
			}
			if(ns6) {
				if (pVisibility == true) {
					windowObj.document.getElementById(pLayerName).style.visibility="visible";
				}
				else {
					windowObj.document.getElementById(pLayerName).style.visibility="hidden";
				}
			}
		}
	}

	function _layerExists(pWindowObj,pLayerName) {
		var elem = null;
		var result = false;

		if(ie) {
			var elem = pWindowObj.document.all[pLayerName];
		}
		if(ns) {
			var elem = pWindowObj.document.layers[pLayerName];
		}
		if(ns6) {
			var elem = pWindowObj.document.getElementById(pLayerName);
		}

		if (null == elem || elem == "undefined") {
			if (gZwrFunctionsDebug) alert(pLayerName+" not found");
		}
		else {
			result = true;
		}

		return result;
	}

	function turnLayerDisplay(pLayerName,pVisibility) {
		if (_layerExists(window,pLayerName)) {
			if(ie) {
				if (pVisibility == true) {
					// axel 20060220, offenbar fuehrt display="inherit" zu fehlern
					document.all[pLayerName].style.display="";
				}
				else {
					document.all[pLayerName].style.display="none";
				}
			}
			if(ns) {
				if (pVisibility == true) {
					document.layers[pLayerName].display="";
				}
				else {
					document.layers[pLayerName].display="none";
				}
			}
			if(ns6) {
				if (pVisibility == true) {
					document.getElementById(pLayerName).style.display="";
				}
				else {
					document.getElementById(pLayerName).style.display="none";
				}
			}
		}
	}

	function setDisplay(pElementName,pFlag) {
		var elem = document.getElementById(pElementName);
		if (elem) {
			if (pFlag) {
				elem.style.display="";
			}
			else {
				elem.style.display="none";
			}
		}
	}


	function setLayerUrl(pLayerName,pIctUrl) {
		if(ie) {
			if (document.all[pLayerName]) {
    			document.all[pLayerName].style.backgroundImage='url('+pIctUrl+')';
			}
	   	}
	   	else if (ns) {
	   		if (document.layers[pLayerName]) {
    			document.layers[pLayerName].backgroundImage='url('+pIctUrl+')';
	   		}
	    }
	    else if (ns6) {
	    	if (document.getElementById(pLayerName)) {
				document.getElementById(pLayerName).style.backgroundImage="url('"+pIctUrl+"')";
	    	}
	   	}
	   	else {
	   		if (document[pLayerName]) {
				document[pLayerName].style.backgroundImage='url('+pIctUrl+')';
	   		}
	   	}
	}

	// end of layer stuff ------------------------------------------------


	function clearInput(pField) {
		pField.value="";
	}

	function validateCurrencyField(pField) {
		if (pField != "") {
			var value = pField.value;
			for (var i = 0; i < value.length; i++) {
				if ( !(value.charAt(i) >= 0 && value.charAt(i) <= 9) && value.charAt(i) != '.' && value.charAt(i) != ',') {
					alert(unescape(zwrEscape("Bitte ein gültiges Preis Format benutzen, zB 999,99 oder 999")));
					return false;
				}
			}
		}
		return true;
	}

	function validateCurrencyFieldByName(pFormName,pFieldName) {
		var aForm = document.forms[pFormName];
		var aElem = aForm.elements[pFieldName];
		var value = aElem.value;

		for (var i = 0; i < value.length; i++) {
			if ( !(value.charAt(i) >= 0 && value.charAt(i) <= 9) && value.charAt(i) != '.' && value.charAt(i) != ',') {
				alert(unescape(zwrEscape("Bitte ein gültiges Preis Format benutzen, zB 999,99 oder 999")));
				return false;
			}
		}
		return true;
	}

	function openImage(pPictPath,breite,hoehe) {
		if (pPictPath!="") {
			dokument="../../Module/Gallery/jsGallerySimplePreview.php?pict="+pPictPath;
	     	posa=screen.width/2-248;
	     	posb=screen.height/2-200;
	     	bilfen=window.open(dokument,'bild','width='+breite+', height='+hoehe+', left='+posa+', top='+posb+', screenx='+posa+', screeny='+posb+', scrollbars=no');
		}
	}

	function popupTall(pRelativeFilePath) {
		var winName = basename(pRelativeFilePath,false);
		height=screen.height-150;
		window.open(pRelativeFilePath,winName,'width=400, height='+height+', left=0, top=0, screenx=0, screeny=0, resizable=yes, scrollbars=yes');
	}
	function popupWide(pRelativeFilePath) {
		if (!ie) {
			var winName = basename(pRelativeFilePath,false);
		}
		else {
			var winName = "popup";
		}
		window.open(pRelativeFilePath,winName,'width=780, height=600, left=0, top=0, screenx=0, screeny=0, resizable=yes, scrollbars=yes');
	}
	function popup(datei,windowname,breite,hoehe,posx,posy,resize,scroll){
		popfen=window.open(datei,windowname,'width='+breite+', height='+hoehe+', left='+posx+', top='+posy+', screenx='+posx+', screeny='+posy+', resizable='+resize+', scrollbars='+scroll);
		popfen.focus();
	}
	/********************************* neu claudi für netzwerkforum *******************************************************/
	function openSpecialPopup (pPath) {

		var windowname = 'SpecialContent';
		var breite = 760;
		var hoehe = 550;
		var posx = 0;
		var posy = 0;
		var resize = 'yes';
		var scroll = 'yes';

		popfen=window.open(pPath,windowname,'width='+breite+', height='+hoehe+', left='+posx+', top='+posy+', screenx='+posx+', screeny='+posy+', resizable='+resize+', scrollbars='+scroll);
		popfen.focus();
	}
	/********************************* neu claudi fuer netzwerkforum *******************************************************/
	function openEsabPopup(pPath,pTitle) {
		var title = "Beschreibung";
		if (pTitle && pTitle != "" && pTitle.length > 0) {
			title = pTitle;
		}
		var width = 555;
		var height = screen.height - 100;
		var left = 0;
		var top = 0;
		if (opener) {
			left += 10;
			top += 50;
			height -= 50;
		}
		var popfen=window.open( pPath, title, 'width='+width+', height='+height+', left='+left+', top='+top+', screenx='+left+', screeny='+top+', resizable=yes, scrollbars=yes');
		popfen.focus();
	}
	function openEsabKalender(pPath,pTitle) {
		var title = "Beschreibung";
		if (pTitle && pTitle != "" && pTitle.length > 0) {
			title = pTitle;
		}
		var width = 760;
		var height = screen.height - 150;
		var left = 0;
		var top = 0;
		if (opener) {
			left += 10;
			top += 50;
			height -= 50;
		}
		var popfen=window.open( pPath, title, 'width='+width+', height='+height+', left='+left+', top='+top+', screenx='+left+', screeny='+top+', resizable=yes, scrollbars=yes');
		popfen.focus();
	}
	
	/*********************************** BUCHUNGSFORMULAR *******************/
	function openEsabBuchung(pPath,pTitle) {
		var title = "Buchung";
		if (pTitle && pTitle != "" && pTitle.length > 0) {
			title = pTitle;
		}
		var width = 850;
		var height = screen.height - 100;
		var left = 0;
		var top = 0;
		if (opener) {
			left += 10;
			top += 50;
			height -= 50;
		}
		var popfen=window.open( pPath, title, 'width='+width+', height='+height+', left='+left+', top='+top+', screenx='+left+', screeny='+top+', resizable=yes, scrollbars=yes');
		popfen.focus();
	}
	/************************************ BUCHUNGSFORMULAR ******************/

	function zu(){
		window.close('popup')
	}
	function popupClose() {
		if (!ie) {
			var aName = self.name;
			window.close(aName);
		}
		else {
			window.close();
		}
	}

	function validateEmailAdress(pFormName,pEmailAdressField,pDoWarn) {
		var pEmailAdress = document.forms[pFormName].elements[pEmailAdressField].value;
		var lastDot = pEmailAdress.lastIndexOf('.');
		var at = pEmailAdress.search('@');
		var errorTxt="";
		if (at<=0 || lastDot<=0 || ((lastDot-1) <= at) || lastDot > pEmailAdress.length-3) {
			errorTxt = "Bitte prüfen Sie die E-Mail Adresse, sie muß dem Format \"max@mustermann.de\" entsprechen.";
		}
		if  (pDoWarn && pDoWarn==true) {
			if (errorTxt && errorTxt.length>0) {
				alert(unescape(zwrEscape(errorTxt)));
				return false;
			}
		}
		return true;
	}

	function validateEmailFormFields(formName,pDontCheckNamesArray) {

		var form = document.forms[formName];
		var counter = 0;
	 	var errorFields = "";
	 	var errorFieldName = "";
	 	var emailerror = false;
		var inputFieldNameStrObj  ="";
		var skipCondition = 0;

		for(var i = 0; i < form.elements.length; i++) {
			if(form.elements[i].value == "") {
				errorFieldName="";
				inputFieldNameStrObj = new String(form.elements[i].name);

				skipCondition = 0;
				if (null != pDontCheckNamesArray) {
					var len = pDontCheckNamesArray.length;
					for (a = 0; a < len; a++) {
						if (pDontCheckNamesArray[a] == inputFieldNameStrObj) {
							skipCondition = 1;
						}
					}
				}
				if (skipCondition == 1) continue;
				if (-1 < inputFieldNameStrObj.indexOf('textfield_Name')) {
					errorFieldName = 'Name';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Vorname')) {
					errorFieldName = 'Vorname';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Strasse')) {
					errorFieldName = 'Strasse';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Plz')) {
					errorFieldName = 'Plz';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Ort')) {
					errorFieldName = 'Ort';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Telefon')) {
					errorFieldName = 'Telefon';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Subject')) {
					errorFieldName = 'Betreff';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Email')) {
					errorFieldName = 'E-Mail';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Message')) {
					errorFieldName = 'Nachricht';
				}
				else if (-1 < inputFieldNameStrObj.indexOf('textfield_Fax')) {
					errorFieldName = 'Fax';
				}

				if (errorFieldName != "") {
					if (counter > 0) {
						errorFields = errorFields + ', ';
					}
					errorFields = errorFields + errorFieldName;
					counter++;
				}
			}
			else {
				if (-1 < form.elements[i].name.indexOf('_Email')) {
					var lastDot = form.elements[i].value.lastIndexOf('.');
					var at = form.elements[i].value.search('@');

					if (at<=0 || lastDot<=0 || ((lastDot-1) <= at) || lastDot > form.elements[i].length-3) {
						emailerror = true;
					}
				}
			}

		}
		var agreeError = false;
		if (form.elements['checkboxAGB']) {
			var ischecked = form.elements['checkboxAGB'].checked;
			if (!ischecked) {
				agreeError = true;
			}
		}
		if (counter > 0 || agreeError == true || emailerror == true) {
			var errorTxt = "";
			if (counter == 1) {
				errorTxt = 'Bitte das Feld ';
			}
			else {
				if (counter > 1) {
					errorTxt = 'Bitte die Felder ';
				}
			}
			if (counter > 0) {
				errorTxt = errorTxt + errorFields + " ausfüllen\n";
			}

			if (emailerror == true) {
				errorTxt = errorTxt+"Bitte prüfen Sie die verwendete E-Mail Adresse. \nSie muß dem Format \"max@mustermann.de\" entsprechen";
			}

			if (errorTxt != "" && true == agreeError) errorTxt = errorTxt+"\n";
			if (true == agreeError) errorTxt = errorTxt+"Bitte lesen Sie die AGB und teilen Sie uns mit, dass Sie diese zur Kenntnis genommen haben.";

			alert(unescape(zwrEscape(errorTxt)));
			return false;
		}
		return true;
	}

	function zwrPrompt(pFormObj,pTitle) {
		var result = prompt(pTitle,"");
		if (result == null) {
			result = false;
		}
		else {
			pFormObj.response.value = result;
			result = true;
		}
		return result;
	}

	function setLayerHtml(pLayerName,pText) {
		if (ie) {
			document.all[pLayerName].innerHTML=pText;
		}
		if (ns) {
			document.layers[pLayerName].innerHTML=pText;
		}
		if (ns6) {
			document.getElementById(pLayerName).innerHTML=pText;
		}
	}

	// noch nicht verwendet
	function setLayerClass(pLayerName,pClassName) {
		var layer = getLayerObj(pLayerName);
		//layer.class=pClassName;
	}
	// noch nicht verwendet
	function getLayerObj(pLayerName) {
		var result;
		if (ie) {
			result = document.all[pLayerName];
		}
		if (ns) {
			document.layers[pLayerName];
		}
		if (ns6) {
			document.getElementById(pLayerName);
		}
		return result;
	}

	/*
	anwendung:
		onclick		="enableButtonOnInput(this.form,'submitButton_Create','teInput_Name')"
		onkeydown	="enableButtonOnInput(this.form,'submitButton_Create','teInput_Name')"
		onkeypress	="enableButtonOnInput(this.form,'submitButton_Create','teInput_Name')"
		onkeyup		="enableButtonOnInput(this.form,'submitButton_Create','teInput_Name')"
	parameter:
		pDestButton = button welcher dis/enabled werden soll
		pSrcInput   = welches element soll geprüft werden
	*/
	function enableButtonOnInput(pForm,pDestButton,pSrcInput) {
		flag = false;
		if(pForm[pSrcInput].value == "") flag = true;
		pForm[pDestButton].disabled = flag;
	}

	function setLayerContent(pLayerName,pContent) {
		if (_layerExists(window,pLayerName)) {
			pContent = unescape(pContent);
			if(ie) {
				document.all[pLayerName].innerHTML=pContent;
			}
			if(ns) {
				document.layers[pLayerName].innerHTML=pContent;
			}
			if(ns6) {
				document.getElementById(pLayerName).innerHTML=pContent;
			}
		}
	}


	// Flashabfrage ------------

	gFlashExists = false;
	MM_FlashCanPlay = false;

	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.appVersion.indexOf("Win") != -1)){
			document.write('<script type="text/vbscript"> \n');
			document.write('on error resume next \n');
			document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash.6")))\n');
			document.write('</script\> \n');
			gFlashExists = MM_FlashCanPlay;
		}

	function AskForFlash() {
		var MM_contentVersion = 6;
		var MM_FlashCanPlay = 0;
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if ( plugin ) {
			var words = navigator.plugins["Shockwave Flash"].description.split(" ");
			for (var i = 0; i < words.length; ++i){
				if (isNaN(parseInt(words[i])))
				continue;
				var MM_PluginVersion = words[i];
			}
			MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
		}

		if ( MM_FlashCanPlay ) {
			gFlashExists = true;
		}
		return gFlashExists;

	}


	function extension(pString) {
		index = pString.indexOf(".");
		if (index > -1) {
			pString = pString.substring(index+1);
		}
		return pString;
	}


    function zwrEscape(pString) {
            var s1=pString;
                  var s2=escape(s1);
        //Zeilenumbrueche verkuerzen
        var a1=s2.split("%0D");
        s2="";
        for (i=0;i<a1.length;i++) {
          s1=a1[i];
          if (s1.substring(0,3)=="%0A") { s1=s1.substring(3,s1.length); }
          s2+="%0D"+s1;
        }
        s2=s2.substring(3,s2.length);
        //Leerzeichen ohne Code
        var a2=s2.split("%20");
        s2="";
        for (i=0;i<a2.length;i++) {
                s1=a2[i]; s2+=" "+s1;
        }
            s2=s2.substring(1,s2.length);
            return s2;
    }


    function getZwrEscaped(pString) {
    	return unescape(zwrEscape(pString));
    }

    function checkForbiddenInput(pString) {
    	var forbidden = new Array('<!--','-->','exec');
    }


	function isnumeric(pChar) {
		var result = false;
		if (pChar >= 0 && pChar <= 9) {
			result = true;
		}
		return result;
	}
	function isseperator(pChar) {
		return (pChar == ";" || pChar == ","  || pChar == "."  || pChar == ":");
	}

	function isalpha(str) {
		var code;

		str = str.toLowerCase();
		for(var i = 0; i < str.length; i++) {
			code = str.charCodeAt(i);

			if( (code < 97 || code > 122) && !(code == 32) )
				return false;
		}

		return true;
	}


    // birth day ----------------
	function validateBirthDay(pString) {
		var success = false;
		if (pString != "" && pString.length > 0) {
			for (i = 0; i < pString.length; i++) {
				if (isnumeric(pString[i]) || isseperator(pString[i]) || pString[i] == 32) {
					success = true;
				}
				else {
					success = false;
					break;
				}
			}
		}
		return success;
	}


	/*
		übergabe der position des zu suchenden paramter nach dem "?", index also 0 based
		pKeyFlag = 1 , key returned
		pKeyFlag = 2 , value returned
		pKeyFlag = 0 , komplette paar returned
	*/
    function getUrlParamKey(pIndex,pKeyFlag) {
    	var result = "";
		var url = String(window.location);
		if(window.location.search != "") {
			var undef = url.split("?");
			if (undef != "") {
				var args = undef[1].split("&");
				for(i = 0; i < args.length; i++) {
					if (pIndex != i) continue
					var a = args[i].split("=");
					if (pKeyFlag == 1) {
						result = a[0];
					}
					else if (pKeyFlag == 2) {
						result = a[1];
					}
					else {
						result = args[i];
					}
					break;
				}
			}
		}
		return result;
	}

    function getUrlParam(pAram,pUrl) {
    	var result = "";
		var url = String(window.location);
		if (pUrl && pUrl.length && pUrl.length > 0) {
			url = pUrl;
		}
		if(url.search != "") {
			var undef = url.split("?");
			if (undef != "") {
				var args = undef[1].split("&");
				for(i = 0; i < args.length; i++) {
					var a = args[i].split("=");
					if(a[0] == pAram) {
						result = a[1];
					}
				}
			}
		}
		return result;
	}

    function getUrlQuery($pAram) {
    	var result = "";
		var url = String(window.location);
		if(window.location.search != "") {
			var undef = url.split("?");
			if (undef != "") {
				result = undef[1];
			}
		}
		return result;
	}

	function basename(pString,pKeepExt) {
		var result = "";
		//String(pString);
		var index = pString.lastIndexOf("/");
		if (index == -1) {
			index = pString.lastIndexOf("\\");
		}
		if (index > -1) {
			pString = pString.substring(index+1);
			if (!pKeepExt) {
				index = pString.indexOf(".");
				if (index > -1) {
					pString = pString.substring(0,index);
				}
			}
		}
		return pString;
	}

	function foldername(pString) {
		var index = pString.lastIndexOf("/");
		if (index == -1) {
			index = pString.lastIndexOf("\\");
		}
		if (index > -1) {
			pString = pString.substring(0,index+1);
		}
		return pString;
	}

	function checkInputForSearch(pOffset,pFormName,pFieldName) {
		var result = false;
		var aForm = document.forms[pFormName];
		//if (gZwrFunctionsDebug && !aForm) alert("checkInputForSearch:"+pFormName);
		var aElem = aForm.elements[pFieldName];
		var value = aElem.value;
		if (value.length==0) {
			alert('Bitte geben Sie einen Suchbegriff ein');
		}
		else {
			var param=escape(value);
			var scriptPath=pOffset+"popup/Suchergebnisse_Popup.php?find="+param;
			var title = "Suchergebnisse";
			var width = 555;
			var height = (750>screen.height-150)?screen.height-150:750;
			//var height = (850>screen.height)?screen.height:850;
	     	winref=window.open(scriptPath,title,'width='+width+', height='+height+', left=0, top=0, screenx=0, screeny=0, resizable=yes, scrollbars=yes');
			winref.focus();
		}
		return result;
	}

	/************************** KLASSE EINES ELEMENTS AENDERN **********************************/


	function ChangeElementClass(pLayerName, pClassName) {
		if(ie) {
				document.all[pLayerName].className = pClassName;
			}
			if(ns) {
				document.layers[pLayerName].className = pClassName;
			}
			if(ns6) {
				document.getElementById(pLayerName).className = pClassName;
			}
	}

	/************************** KLASSE EINES ELEMENTS AENDERN **********************************/

	//SPORTCAMP-BANNER ZUFAELLIG AUSWAEHLEN
	
	/************** Bilder vorladen ****************/
	CampPic_01 = new Image();
	CampPic_01.src="../images/SCBanner/Fussball_01.gif";
	
	CampPic_02 = new Image();
	CampPic_02.src="../images/SCBanner/Fussball_02.gif";

	CampPic_03 = new Image();
	CampPic_03.src="../images/SCBanner/Volleyball_01.gif";

	CampPic_04 = new Image();
	CampPic_04.src="../images/SCBanner/Volleyball_02.gif";
	/************** Bilder vorladen ****************/

	function setLayerClassByRandom (pLayerName) {
	
		AllClassNames = new Array ('SCVolleyball01','SCVolleyball02','SCFussball01','SCFussball02');
		
		var Entries = AllClassNames.length;
		//alert(Entries);
		var randomnumber = Math.floor(Math.random() * Entries);
		//alert(randomnumber);
		var pClassName = AllClassNames [randomnumber];

		if(ie) {
			document.all[pLayerName].className = pClassName;
		}
		if(ns) {
			document.layers[pLayerName].className = pClassName;
		}
		if(ns6) {
			document.getElementById(pLayerName).className = pClassName;
		}

	}
	//SPORTCAMP-BANNER ZUFAELLIG AUSWAEHLEN
	


