Internet Explorer - Security warning https

The original problem can be found here: http://blog.httpwatch.com/2009/04/23/fixing-the-ie-8-warning-do-you-want-to-view-only-the-webpage-content-that-was-delivered-securely/comment-page-1/#comment-13707

This problem cost me about half a day to fix, it ended up being a line in sorttable.js, a javascript that sorts tables in custom ways.
It ended up being somewhere around line 380:

/*@if (@_win32)
    //document.write("<script id=__ie_onload defer src=javascript:void(0)><\/
script>");
    //var script = document.getElementById("__ie_
onload");
    //script.onreadystatechange = function() {
    //    if (this.readyState == "complete") {
    //        sorttable.init(); // call the onload handler
    //    }
    //};
document.observe("dom:loaded", function() {
  sorttable.init();
});
/*@end @*/

replacing the above code fixed it, but you need to have prototype on that page. This was just a quick fix, maybe there is a better solution, but i haven't found one on google. Hope this helps someone.