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


function check(s)
{
	  	  
	  if (document.feedbackForm.name.value == "")
 		 {
    			alert("Geben Sie einen Wert in das Feld \"Name\" ein.");
    			document.feedbackForm.name.focus();
    			return (false);
  		}
  		  
  	  	  
	 if (document.feedbackForm.mail.value == "")
 		{
			 alert("Geben Sie einen Wert in das Feld \"E-mail\" ein.");
 			document.feedbackForm.mail.focus();
			 return (false);
		 }
 	else
 		{
			 var strmail = new String();
 			strmail = document.feedbackForm.mail.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.feedbackForm.mail.focus();
  			return(false);
   			}
   		}
	  if (document.feedbackForm.kommentar.value == "")
  		{
    			alert("Geben Sie einen Wert in das Feld \"Kommentar\" ein.");
   			 document.feedbackForm.kommentar.focus();
   			 return (false);
   		}
	 
 		 return submitForm(feedbackForm.abschicken);		  	 		  		 
 }

function OpenNewWindow(Picture,Breit,Hoch)
{
	xsize = Breit+40; 
	ysize = Hoch+130; 
    
	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>.:. Parson Russell Terrier von Erlendorf Highlands .:. - Bildanzeige");
	NewWindow.document.write ("</title></head>");
	NewWindow.document.write("<body background='images/bildback.gif' leftmargin=0 topmargin=5 marginwidth=0 marginheight=5 onload='focus()' onBlur='close()'>");
	NewWindow.document.write ("<table align='center'><tr>");
	NewWindow.document.write ("<td align='center' valign='top'>");
	NewWindow.document.write ("<table border='1' bordercolor='#cccccc' cellpadding='0' 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:#CCCCCC;color:#336699;font-family:Verdana; 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); 
}
