//*****************************************************************************
// FUNCTION REFRESH_LOOKUPS
//*****************************************************************************
  function refreshLookups() {
    //refreshGroups();
    //refreshrecruitedBy();
  }
// END FUNCTION REFRESH_LOOKUPS
//*****************************************************************************


//*****************************************************************************
// FUNCTION SORT_RECORDS
//*****************************************************************************
  function sort_records(sort_order) {
    document.getElementById('data_sort_order').value = sort_order;  
    document.forms[0].submit();
  }
// END FUNCTION SORT_RECORDS
//*****************************************************************************


//*****************************************************************************
// FUNCTION EDIT_DOCUMENT
//*****************************************************************************

function edit_document(entity_id) {
  document.location.href = 'index.php?action=edit_document&entity_id='
                           + entity_id;
}
//
// END FUNCTION UPDATE_DOCUMENT
//*****************************************************************************


//*****************************************************************************
// FUNCTION CREATE_DOCUMENT
//*****************************************************************************

function create_document() {
  document.location.href = 'index.php?action=create_document';
}
//
// END FUNCTION CREATE_DOCUMENT
//*****************************************************************************


//*****************************************************************************
// FUNCTION UPDATE_DOCUMENT
//*****************************************************************************

function update_document() {
  document.getElementById('data_action').value = "update_document";
  document.forms[0].submit();
}
// 
// END FUNCTION UPDATE_DOCUMENT
//*****************************************************************************


//*****************************************************************************
// FUNCTION VIEW_DOCUMENT
//*****************************************************************************

function view_document(entity_id) {
  document.location.href = 'index.php?action=view_document&entity_id=' 
                              + entity_id; 
}
//
// END FUNCTION VIEW_DOCUMENT
//*****************************************************************************


//*****************************************************************************
// FUNCTION VIEW_DOCUMENT_BY_NAME
//*****************************************************************************

function view_document_by_name(document_name) {
  document_name = encodeHtml(document_name);
  document.location.href = 'index.php?action=view_document_by_name&document_name='
                              + document_name;
}
//
// END FUNCTION VIEW_DOCUMENT_BY_NAME
//*****************************************************************************


//*****************************************************************************
// FUNCTION LIST_DOCUMENTS
//*****************************************************************************

function list_documents() {
  document.location.href = 'index.php?action=list_documents';
}
//
// END FUNCTION LIST_DOCUMENTS
//*****************************************************************************


//*****************************************************************************
// FUNCTION DELETE_DOCUMENT
//*****************************************************************************
 
function delete_group(entity_id) {
  document.location.href = 'index.php?action=delete_document&entity_id=' + entity_id;                                 
}
//
// END FUNCTION DELETE_DOCUMENT
//*****************************************************************************


//*****************************************************************************
// FUNCTION UNDELETE_DOCUMENT
//*****************************************************************************
                              
function undelete_document(entity_id) {
  document.location.href = 'index.php?action=undelete_document&entity_id=' + entity_id;
}
//
// END FUNCTION UNDELETE_DOCUMENT
//*****************************************************************************


//*****************************************************************************
// FUNCTION UPLOAD_DOCUMENT
//*****************************************************************************
  
function upload_document() {
  document.getElementById('data_action').value = "upload_document";
  document.forms[0].submit();
}
//
// END FUNCTION UPLOAD_DOCUMENT
//*****************************************************************************

