Subversion Repositories cms

Rev

Rev 14 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
14 pisoni 1
<SCRIPT>
2
// ---------------------------------------------------------------------- #
3
// Copyright: (C) 2002 Leader.IT S.r.l. <http://leader.it>
4
// Authors: Mario Claudio Pisoni <pisoni@leader.it>
5
//
6
// $Revision: 18 $
7
// ---------------------------------------------------------------------- #
8
</SCRIPT>
9
<script language="JavaScript">
10
ie = document.all?1:0;
11
ns4 = document.layers?1:0;
12
 
13
function SelectRow(myCheckBox){
14
	if (myCheckBox.checked)
15
		highlight(myCheckBox);
16
	else
17
		unHighLight(myCheckBox);
18
}
19
 
20
function highlight(E){
21
	if (ie)
22
	{
23
		while (E.tagName!="TR")
24
			E = E.parentElement;
25
	}
26
	else
27
	{
28
		while (E.tagName!="TR")
29
			E = E.parentNode;
30
	}
31
	E.className = "High";
32
}
33
 
34
function unHighLight(E)
35
{
36
	if (ie)
37
	{
38
		while (E.tagName != "TR")
39
			E = E.parentElement;
40
	}
41
	else
42
	{
43
		while (E.tagName != "TR")
44
			E = E.parentNode;
45
	}
46
	E.className = "";
47
}
48
</script>