Gazelle/static/functions/collage.js
2011-03-28 15:21:28 +01:00

21 lines
499 B
JavaScript

function Add(input) {
if(input.checked == false) {
Cancel();
} else {
if(document.getElementById("choices").raw().value == "") {
document.getElementById("choices").raw().value += input.name;
} else {
document.getElementById("choices").raw().value += "|" + input.name;
}
}
}
function Cancel() {
var e=document.getElementsByTagName("input");
for(i=0;i<e.length;i++){
if(e[i].type=="checkbox"){
e[i].checked=false;
}
}
document.getElementById("choices").raw().value = "";
}