	function selectAll(x) {
	  for(var i=0,l=x.form.length; i<l; i++)
	    if(x.form[i].type == 'checkbox' && x.form[i].name != 'markall')
		x.form[i].checked=x.form[i].checked?false:true
  }
  
  function sortingList() {
  var sortselect=document.getElementById("sortselect");
  document.getElementById("sort").value=sortselect.options[sortselect.selectedIndex].value;
  document.getElementById("viewlist").submit();
  }

  function validateMod() {
    for (i=1;i<document.me.elements.length;i++){
    if( document.me.elements[i].type=="checkbox" && document.me.elements[i].checked == true )
     {
     	if(confirm(confirm_act)){
  	   	return true;
    	}
    	else {
    		return false;
    	}
     }
    }
    alert(choose_cb);
    return false;
   }
   
