function actionWarenkorb ( produktID, anzahl, mehrpreis ) {
 
 getter = new ajax('shop.warenkorb.action.ajax');
 getter.add('produktID',produktID);
 getter.add('anzahl',anzahl);
 getter.go('topLayerShow');
 //getter.go('refreshBox(\'content/content_3/shop.warenkorb.php\')');
 
 setTimeout('refreshBox(\'content/content_3/shop.warenkorb.php\')',2000);

}

function produktVariante( formObject ) {
	if(tmp = formObject.getElementsByClassName('variante')) {
		
	}
}

function shop_fileZuordnen ( formObject, produktID ) {
 
 if(!formObject) return false;

 getter = new ajax('shop.variante.ajax');
 
 getter.add('action','zuordnen');
 getter.add('varianteID',formObject.varianteID.value);
 getter.add('produktID',produktID);
 getter.add('uploadID',formObject.fileSelect.value);
 getter.go('topLayerShow');
}

function shop_neueVariante ( produktID ) {
 getter = new ajax('shop.variante.ajax');
 getter.add('produktID',produktID);
 getter.go('topLayerShow');
}

function shop_neueVarianteErstellen( produktID ) {
	getter = new ajax('shop.variante.ajax');
	getter.add('produktID', produktID);
	getter.add('action','erstellen');
	getter.go('topLayerShow');
}

if(tmp = document.getElementsByClassName("actionWarenkorb")) {
	for(var i=0 ; i<tmp.length ; i++) {
	 //alert(tmp[i].refresh.value);
	 //alert(tmp[i].anzahl.value);
	 addEvent(tmp[i], 'submit', function() { actionWarenkorb(this.produktId.value,this.anzahl.value,produktVariante(this)); } );
	}
}
