function grer ()
    {
        window.open("shampoo_erde.htm","Erde","width=400,height=470,left=30,top=30,scrollbars=no");
        self-focus;
    };
function wefe ()
    {
        window.open("shampoo_weiss.htm","Weiss","width=400,height=470,left=30,top=30");
        self-focus;
    };
function cond ()
    {
        window.open("conditioner.htm","Condi","width=400,height=520,left=30,top=30");
        self-focus;
    };
    
function lot ()
    {
        window.open("lotion.htm","lotion","width=400,height=520,left=30,top=30");
        self-focus;
    };

function za ()
    {
        window.open("zahn.htm","zahnspray","width=400,height=500,left=30,top=30");
        self-focus;
    };

function tuc ()
    {
        window.open("tuecher.htm","tuch","width=400,height=470,left=30,top=30");
        self-focus;
    };


var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		start2_02_start2_09_over = newImage("images/start2_02-start2_09_over.gif");
		start2_02_start2_08_over = newImage("images/start2_02-start2_08_over.gif");
		start2_02_start2_07_over = newImage("images/start2_02-start2_07_over.gif");
		start2_05_start2_09_over = newImage("images/start2_05-start2_09_over.gif");
		start2_05_start2_08_over = newImage("images/start2_05-start2_08_over.gif");
		start2_05_start2_07_over = newImage("images/start2_05-start2_07_over.gif");
		preloadFlag = true;
	}
}

window.defaultStatus = ".:. Willkommen bei Evis Hundestyling - Produktbestellung .:.";

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

function abfrage(s)
{

if (document.orderForm.Vorname.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Vorname\" ein.");
    document.orderForm.Vorname.focus();
    return (false);
  }

if (document.orderForm.Zuname.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Zuname\" ein.");
    document.orderForm.Zuname.focus();
    return (false);
  }


if (document.orderForm.Anrede.selectedIndex == 0)
  {
    alert("Die erste \"Anrede\"-Option ist keine gültige Wahl.\n    Wählen Sie eine der anderen Optionen.");
    document.orderForm.Anrede.focus();
    return (false);
  }

  
  if (document.orderForm.Adresse.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Adresse\" ein.");
    document.orderForm.Adresse.focus();
    return (false);
  }
  
 if 
    (document.orderForm.PLZ.value.length =="")
   {
    alert ("Geben Sie einen Wert in das Feld \"PLZ\" ein.");
    document.orderForm.PLZ.focus();
    return (false);
   }
  if
    (document.orderForm.PLZ.value.length!=4)
    {
    alert ("Geben Sie eine gültige PLZ ein.");
    document.orderForm.PLZ.focus();
    return (false);
    }
    
  if (document.orderForm.Ort.value == "")
  {
    alert("Geben Sie einen Wert in das Feld \"Ort\" ein.");
    document.orderForm.Ort.focus();
    return (false);
  }

     if (document.orderForm.Email.value == "")
  {
     alert("Geben Sie einen Wert in das Feld \"Email\" ein.");
     document.orderForm.Email.focus();
     return (false);
  }
 	else
  {
	var strmail = new String();
 	strmail = document.orderForm.Email.value;
   	erg=(strmail.search('@')>=1 && (strmail.lastIndexOf('.')-2) > strmail.search('@') && strmail.lastIndexOf('.')>=strmail.length-5 && (strmail.length-2>strmail.lastIndexOf('.')));
   	if (erg == false)
   		{
   		alert("Geben Sie eine gültige E-Mailadresse ein");
   		document.orderForm.Email.focus();
  		return(false);
   		}
  }
  	
   if (!(document.orderForm.Zahlungsart[0].checked || document.orderForm.Zahlungsart[1].checked || document.orderForm.Zahlungsart[2].checked))
  {
    alert("Wählen Sie eine \"Zahlungsart\".");
    return (false);
  }
   
 return submitForm(orderForm.absenden);
 }
function OpenNewWindow(Picture,Breit,Hoch)
{
	xsize = Breit+30; 
	ysize = Hoch+100; 
    
	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>.:. Evis Hundestyling .:.");
	NewWindow.document.write ("</title></head>");
	NewWindow.document.write("<body bgcolor='#FFFFFF' background='img/back_pic.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:999999;color:FFFFFF;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); 
}
window.defaultStatus = ".:. Willkommen bei Evis Hundestyling .:.";

