function setCheckboxes(the_form, do_check){
	var elts = document.forms[the_form].elements['chk[]'];
    var elts_cnt  = (typeof(elts.length) != 'undefined')? elts.length : 0;
    if (elts_cnt) {
		for (var i = 0; i < elts_cnt; i++) {
			elts[i].checked = do_check;
		} 
	} else {
		elts.checked = do_check;
	}
	return true;
}

function setAction(the_form, action){
	document.forms[the_form].action=action;
	document.forms[the_form].submit();
	return true;
}

function confirmDel(text){
    if (typeof(window.opera) != 'undefined') {
        return true;
    }
    return confirm(text+'\n');
} 

