Defaulting the History ‘Filter on’ to ‘All’ on Dynamics CRM 4.0 Accounts and Contacts

// History Default Filter to All
var crmloadarea = loadArea;
loadArea = function (area) {
    crmloadarea(area);
    if (area != "areaActivityHistory") { return; } // only hook into the history iframe
 
    var frame = document.getElementById(area + "Frame");
    frame.onreadystatechange = function () {
        if (frame.readyState == "complete") {
            doc = frame.contentWindow.document;
            doc.all.actualend[0].value = "All"; // instead of 30 days
            doc.all.actualend[0].FireOnChange();
        }
    }
}