// Note: If you ever wanted to change ajax frameworks, this would be the place to do it.

// Ajax Call
function ajax(f,a,callbackFunction){
	var myAjax = new Ajax.Request('ajaxhandler.cfm?method=' + f, { 
		method:'get', 
		contentType:'application/x-javascript', 
		parameters:a,
		onSuccess:function(r){ callbackFunction(eval(r.responseText)); },
		on404:function(r){ alert('Error 404: location "' + r.statusText + '" was not found.'); },
		onFailure:function(r){ alert('Error ' + r.status + ' -- ' + r.statusText); }
	});
}
