var ajax = new Array();
//alert("Fenster wurde geschlossen");


function add_merk(id)
{
	var index = ajax.length;
	ajax[index] = new sack();
	ajax[index].requestFile = '../../php/ajax/addmerk.php?id='+id;	// Specifying which file to get
	ajax[index].onCompletion = function(){ createAkt(index) };	// Specify function that will be executed after file has been found
	ajax[index].runAJAX();		// Execute AJAX function
}

function createAkt(index)
{
	//var obj = document.getElementById('Akt');
	eval(ajax[index].response);	// Executing the response from Ajax as Javascript code	
}

