~intrahealth+informatics/ihris-common/3.1.4-release

« back to all changes in this revision

Viewing changes to scripts/view.js

  • Committer: Carl Leitner
  • Date: 2007-10-03 18:12:42 UTC
  • mto: This revision was merged to the branch mainline in revision 5.
  • Revision ID: litlfred@ibiblio.org-20071003181242-d5tpqmm3pof179ei
Added scripts/ and css/ directories     

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function hideDiv( id, anchor ) {
 
2
        if ( anchor.className == 'hide' ) {
 
3
                document.getElementById(id).style.display = 'none'; 
 
4
                anchor.title = 'Expand';
 
5
                anchor.innerHTML = 'Expand';
 
6
                anchor.className = 'expand';
 
7
        } else {
 
8
                document.getElementById(id).style.display = 'inline';
 
9
                anchor.title = 'Hide';
 
10
                anchor.innerHTML = 'Hide';
 
11
                anchor.className = 'hide';
 
12
        }
 
13
        return false;
 
14
}
 
15
var prevAnchor = false;