/* ajax.Request */
function ajaxRequest(url,data) {
  var aj = new Ajax.Request(
  url, {
   method:'get',
   parameters: data,
   onComplete: getResponse
   }
  );
}
/* ajax.Response */
function getResponse(oReq) {
  $('result').innerHTML = oReq.responseText;
}