function fZoom(imageName,imageWidth,imageHeight,bildunterschrift) 
{ 

if (fZoom.arguments.length>3){
  if (imageHeight>450){
    newWindow = window.open("","newWindow","width="+(35+imageWidth)+",height="+(50+450)+",scrollbars=yes");
  }else{
    newWindow = window.open("","newWindow","width="+(20+imageWidth)+",height="+(50+imageHeight)+",scrollbars=no,resizable=no");
  }
}else{
  if (imageHeight>450){
    newWindow = window.open("","newWindow","width="+(35+imageWidth)+",height="+(20+450)+",scrollbars=yes");
  }else{
    newWindow = window.open("","newWindow","width="+(20+imageWidth)+",height="+(20+imageHeight)+",scrollbars=no,resizable=no");
  }
}


//newWindow=window.open("","newWindow","width="+(20+imageWidth)+",height="+(1+fensterheigth)+", scrollbars=no");
newWindow.document.open();
newWindow.document.write('<html><head><title>PRODOK - The Advisor Company - Zoom</title>');
newWindow.document.write('<link rel=stylesheet ype="text/css" href="../library/parallaxis.css"></head>');
newWindow.document.write('<body bgcolor="#111015" leftmargin="0" topmargin="10" marginheight="10" marginwidth="0" background="../images/hg_streifen.gif" onBlur="self.close()">'); 

newWindow.document.write('<p align="center"><img src=\"'+imageName+'\"  align="absmiddle" border=0>'); 

if (fZoom.arguments.length>3){
newWindow.document.write('<br><br><b>'+ bildunterschrift+'</b>')
}
newWindow.document.write('<br><br><a href="javascript:self.close()">Fenster schlie&szlig;en</a></p></body></html>');

newWindow.document.close(); 
newWindow.focus(); 
}




function fZoomKarte(imageName,imageWidth,imageHeight,bildunterschrift) 
{ 

newWindow = window.open("","newWindow","width="+(500)+",height="+(500)+",scrollbars=yes, resizable=yes");

newWindow.document.open();
newWindow.document.write('<html><head><title>3rd Wednesday - Zoom</title>');
newWindow.document.write('<link rel=stylesheet ype="text/css" href="../Library/parallaxis.css"></head>');
newWindow.document.write('<body bgcolor="#111015" leftmargin="0" topmargin="10" marginheight="10" marginwidth="0" background="../images/streifen_hg.gif" onBlur="self.close()">'); 

newWindow.document.write('<p align="center"><img src=\"'+imageName+'\"  align="absmiddle" border=0></a>'); 

if (fZoomKarte.arguments.length>3){
newWindow.document.write('<br><br><b>'+ bildunterschrift+'</b>')
}

newWindow.document.write('<br><br><a href="javascript:self.close()">Fenster schlie&szlig;en</a></p></body></html>');

newWindow.document.close(); 
newWindow.focus(); 
}






if(top.frames.length < 1) {
var aktuelle_url=document.URL;
top.location.href= "../index.html";
}


/* 

(c)2001 www.parallaxis.de -- www.3rdwednesday.de
 Navigation Funktionsbibliothek

*/

function MM_findObj(n, d) { //v3.0
  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); return x;
}
/* Functions that swaps down images. */
function MM_nbGroup(event, grpName) { //v3.0
  var i,img,nbArr,args=MM_nbGroup.arguments;
  if (event == "init" && args.length > 2) {
    if ((img = MM_findObj(args[2])) != null && !img.MM_init) {
      img.MM_init = true; img.MM_up = args[3]; img.MM_dn = img.src;
      if ((nbArr = document[grpName]) == null) nbArr = document[grpName] = new Array();
      nbArr[nbArr.length] = img;
      for (i=4; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
        if (!img.MM_up) img.MM_up = img.src;
        img.src = img.MM_dn = args[i+1];
        nbArr[nbArr.length] = img;
    } }
  } else if (event == "over") {
    document.MM_nbOver = nbArr = new Array();
    for (i=1; i < args.length-1; i+=3) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = (img.MM_dn && args[i+2]) ? args[i+2] : args[i+1];
      nbArr[nbArr.length] = img;
    }
  } else if (event == "out" ) {
    for (i=0; i < document.MM_nbOver.length; i++) {
      img = document.MM_nbOver[i]; img.src = (img.MM_dn) ? img.MM_dn : img.MM_up; }
  } else if (event == "down") {
    if ((nbArr = document[grpName]) != null)
      for (i=0; i < nbArr.length; i++) { img=nbArr[i]; img.src = img.MM_up; img.MM_dn = 0; }
    document[grpName] = nbArr = new Array();
    for (i=2; i < args.length-1; i+=2) if ((img = MM_findObj(args[i])) != null) {
      if (!img.MM_up) img.MM_up = img.src;
      img.src = img.MM_dn = args[i+1];
      nbArr[nbArr.length] = img;
  } }
}

/* Functions that handle preload. */
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 fMenu(Menunummer) {
switch (Menunummer) {
case 0: 
parent.oben.location.href='Navi0.html';
parent.inhalt.location.href='../pages/home.html';
break;
case 1: 
parent.oben.location.href='Navi1.html';
parent.inhalt.location.href='../pages/10_die_idee.html';
break;
case 2: 
parent.oben.location.href='Navi2.html';
parent.inhalt.location.href='../pages/20_partner.html';
break;
case 3: 
parent.oben.location.href='Navi3.html';
parent.inhalt.location.href='../pages/30_veranstaltungen.html';
break;
case 4: 
parent.oben.location.href='Navi4.html';
parent.inhalt.location.href='../pages/40_location.html';
break;
case 5: 
parent.oben.location.href='Navi5.html';
parent.inhalt.location.href='../pages/50_kontakt.html';
break;
case 6: 
parent.oben.location.href='Navi6.html';
parent.inhalt.location.href='../gaestebuch/index.html';
break;
}
}

/* 

(c)2001 www.parallaxis.de  
 Funktionsbibliothek

*/


function fBack() //Funktion des Browser-Zurueck-Buttons 
{ 
history.back(1);
} 




function chkForm()
		{
		  var valid
		  valid = true;
		  if(!chkName())  	//Namen generell ueberpruefen
		    {
		    valid = false;
		    return valid;
		    exit;
		    }
					//Abfrage ob Email, Fax oder Postversand
		 /* for (i=0;i<=2;i++)
		    {
		      if (document.Anfrage.BestaetigungPer[i].checked==1)
			var Eingabe = document.Anfrage.BestaetigungPer[i].value;
		    }
		  switch(Eingabe)
		    {
		      case "Email":
			if(!chkEmail())		//Email-Anfrage
			  {
			  valid = false;
			  return valid;
			  }
			break;
		      case "Fax":
			if(!chkFax())		//Fax-Anfrage
			  {
			  valid = false;
			  return valid;
			  }
			break;
		      case "Post":
			if(!chkAdresse())	//Post-Anfrage
			  {
			  valid = false;
			  return valid;
			  }
			break;
		    }*/
		  return valid;
		}


	function chkName()
		{
		if(document.Anfrage.Name.value == "")
		  {
		    alert("Bitte geben Sie Ihren Namen ein!");
		    document.Anfrage.Name.focus();
		    return false;
		  }
		else
		  return true;
		}

	function chkAdresse()
		{
		if((document.Anfrage.Strasse.value == "") 
			|| (document.Anfrage.PLZ.value == "")
			|| (document.Anfrage.Ort.value == "")
			|| (document.Anfrage.Land.value == ""))
		  {
		  alert("Bitte geben Sie Ihre komplette Adresse ein!");
		  document.Anfrage.Strasse.focus();
		  return false;
		  }
		else
		  return true;
		}

	function chkEmail()
		{
		var adress = document.Anfrage.email.value;
		if ((adress =="")
			|| (adress.indexOf ('@') == -1)
			|| (adress.indexOf ('.') == -1))
		 {
		  alert("Bitte geben Sie Ihre Email-Adresse ein!");
		  document.Anfrage.email.focus();
		  return false;
		  exit;
		 }
		else
		  return true;
		}

	function chkFax()
		{
		if(document.Anfrage.Telefax.value == "")
		 {
		  alert("Bitte geben Sie Ihre Fax-Nummer ein!");
		  document.Anfrage.Telefax.focus();
		  return false;
		  exit;
		 }
		else
		  return true;
		}