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(bild,x,y) {   
m =  window.open("","mywindow","height= 800 ,width= 800,top = 400,left = 400 " );  
m.document.write("<html><head></head><body  topmargin=\"0\" leftmargin=\"0\"><center><img src=\""+bild+"\"  ></body></html>");   
m.resizeTo(x,y);  
m.moveTo( screen.width/2 -  x / 2, screen.height/2-  y / 2);  
m.onblur="close()";   
m.focus();    
}     
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!");
 else   
 if (document.form.Name________.value == '' ) alert("Adresse unvollständig !");
 else   
 if (document.form.Strasse_____.value == '' ) alert("Adresse unvollständig !");
 else   
 if (document.form.Plz_________.value == '' ) alert("Adresse unvollständig !");
 else   
 if (document.form.Ort_________.value == '' ) alert("Adresse unvollständig !");
 } 
function  focus1() { 
document.form.Name________.select(); 
}

