/*
	:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
	Pop Up Function for centered Pop Up
	:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::	
	*/         

	function NewWindow(mypage, myname, w, h, scroll) {
	var winl = (screen.width - w) / 2;
	var wint = (screen.height - h) / 2;
	winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable=false'
	win = window.open(mypage, myname, winprops)
	if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
	}
	
	
	
	/*
Warenkorb Function - send to basket
*/

function sendtobasket(prodname,prodid,prodprice,prodtax,prodlink)
		{
			// Bei bedarf in neuem Fenster oeffen:
			var winbasket;
			var left = (screen.availWidth/2) - (680/2);
			var top = (screen.availHeight/2) - (500/2);
			
			
			winbasket=open("dummy.html","basket","width=680,height=500,left="+left+",top="+top+",toolbar=no,status=no,scrollbars=yes,resizable=no,menubar=no,location=no,hotkeys=no,dependent=no");
			document.tobasket.target="basket"; // Immer dasselbe Zielfenster (Popup)
						
			//Werte aus Link in Hidden-Formularelement schreiben:
			document.tobasket.prodid.value=prodid;
			document.tobasket.prodname.value=prodname;
			document.tobasket.prodprice.value=prodprice;
			document.tobasket.prodtax.value=prodtax;
			document.tobasket.prodlink.value=prodlink;
			document.tobasket.view.value="addprod"; 	// Formular-Action zum Ausfuehren der Hinzufuegen-Funktion
			document.tobasket.action="https://sslsites.de/plankton-manifest.ost-kombinat.net/Basket/basket.php";
			document.tobasket.submit();					// Abschicken
		}
		
