function t(t, a ,n, p, v) {
alert("Artikel: "+a+"  Anzahl "+n+ " wurde in den Warenkorb gelegt !"); 
name1 = "p1r2i|"+a+"|"+t+"|"+n+"|"+p+"|"+v;
document.cookie =  name1+"=";}
function CookieSetzen (name, wert, verfall, pfad, domain, sicher) { 
  document.cookie =  name + "=" + escape (wert) + 
		     ((verfall) ? "; expires=" + verfall.toGMTString() : "") + 
		     ((pfad) 		? "; path=" + pfad : "") +
		     ((domain) 	? "; domain=" + domain : "") + 
		     ((sicher) 	? "; secure=" + sicher : "");
}
function WegdaCookie(name, pfad, domain) { 
	Ehemals = new Date (); 
	Ehemals.setTime (Ehemals.getTime () - (365 * 24 * 60 * 60 * 1000));
	CookieSetzen (name, "", Ehemals, pfad, domain); 
  }
function FotoWindow(bildurl,b,h)  
{     
var eigenschaft,sbreite,shoehe,fenster,b,h; 
// stellt die Bildschirmabmessungen fest  
// find window size      
var ns6 = (!document.all && document.getElementById);   
var ie4 = (document.all); 
var ns4 = (document.layers);  
if(ns6||ns4) {     
sbreite = innerWidth;  
shoehe = innerHeight;   
}       
else if(ie4) {  
sbreite = document.body.clientWidth; 
shoehe = document.body.clientHeight; 
}   
x = (sbreite-b)/2;  
y = (shoehe-h)/2;   
eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no";       
fenster=window.open("","",eigenschaften);   
fenster.focus();      
fenster.document.open();  
with (fenster) {  
  document.write('<html><head>'); 
  document.write('<title>Bild zum Projekt</title></head>'); 
  // bei Focusverlust schliessen, close if window looses focus 
  document.write('<body onblur="window.close()" '); 
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">' ); 
  document.write('<center>'); 
  document.write('<img src="'+ bildurl +'"border="0">');     
  document.write('<center>');   
  document.write('</body></html>');    
  fenster.document.close(); 
} 
}  
function agb() { 
 //if (form.AGBs________.checked != true )   form.submit.style.visibility = "hidden";  
 //if (form.AGBs________.checked == true )   form.submit.style.visibility = "visible";  
 if (document.form.AGBs________.checked != true ) alert("Bitte zuerst AGB''s bestätigen !");
 else  
 if (document.form.email_______.value == '' ) alert("Bitte Emailadresse eingeben!");
 else  
 if (document.form.email_______.value.indexOf('.') < 0) alert("Emailadresse ungueltig!");
 else   
 if (document.form.email_______.value.indexOf('@') < 0) alert("Emailadresse ungueltig!");
 } 
function  focus1() { 
document.form.Name________.select(); 
}

