            	function checkboxChange(inputCheckbox, objectName, id, field) {
            		var checked = inputCheckbox.checked;
            		new Ajax.Request(
               			'/command/edit',
                       	{
                       		method: 'post',
                       		parameters: 'uniquevar$='+objectName+'@'+id+'&uniquevar.'+field+'%3D='+checked,
                       		onSuccess: function(req) { checkboxChanged(req, inputCheckbox, '#00ff00'); },
							onFailure: function(req) { checkboxChanged(req, inputCheckbox, '#ff0000'); },
							onException: function(req) {checkboxChanged(req, inputCheckbox, '#ff0000'); }
                       	}
                   	);
            	}
            				
            	function checkboxChanged(req, inputCheckbox, colour) {
            		var el = inputCheckbox.parentNode;
            		new Effect.Highlight(el, {duration: 1.5, startcolor: colour, endcolor:'#ffffff'});
            	}