1function getE(id)
2{
3	if(document.getElementById) {
4		return document.getElementById(id);
5	} else if(document.all) {
6		return document.all[id];
7	} else return;
8}
9
10function openClose(id,mode)
11{
12	element = getE(id);
13	img = getE('img_'+id);
14
15	if(element.style) {
16		if(mode == 0) {
17			if(element.style.display == 'block' ) {
18				element.style.display = 'none';
19				img.src = 'pics/plus.gif';
20			} else {
21				element.style.display = 'block';
22				img.src = 'pics/moins.gif';
23			}
24		} else if(mode == 1) {
25			element.style.display = 'block';
26			img.src = 'pics/moins.gif';
27		} else if(mode == -1) {
28			element.style.display = 'none';
29			img.src = 'pics/plus.gif';
30		}
31	}
32}
33
34
35