function checkUncheckAll(theElement) {
     var theForm = theElement.form, z = 0;
	 for(z=0; z<theForm.length;z++){
      if(theForm[z].type == 'checkbox' && theForm[z].name != 'checkall'){
	  theForm[z].checked = theElement.checked;
	  }
     }
    }


$(document).ready(function(){
	$("div.error").click(function(){
   	$(this).hide("slow");
  	return false;
 	});
	$("div.msg").click(function(){
   	$(this).hide("slow");
  	return false;
 	});
 });


function send_value(valore){
	if (valore == "delete"){ 
	var agree=confirm("Confermi?");
	if (agree){ 
	document.getElementById('do').value=valore;
	document.AdminForm.submit();
	} 
	} else {
	document.getElementById('do').value=valore;
	document.AdminForm.submit();
	}
}


