var f = document.f2;
f.elements[i].options[Math.floor((f.elements[i].length-1)*Math.random())+1].selected=true;
10 gru 2009
var f = document.f2;
f.elements[i].options[Math.floor((f.elements[i].length-1)*Math.random())+1].selected=true;
function odznacz(form, fld_name) {
fld = form.elements[fld_name];
len = fld.length
for (i = 0; i < len; i++) {
if (fld.options[i].selected)
fld.options[i].selected = false;
}
}