function nRate(id,rating,home) {
  var place;
  if(home== null) {
    place = 'rating';
  } else {
    place = 'beitrag_unten_'+id;
  }
  new Ajax.Updater( place,
                    html_url+'submitAJAX.php',
                    { method:'post', postBody:'news_id='+id+'&news_rating='+rating+'&submitKind=news&newsKind=rate', 
                      onCreate : startLoading, 
                      onComplete : stopLoading
                    }
  )
}
function nDelete(id) {
  new Ajax.Updater( 'beitrag_edit_'+id,
                    html_url+'submitAJAX.php',
                    { 
                      method:'post',
                      postBody: 'news_id='+id+
                                '&submitKind=news'+
                                '&newsKind=delete',
                      onCreate : startLoading, 
                      onComplete : stopLoading
                    } 
                  )
}
function nDeleteSure(id) {
  new Ajax.Request( html_url+'submitAJAX.php',
                    { 
                      method:'post',
                      postBody: 'news_id='+id+
                                '&submitKind=news'+
                                '&newsKind=delete_sure',
                      onCreate : startLoading, 
                      onComplete : function newsdeny_diable() {stopLoading();Effect.Fold('beitrag_delete_'+id);}
                    } 
                  )
}
function nEdit(id) {
  var place = 'beitrag_edit_'+id;
  new Ajax.Updater( place,
                    html_url+'submitAJAX.php',
                    { 
                      method:'post',
                      postBody: 'news_id='+id+
                                '&submitKind=news'+
                                '&newsKind=edit',
                      onCreate : startLoading, 
                      onComplete : stopLoading
                    } 
                  )
}
function nUpdate(id) {
  var place = 'beitrag_edit_'+id;
  new Ajax.Updater( place,
                    html_url+'submitAJAX.php',
                    { 
                      method:'post',
                      postBody: 'news_id='+id+
                                '&news_content='+$('news_content_'+id).value+
                                '&submitKind=news'+
                                '&newsKind=update',
                      onCreate : startLoading, 
                      onComplete : stopLoading
                    } 
                  )
}