function ajaxForm(update, url, frm) {
new Ajax.Updater(update, url, { method:'post', onComplete:function(){ $('loader').style.display = 'none';}, onLoading:function(){ $('loader').style.display = 'block';}, asynchronous:true, parameters:Form.serialize(frm), evalScripts:true});
return false;
}

function ajaxAnchor(update, url) {
new Ajax.Updater(update, url, { method:'post', onComplete:function(){ $('loader').style.display = 'none';}, onLoading:function(){ $('loader').style.display = '';}, asynchronous:true, evalScripts:true});
}

function checkall (formname, checkname, thestate) {

var el_collection = eval("document.forms."+formname+"."+checkname)
for (c=0; c<el_collection.length; c++)
		el_collection[c].checked=thestate

}

