function couponAktivieren(couponCode) {
	document.getElementById("inhalt_fx").innerHTML = '<iframe src="/control/addpromocode/showcart?productPromoCodeId='+couponCode+'" width="1" height="1" frameborder="0"></iframe>';
	//alert("Coupon Code '"+couponCode+"' aktiviert");
}
function trimmen(str){
	while(str.substring(0,1)==' ')str=str.substring(1,str.length);
	while(str.substring(str.length-1,str.length)==' ')str=str.substring(0,str.length-1);
	return str;
}
function geschenkWaehlen(produktNr) {
	warenkorbIndex = document.getElementById("ajaxAddToCart").firstChild.nodeValue;
	prodPos = warenkorbIndex.split(" ");
	//alert('*'+trimmen(prodPos[0])+'*');

	if ((prodPos[0] == "ist") || (prodPos[0] == "Aucun")) {
		prodPos[0] = 0;
	}
	produktPosition = parseInt(prodPos[0]);
	iframeInhalt = '<iframe src="/control/setDesiredAlternateGwpProductId?alternateGwpProductId='+produktNr+'&alternateGwpLine='+produktPosition+'" name="geschenkWaehlen" width="0" height="0" frameborder="0"></iframe>';
	//alert(iframeInhalt);
	document.getElementById("inhalt_fx").innerHTML = iframeInhalt;
	//alert("Geschenk "+produktNr+" gewählt");
}
function grafikZeichnen(trackNr_1,trackNr_2) {
	var uri = 'http://impde.tradedoubler.com/imp?type(js)pool('+trackNr_1+')a('+trackNr_2+')' + new String (Math.random()).substring (2, 11);
	document.write('<sc'+'ript type="text/javascript" src="'+uri+'" charset="ISO-8859-1"></sc'+'ript>');
}