function checkbox_mark_all(namepart){
checkboxlist = sei_get_layer_list(document.documentElement,namepart+"*");
checkboxarray = checkboxlist.split(",");
for(checkboxid in checkboxarray){
checkboxname = checkboxarray[checkboxid];
if (document.getElementById(checkboxname).type=="checkbox")
document.getElementById(checkboxname).checked=true;}}
function checkbox_mark_none(namepart){
checkboxlist = sei_get_layer_list(document.documentElement,namepart+"*");
checkboxarray = checkboxlist.split(",");
for(checkboxid in checkboxarray){
checkboxname = checkboxarray[checkboxid];
if (document.getElementById(checkboxname).type=="checkbox")
document.getElementById(checkboxname).checked=false;}}
function checkbox_mark_toggle(namepart){
counttrue=0;
countall=0;
checkboxlist = sei_get_layer_list(document.documentElement,namepart+"*");
checkboxarray = checkboxlist.split(",");
for(checkboxid in checkboxarray){
checkboxname = checkboxarray[checkboxid];
if (document.getElementById(checkboxname).type=="checkbox"){
countall++;
if (document.getElementById(checkboxname).checked==true)
counttrue++;}}
if (counttrue==countall)
checkbox_mark_none(namepart);
else
checkbox_mark_all(namepart);}

