﻿function getFile(url, id) {
    url = url + "?" + Math.random();
    new Ajax.Updater({success: id},
                     url, {
                         method: 'get',
                         onComplete: end,
                         onFailure: error
                     });
    return false;
}

function end(req) {
}

function error(req) {
}


function end(req) {
  if(req.responseText.match(/id="entriesname"/)){
    FoldNavigation('entries','on',false);
    return;
  }
}

