function cookieValueHandler() {
    Cookies.set(this.name, this.value, 365)
    window.location.reload()
}

function registerSpecialInputs() {
    $$("input").each(function(input) {
        if (input.getAttribute("special") == "cookie") {
            Event.observe(input, "click", cookieValueHandler)
            if (input.type == "radio" && Cookies.get(input.name) == input.value) {
                input.checked = true
            }
        }
    });
}

Event.observe(window, 'load', registerSpecialInputs)

@@ -21,20 +21,60 @@
 Handler(
+event
 ) %7B%0A
+    var src = Event.element(event)%0A
     Cook
@@ -85,23 +85,21 @@
 set(
-this
+src
 .name, 
-this
+src
 .val

Fix cookieValueHandler to work with IE