[go: up one dir, main page]

Menu

[r6]: / libs / madcollector.js  Maximize  Restore  History

Download this file

80 lines (72 with data), 2.0 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
function swap_form(objDiv)
{
objDiv.childNodes[0].style.display = "none";
var myForm = objDiv.getElementsByTagName("form");
myForm[0].style.display = "block";
}
function swap_div(nomDiv)
{
var myDiv = document.getElementById(nomDiv);
myDiv.childNodes[0].style.display = "none";
var myDivForm = document.getElementById(nomDiv+"_form");
myDivForm.style.display = "block";
}
function unswap_form(objDiv)
{
var maDiv = document.getElementById(objDiv);
maDiv.firstChild.style.display = "block";
var myForm = maDiv.getElementsByTagName("form");
myForm[0].style.display = "none";
}
function checkAll(nomForm,nomItem)
{
var objFormulaire = document.forms[nomForm];
if(!objFormulaire)
return;
var objCheckBoxes = objFormulaire.elements[nomItem];
if(!objCheckBoxes)
return;
var countCheckBoxes = objCheckBoxes.length;
if(!countCheckBoxes)
objCheckBoxes.checked = true;
else
for(var i = 0; i < countCheckBoxes; i++)
objCheckBoxes[i].checked = true;
}
function uncheckAll(nomForm,nomItem)
{
var objFormulaire = document.forms[nomForm];
if(!objFormulaire)
return;
var objCheckBoxes = objFormulaire.elements[nomItem];
if(!objCheckBoxes)
return;
var countCheckBoxes = objCheckBoxes.length;
if(!countCheckBoxes)
objCheckBoxes.checked = false;
else
for(var i = 0; i < countCheckBoxes; i++)
objCheckBoxes[i].checked = false;
}
function hide_img()
{
fond=document.getElementById("div_kingsize");
fond.style.visibility="hidden";
while(fond.hasChildNodes())
{
fond.removeChild(fond.lastChild)
}
}
function display_image(image_url,image_alt)
{
fond=document.getElementById("div_kingsize");
imgZoom=document.createElement("img");
imgZoom.setAttribute("src",image_url);
imgZoom.setAttribute("alt",image_alt);
fond.appendChild(imgZoom);
br=document.createElement("br");
fond.appendChild(br);
legende=document.createTextNode(image_alt);
fond.appendChild(legende);
fond.style.visibility="visible";
}