2006-06-28 22:11:03 +04:00
|
|
|
function checkAll (id, checked) {
|
|
|
|
var el = document.getElementById(id);
|
|
|
|
for (var i = 0; i < el.elements.length; i++) {
|
|
|
|
if (el.elements[i].disabled==false) {
|
|
|
|
el.elements[i].checked = checked;
|
|
|
|
}
|
|
|
|
}
|
2006-11-05 21:38:20 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
function addFileField() {
|
|
|
|
var f = document.createElement("input");
|
|
|
|
f.type = "file";
|
|
|
|
f.name = "attachments[]";
|
|
|
|
f.size = 30;
|
|
|
|
|
|
|
|
p = document.getElementById("attachments_p");
|
|
|
|
p.appendChild(document.createElement("br"));
|
2006-11-12 21:50:30 +03:00
|
|
|
p.appendChild(document.createElement("br"));
|
2006-11-05 21:38:20 +03:00
|
|
|
p.appendChild(f);
|
2006-06-28 22:11:03 +04:00
|
|
|
}
|