/*----------------------------------------------------------------------------*/
function getRandomText(id,cid,num,ctx) {
  var a; var dim = Element.iccGetDimensions(id);
  var par = '&cid='+cid+'&num='+num+'&ctx='+ctx;
  a = new Ajax.Updater(
    id,
    "app_icc/xt_obj_ajax_custom.asp?cmd=GETRANDOMTEXT"+par,
    {
      method: 'get',
      onLoading: function() {
        Indicator.show(dim.screenleft+70,dim.screentop+dim.height-50);
        setTimeout('Indicator.hide()',1000);
      },
      onSuccess: function(r) {
        Indicator.hide();
      },
      onFailure: function(r) {
        Indicator.hide(); alert("Objekt konnte nicht geladen werden");
      }
    }
  );
}