function submitForm(s)
{
s.value="Vielen Dank!";
return true;
}


 function abfrage(s)
{
	 if (document.suppForm.realname.value == "")
 		 {
    			alert("Geben Sie einen Wert in das Feld \"Name\" ein.");
    			document.suppForm.realname.focus();
    			return (false);
  		}
  		  
  	  	  
	 if (document.suppForm.email.value == "")
 		{
			 alert("Geben Sie einen Wert in das Feld \"E-mail\" ein.");
 			document.suppForm.email.focus();
			 return (false);
		 }
 	else
 		{
			 var strmail = new String();
 			strmail = document.suppForm.email.value;
   			erg=(strmail.search('@')>=1 && (strmail.lastIndexOf('.')-2) > strmail.search('@') && strmail.lastIndexOf('.')>=strmail.length-5 && (strmail.length-2>strmail.lastIndexOf('.')));
   			if (erg == false)
   			{
   			maus=alert("Geben Sie eine gültige E-Mailadresse ein");
   			document.suppForm.email.focus();
  			return(false);
   			}
   		}
	 
 		 return submitForm(suppForm.abschicken);
 		  	 		  		 
 }
 

function info()
    {
        window.open("info_rwurf.htm","wurf_info","width=585,height=450,left=30,top=30,scrollbars=yes" );
        self-focus;
    }

function inforuby()
    {
        window.open("ruby_wesenstest.htm","ruby","width=470,height=450,left=30,top=20,scrollbars=yes" );
        self-focus;
    }

function gino()
    {
        window.open("gino.htm","ruede","width=470,height=570,left=30,top=20,scrollbars=yes" );
        self-focus;
    }


function OpenNewWindow(Picture,Breit,Hoch)
{
	xsize = Breit+40; 
	ysize = Hoch+130; 
    
	xpos =20;
	ypos = 20;

	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>Von der Waldfeenh&ouml;he");
	NewWindow.document.write ("</title></head>");
	NewWindow.document.write("<body bgcolor='#800000' background='images/bild_back.gif' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload='focus()'>");
	NewWindow.document.write ("<table align='center'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='1' bordercolor='999999' cellpadding='2' cellspacing='0'><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 ("<br><center><form><input type='button' value='Fenster schliessen' style='background-color:FFFFFF;color:800000;font-family:Arial;font-size:8pt;' onClick='self.close()'>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</form></body></html>");
	NewWindow.document.close();
                     NewWindow.resizeTo(xsize,ysize); 
}
function OpenNewWindow1(Picture,Breit,Hoch)
{
	xsize = Breit+40; 
	ysize = Hoch+130; 
    
	xpos =20;
	ypos = 20;

	NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=yes,resizable=no,top="+ypos+",left="+xpos+"");
	NewWindow.document.write ("<html><head><title>Von der Waldfeenh&ouml;he");
	NewWindow.document.write ("</title></head>");
	NewWindow.document.write("<body bgcolor='#800000' background='images/bild_back.gif' leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onload='focus()'>");
	NewWindow.document.write ("<table align='center'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='1' bordercolor='999999' cellpadding='2' cellspacing='0'><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 ("<br><center><form><input type='button' value='Fenster schliessen' style='background-color:FFFFFF;color:800000;font-family:Arial;font-size:8pt;' onClick='self.close()'>");
	NewWindow.document.write ("</td></tr></table>");
	NewWindow.document.write ("</form></body></html>");
	NewWindow.document.close();
                     NewWindow.resizeTo(xsize,ysize); 
}

  
function belle()
    {
        window.open("belle.htm","bel","width=500,height=510,left=30,top=30,scrollbars=yes" );
        self-focus;
    };

function reggi()
    {
        window.open("reggi.htm","reg","width=500,height=350,left=30,top=30,scrollbars=yes" );
        self-focus;
    };

    
function plan()
    {
        window.open("zufahrt.htm","zufahrt","width=440,height=380,left=10,top=10,scrollbars=yes");
        self-focus;
    };
    
function mail()
    {
        window.open("mail1.htm","schreiben1","width=600,height=500,left=10,top=10,scrollbars=yes");
        self-focus;
    };

function maila()
    {
        window.open("mail2.htm","schreiben2","width=600,height=500,left=10,top=10,scrollbars=yes");
        self-focus;
    };
function mailb()
    {
        window.open("mail3.htm","schreiben3","width=600,height=500,left=10,top=10,scrollbars=yes");
        self-focus;
    };

window.defaultStatus = ".:. Willkommen bei den Belgischen Schäferhunden von der Waldfeenhöhe .:.";
