function updater_standard(a,b,c,d) {
c=unescape(c);
// alert(a + ' \n ' + b + ' \n '  + c);
if (b.indexOf('http')) {
  var sito="\/cgi-bin\/grissini\/";
} else {
  var sito="";
};

  $(a).style.display='inline';
  $(a).style.background_color='#fff';
//  new Ajax.Updater(a,b, {parameters:c,evalScripts:true,success:a, asynchronous:true });

  if (d=='1') {
    var opt = {
      success:a,
      asynchronous:false,
      //    method: 'post',
      //    postBody: c,
      parameters: c,
       //    onSuccess: function(t) {
      onComplete: function(t) {
      $(a).innerHTML=t.responseText
      },

      on404: function(t) {
          alert('Error 404: location "' + t.statusText + '" was not found.');
      },
      onFailure: function(t) {
        alert('Error ' + t.status + ' -- ' + t.statusText);
      },
      evalScripts:true
    }
    new Ajax.Updater(a,sito + b, {method:'post',postBody:c,evalScripts:true,success:a, asynchronous:false });
    // new Ajax.Request(sito + b,opt );
  } else  {
    $(a).style.display='inline';
    $(a).style.background_color='#fff';
  //  new Ajax.Updater(a,sito + b, {parameters:'c',evalScripts:true,success:a, asynchronous:true });
    new Ajax.Updater(a,sito + b, {method:'post',postBody:c,evalScripts:true,success:a, asynchronous:true });
  };
}



