/*
 * Simple jquery-based script to allow to send an ajax request to the server
 */

//on page load (as soon as its ready) call JT_init
$(document).ready(ajsender);

function ajsender(){
	       $("a.sender")
           .click(function(){
        	   ajaxsend(this.href);
        	   return false
        	   });
}

/* a function to actually perform the ajax send (and expect a json
 * reply.
 */
function ajaxsend(url)
{
	$.getJSON(url);
}
