function infoFenster(welches, WinName)
	{
	window.open("/pages/info/info_"+welches+".htm", "Info", "width=600, height=450, scrollbars=yes, dependent=yes, location=no, resizable=no, toolbar=no, status=no")
	}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function gedichtFenster(welches, WinName)
	{
	window.open("/pages/gedichte/vl_ged.php?Gedicht=g_"+welches, WinName , "width=520, height=450, scrollbars=yes, dependent=yes, location=no, resizable=no, toolbar=no, status=no")
	}

function gedankenFenster(welches, WinName)
	{
	window.open("/pages/gedichte/vl_ged.php?Gedicht=s_"+welches, WinName , "width=520, height=450, scrollbars=yes, dependent=yes, location=no, resizable=no, toolbar=no, status=no")
	}

function OpenNewWindow(Picture,Breit,Hoch,Name)
{
xsize = Breit+45;// Zusatz für Rand rechts und links
ysize = Hoch+130; //Zusatz für Rand oben und unten - damit Button angezeit werden kann 
    
ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/2)-(xsize/2);
ypos = (ScreenHeight/2)-(ysize/2);
	
	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>Claudia Eckstein");
	NewWindow.document.write ("</title><link href='style/selbstwaertsReloaded.css' rel='stylesheet' type='text/css'></head>");
    NewWindow.document.write ("<body color='#000000' bgcolor='#92CFFB' onload='self.focus();'>");
	//NewWindow.document.write ("<body bgcolor='#cccccc'>");
	NewWindow.document.write ("<table style='color: FFFFFF;' onclick='self.close();' align='center'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='1' bgcolor='#000000' cellpadding='0' cellspacing='1'><tr><td align='center'>");
	NewWindow.document.write ("<img src=");
	NewWindow.document.write (Picture);
	NewWindow.document.write (">");
	NewWindow.document.write ("</tr></table>");
	NewWindow.document.write ("</td></tr><tr>");
	NewWindow.document.write ("<td align='center' valign='bottom'>");
	NewWindow.document.write ("<center><font size='+1' face='arial, helvetica, sans-serif' color='#000000'> - "+Name+" -<br></font><font face='arial, helvetica, sans-serif' color='#000000'> Zum schliessen in das Bild klicken</font>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</body></html>");
	NewWindow.document.close();
                     NewWindow.resizeTo(xsize,ysize); 
}

function clearField(feld, uebergabe) {
	if (feld.value == uebergabe) {
		feld.value = "";
		feld.focus();
		}
}

function checkField(feld, uebergabe, referenz) {
	if ((feld.value != feld.initval) && (feld.value != " ") && (feld.value != "") && (feld.value.length < 4)) 
		{
		alert('Bitte sinnvolle Werte eingeben ... \n\n');
		feld.value = uebergabe;
		}
	if ((feld.value == uebergabe) || (feld.value == " ") || (feld.value == "")) {
		feld.value = uebergabe;
		}
	if (document.kontakt.Telefon.value == 'Telefonnummer') document.kontakt.Erreichbarkeit.disabled = true;
	if (document.kontakt.Telefon.value == uebergabe) document.kontakt.Telefonkontakt.checked=false; 
	if (document.kontakt.Email.value == uebergabe) document.kontakt.Emailkontakt.checked = false;
}

function checkcheckSonstiges(isitchecked)
	{
	if 	(isitchecked.checked) 
		{
		document.kontakt.Konkret.disabled = false;
		isitchecked.checked=true;
		document.kontakt.Konkret.value = "";
		document.kontakt.Konkret.focus();
		}
	else
		{
		document.kontakt.Konkret.blur();
		document.kontakt.Konkret.disabled = true;
		document.kontakt.Konkret.value = document.kontakt.Konkret.initval;
		isitchecked.checked = false;
		}
	}

function checkSonstiges(feld, uebergabe) {
//	if ((document.anmeldung.stadt.value == uebergabe) || (document.anmeldung.stadt.value == " ")) {
	if ((feld.value != uebergabe) && (feld.value != "") && (feld.value != " ")){
		document.kontakt.Sonstiges.checked = true;
		}
		else {
				document.kontakt.Sonstiges.checked = false;
				document.kontakt.Konkret.disabled = true;
			 }
	}

function warnmeldung(anzeigen) { 
  document.Meldung = confirm('ACHTUNG !\n\n Sind Sie sicher, dass sie die Eingaben wirklich LÖSCHEN wollen ?');
}

function inputter(feld, ziel, uebergabe)
	{
	if (feld.checked == true) document.kontakt[ziel].focus();
	if (feld.checked == false) {document.kontakt[ziel].blur(); document.kontakt[ziel].value = uebergabe;}
	}

function formCheck() { 
	var errors = '', Info = 'Es sind folgende Fehler aufgetreten: \n\n';
	if ((document.kontakt.Name.value == "") || (document.kontakt.Name.value == "Ihr Name") || (document.kontakt.Name.value == " "))
	{
	errors = (Info += '- bitte geben Sie Ihren Namen ein! (Vorname genügt evtl.)\n')
	
	document.kontakt.Name.focus();
	}
	if (!((document.kontakt.botcheck.value == "sieben") || (document.kontakt.botcheck.value == "Sieben")))
	{
	errors = (Info += '- bitte überprüfen Sie die Sicherheitsabfrage \n und ergänzen Sie die richtige Summe als Zahlwort\n')
	
	document.kontakt.botcheck.focus();
	}

	if (((document.kontakt.Email.value.indexOf('@')<1) || (document.kontakt.Email.value.lastIndexOf('.')<((document.kontakt.Email.value.indexOf('@'))+4) )) && (document.kontakt.Emailkontakt.checked==true))
		errors = (Info += '- die von Ihnen eingegebene E-Mail-Adresse scheint nicht gültig zu sein \n');
	if 	(((document.kontakt.Email.value == "") || (document.kontakt.Email.value == "E-Mail") || (document.kontakt.Email.value == " ") || (document.kontakt.Email.value.indexOf('@')<1)) && ((document.kontakt.Telefon.value == " ") || (document.kontakt.Telefon.value == "Telefonnummer") || (document.kontakt.Telefon.value == "") || (document.kontakt.Telefon.value.length < 4)))
		{
		errors = (Info += '- bitte geben Sie entweder eine gültige Emailadresse ein oder nennen Sie mir Ihre Telefonnummer.\n')
		}
	if ((document.kontakt.Email.value == "") || (document.kontakt.Email.value == "E-Mail") || (document.kontakt.Email.value == " ") || (document.kontakt.Email.value.indexOf('@')<1)) 
			document.kontakt.Emailkontakt.checked = false;
	if ((document.kontakt.Telefon.value == " ") || (document.kontakt.Telefon.value == "Telefonnummer") || (document.kontakt.Telefon.value == "") || (document.kontakt.Telefon.value.length < 4)) 
			document.kontakt.Telefonkontakt.checked = false;
	if ((document.kontakt.Heilbehandlung.checked == false) && (document.kontakt.MedSW.checked == false)&& (document.kontakt.SLB.checked == false) && (document.kontakt.Kommunikation.checked == false) && (document.kontakt.Sonstiges.checked == false) && (document.kontakt.Grundlagenseminar.checked == false))
		{
		errors = (Info += '- bitte geben Sie mindestens ein Interessengebiet an.\n')
		}
	if ((document.kontakt.Sonstiges.checked) && ((document.kontakt.Konkret.value == document.kontakt.Konkret.initval) || (document.kontakt.Konkret.value == "") || (document.kontakt.Konkret.value == " "))) {		errors = (Info += '- bitte konkretisieren Sie Ihre Anfrage nach Sonstigem! \n');}
	if (errors != '') 
		{
		errors = (Info += '\n \n Bitte korrigieren Sie Ihre Eingaben entsprechend.');
		alert(Info);
		}
	document.Meldung = (errors == '');
	}


function stripNumbers(stringToCheck) {
result=document.kontakt.Name.value.replace(/[0-9.]/gi,'');
document.kontakt.Name.value=result;
}

function ansprache()
	{
	if ((document.kontakt.Emailkontakt.checked) && ((document.kontakt.Email.value == "") || (document.kontakt.Email.value == "E-Mail") || (document.kontakt.Email.value == " ") || (document.kontakt.Email.value.indexOf('@')<1))) 
			{
			document.kontakt.Emailkontakt.checked = false;
			alert('Wenn ich Sie per Email ansprechen soll, müssen Sie eine gültige Emailadresse eingeben.');
			document.kontakt.Email.value='E-Mail';
			document.kontakt.Email.blur();
			}
	if ((document.kontakt.Telefonkontakt.checked) && ((document.kontakt.Telefon.value == " ") || (document.kontakt.Telefon.value == "Telefonnummer") || (document.kontakt.Telefon.value == "") || (document.kontakt.Telefon.value.length < 4))) 
			{
			document.kontakt.Telefonkontakt.checked = false;
			alert('Wenn ich Sie per Telefon ansprechen soll, müssen Sie eine gültige Telefonnumer eingeben.');
			document.kontakt.Telefon.value='Telefonnummer';
			document.kontakt.Telefon.blur();
			document.kontakt.Erreichbarkeit.disabled = true;
			}
	}




/* ================================================================ 
This copyright notice must be kept untouched in the stylesheet at 
all times.

The original version of this script and the associated (x)html
is available at http://www.stunicholls.com/menu/pro_drop_1.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This script and the associated (x)html may be modified in any 
way to fit your requirements.
=================================================================== */
stuHover = function() {
	var cssRule;
	var newSelector;
	for (var i = 0; i < document.styleSheets.length; i++)
		for (var x = 0; x < document.styleSheets[i].rules.length ; x++)
			{
			cssRule = document.styleSheets[i].rules[x];
			if (cssRule.selectorText.indexOf("LI:hover") != -1)
			{
				 newSelector = cssRule.selectorText.replace(/LI:hover/gi, "LI.iehover");
				document.styleSheets[i].addRule(newSelector , cssRule.style.cssText);
			}
		}
	var getElm = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<getElm.length; i++) {
		getElm[i].onmouseover=function() {
			this.className+=" iehover";
		}
		getElm[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", stuHover);


<!--

function zeigeBeispiel(szDivID, iState) // 1 visible, 0 hidden
{

//	if (iState == 1) {

//		var xyz = '<img src=\"pics/start_fruehling.jpg\" width=\"350\" height=\"200\" border=\"0\">'; 
//		if (document.getElementById('filmbereich') != xyz) {
//			document.getElementById('filmbereich').innerHTML = xyz;
//			}
		
//		}		
		
	if (iState == 1) { 
		window.location.hash = "#top";
		} else {
		window.location.hash = "#top";
		}
	
	if(document.layers)	   //NN4+
    {
       document.layers[szDivID].visibility = iState ? "show" : "hide";
    }
    else if(document.getElementById)	  //gecko(NN6) + IE 5+
    {
        var obj = document.getElementById(szDivID);
        obj.style.visibility = iState ? "visible" : "hidden";
    }
    else if(document.all)	// IE 4
    {
        document.all[szDivID].style.visibility = iState ? "visible" : "hidden";
    }
}

// -->

function DoNothing()
{
// einfach mal durchatmen... 
}


//####################################################################
// FÜR DIE ASTROLOGIE UND NUMEROLOGIE


function zeitcheck(feld)
	{
	if (document.forms.birth.usetime.checked == false) 
	 {zustand = true; 
	  document.forms.birth.usetime.value = 'no';
	 }
	else { 
	zustand = false; 
	  document.forms.birth.usetime.value = 'yes';
	}
	document.forms.birth.minute.disabled = zustand;
	document.forms.birth.stunde.disabled = zustand;
	}


function letzteAuswahl(feld, typ)
	{
	var dorthin = feld;
	for(i=0;i<document.forms.birth[dorthin].length;++i)
	 if(document.forms.birth[dorthin].options[i].value == typ)
	     (document.forms.birth[dorthin].options[i].selected = true);
	}

function insertListValue(feld, typ)
	{
	var dorthin = feld;
	for(i=0;i<document.forms.form1[dorthin].length;++i)
	 if(document.forms.form1[dorthin].options[i].value == typ)
	     (document.forms.form1[dorthin].options[i].selected = true);
	}




// END FÜR DIE ASTROLOGIE UND NUMEROLOGIE
//################################################################### 