
function stat(text,element) {
   window.status=text;
   element.style.cursor='hand';
}
function nostat() {
   window.status='';
   return true;
}
function displayClickInfo(obj,url,right) {
   obj.style.cursor='hand'; 
   window.status='click for '+ 
                 ((url != '') ? 'original source' : 'local copy') +
                 ((right != '') ? '; right mouse for local copy' : '');
}
    
function loadDocument(mode,
                      key,
  	              includeimages,
                      includecomments,
                      includecolors,
                      section,topic,
                      updatedate,searchstring,searchstring2) {
   images = (includeimages == 'yes') ? '' : '_noimages';
   comments = (includecomments == 'yes') ? '_comments' : '';
   colors = (includecolors == 'yes') ? '' : '_nocolors';
   mid = images+comments+colors;
   if (mode=='section' || mode=='topic' || mode=='updatedate' || mode=='task') 
   {
      location.href = 'timeline_'+key+'.html';
   } else if (mode=='entrycontext') {
      location.href = key+'.html#'+key;
   } else if (mode=='page') {
      location.href = key+'.html';
   } else {
      location.href = 'nosearch.html';
   } 
}
        
