function updateProduct(priceId, itemnumberId, price_no_taxId, inStockId, titleId, noteId, price3Id, el, pid) {
	var queryStr = '&pid=' + pid;
	if (priceId) queryStr +='&getprice';
	if (itemnumberId) queryStr +='&getitemnumber';
	if (inStockId) queryStr +='&getinStock';
	if (titleId) queryStr +='&gettitle';
	if (noteId) queryStr +='&getnote';
	if (price3Id) queryStr +='&getprice3';
	new Ajax.Request('index.php?eID=tx_nhttproductsdynupdate_pi1' + queryStr + '&' + Form.serialize(el.form).replace(/%0D%0A/,""), {
		onSuccess: function(transport) {
			p = transport.responseText.split(":::");
			$(priceId).innerHTML = p[0];
			$(itemnumberId).innerHTML = p[1];
			$(price_no_taxId).innerHTML = p[2];
			$(inStockId).innerHTML = p[3];
			$(titleId).innerHTML = p[4];
			$(noteId).innerHTML = stripHTML(p[7]).substring (0, 100) + "...";
			$(price3Id).innerHTML = p[8];
		},      
    onFailure: function(){
                    alert("Fehler");
                } 
	});
}

function updateProduct2(priceId, itemnumberId, price_no_taxId, inStockId, titleId, price_only_taxId, noteId, note2Id, price3Id, el, pid) {
	var queryStr = '&pid=' + pid;
	if (priceId) queryStr +='&getprice';
	if (itemnumberId) queryStr +='&getitemnumber';
	if (inStockId) queryStr +='&getinStock';
	if (titleId) queryStr +='&gettitle';
	if (noteId) queryStr +='&getnote';
	if (note2Id) queryStr +='&getnote2';
	if (price3Id) queryStr +='&getprice3';
	new Ajax.Request('index.php?eID=tx_nhttproductsdynupdate_pi1' + queryStr + '&' + Form.serialize(el.form).replace(/%0D%0A/,""), {
		onSuccess: function(transport) {
			p = transport.responseText.split(":::");
			$(priceId).innerHTML = p[0];
			$(itemnumberId).innerHTML = p[1];
			$(price_no_taxId).innerHTML = p[2];
			$(inStockId).innerHTML = p[3];
			$(titleId).innerHTML = p[4];
			$(price_only_taxId).innerHTML = p[5];
			$(noteId).innerHTML = p[7];
			$(note2Id).innerHTML = p[6];
			$(price3Id).innerHTML = p[8];
		}
	});
}

function stripHTML(str){ return str.replace(/<[^>]*>/g, "");}

