////////////////
// Funktion RIT
////////////////

	/* NEW WINDOW GENERAL*/
	function NewWindow(url, w, h, name, scroll) {
		NewWin = window.open(url,name,"width="+w+",height="+h+",scrollbars="+scroll+",status=no,toolbar=no,menubar=no,resizable=yes");
		//location=no,toolbar=no,menubar=no,status=no,scrollbars=no,resizable=no
		NewWin.focus();
	}

	/* DEFAUL POPUP FENSTER */
	function showPopup(mnuId, mnuUrl) {
		NewWindow( mnuUrl, 600, 600, "wodegopopup", "yes");
	}


	/* DEFAUL POPUP FENSTER */
	function showPopupS(mnuId, mnuUrl) {
		NewWindow( mnuUrl, 600, 600, "wodegopopupS", "yes");
	}



//	/* SHOW SITEMAP POPUP FENSTER */
//
//	alte Version von Manuel -> nun wird showPopup verwendet
//	function showSiteMap(mnuId, mnuUrl) {
//		NewWindow( mnuUrl, 600, 600, "wodegositemap", "yes");
//	}

	/*IMAGE GALLERY POPUP WINDOW*/
	function oeffne(showsite, sprachID,topic) {
		//sc = parent.navi.document.navigation.sc.value;
		var sc=1;
		switch(showsite)
		{
		/*
		case 'newsbilddurchsicht':
			var newsid = document.news.newsid.value;
			window.open('popup/frameset.php?sprachID='+sprachID+'&seitenname='+showsite+'&newsid='+newsid, showsite, 'width=600,height=520,left=100,top=100,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no');
			break;
		*/
		case 'page_popup_gallery':
			var referenzenid = document.referenzen.referenzenid.value;
			fs = window.open(''+showsite+'.php?sprachID='+sprachID+'&seitenname='+showsite+'&referenzenid='+referenzenid+'&topic='+topic, showsite, 'width=600,height=600,left=100,top=100,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no');
			fs.focus();
			break;

		default:
			fs = window.open(''+showsite+'.php?sprachID='+sprachID+'&seitenname='+showsite+'&referenzenid='+referenzenid+'&topic='+topic, showsite, 'width=600,height=600,left=100,top=100,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no');
			fs.focus();
			break;
		}
	}
	/*/ IMAGE GALLERY */



	/* HAENDLER SUCHE CODE */
	function showAllHaendlerResults(){
		document.haendlernetz.postcode.value= "alle";
			//document.haendlernetz.postcode.value = plz;
		document.haendlernetz.searchString.value='';
		//document.haendlernetz.land.value='';
		//document.haendlernetz.hiddenLand.value='true';
		document.haendlernetz.submit();
	}
	//window.onload = function() {showAllHaendlerResults();}

	function wechsel(postcode) {
		document.haendlernetz.postcode.value= postcode;
		document.haendlernetz.searchString.value = '';
		document.haendlernetz.submit();
	}

/*
	function changeCountry(country) {
		document.haendlernetz.postcode.value= postcode;
		document.haendlernetz.searchString.value = '';
		document.haendlernetz.submit();
	}
*/

	/*
		Überprüft ob bereits ein Land ausgewählt wurde.
		Standardmäßig wird Deutschland ausgewählt.
		Sollte das Land NICHT Deutschland, Schweiz oder Österreich sein,
		wird die Postleitzahl ausgeblendet!

	*/
	function checkcountryid(countryid){
		if (document.haendlernetz){
			if (countryid === undefined){
				if (document.haendlernetz.land.value!= ''){
					countryid = document.haendlernetz.land.value;
				}
			}
			/*
			countryid==10 - Deutschland
			countryid==11 - Schweiz
			countryid==42 - Österreich
			*/
			if (countryid==10 || countryid==11 || countryid==42){
				//document.haendlernetz.postcode.value='alle';
				document.getElementById('postcodeID').style.visibility='visible';
			}else{
				document.haendlernetz.postcode.value='alle';
				document.getElementById('postcodeID').style.visibility='hidden';
			}
		}
	}


/* / HAENDLER SUCHE */



	/* AKTUELLES */
	function oeffne(showsite, sprachID, topic) {
		var sc=1;
		switch(showsite) {
			case 'page_popup_gallery':
				var referenzenid = document.referenzen.referenzenid.value;
				fs = window.open(''+showsite+'.php?sprachID='+sprachID+'&seitenname='+showsite+'&referenzenid='+referenzenid+'&topic='+topic, showsite, 'width=600,height=600,left=100,top=100,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no');
				fs.focus();
				break;

			default:
				break;
		}
	}
	/* / AKTUELLES */



	function vergroessere(bildname,iL)		{
		window.open('page_popup_bild.php?&seitenname=bilddownload&bildname='+bildname+'&sprachID=iL', 'vergroesserung', 'width=600,height=520,left=100,top=100,resizable=no,scrollbars=no,status=no,toolbar=no,menubar=no');
	}

