
function addArticleOnlyStatus(id,size,amount)
{

	new Ajax.Updater('something','/_shared/boxes/getTeambox.htm',{
					 	method: 'get', 
						parameters: 'id=' + id + '&size=' + size + '&amount=' + amount,
						onSuccess: function() {

							new Ajax.Updater('teambox','/teambox/teamboxIcon.htm');
							new Ajax.Updater('teambox_mirror','/teambox/teamboxMirrorIcon.htm');							
							$('addTeamboxButton').update('zur Teambox hinzugef&uuml;gt');
							}
						});
	
}

function addArticle(id,size,amount)
{

	new Ajax.Updater('container','/_shared/boxes/getTeambox.htm',{method: 'get', parameters: 'id=' + id + '&size=' + size + '&amount=' + amount});
}

function removeArticle(id, items)
{
	if(items == 1){
		new Ajax.Updater('container','/_shared/boxes/getTeambox.htm',{method: 'get', parameters: 'del_id=' + id, onComplete: location.reload()});
	}else{
		new Ajax.Updater('container','/_shared/boxes/getTeambox.htm',{method: 'get', parameters: 'del_id=' + id});		
	}
}

function saveTeamdata(company, contact, email, address, zip, city)
{
	new Ajax.Updater('container','/_shared/boxes/getTeamdata.htm',{method: 'get', parameters: 'company=' + company+ '&contact=' + contact+ '&email=' + email+ '&address=' + address+ '&zip=' + zip+ '&city=' + city});
}


