function ajax_call(script, loading_id, replace_id, replace_id_when_false,asynch){
	if(!asynch){asynch = false;}
	scriptpath = "/ajax.php?"+script;
	new Ajax.Request(scriptpath, 
	{
		method: 'get',
		asynchronous: asynch,
		onCreate: startloading(loading_id),
		onSuccess: function(response)
					{
						if(response.responseText.length - 1 > 0)
						{
							if(response.responseText.substring(0,5) == "FALSE"){
								$(replace_id_when_false).innerHTML = response.responseText.substring(5);
								$(replace_id_when_false).show();
							}
							else{
								$(replace_id).innerHTML = response.responseText;
								$(replace_id).show();
							}
						}
						endloading(loading_id);
					}
	});
}

function startloading(loading_id){
	$(loading_id).show();
}

function endloading(loading_id){
	$(loading_id).hide();
}

