[jQuery] IE8 error: Invalid Argument

[jQuery] IE8 error: Invalid Argument


I realize that there are numerous posts on this subject. But, alas, I
will start with the same phrasing that everyone else does.
"This works in FF, but not in IE".
So, having said that, I'm not using the .min Jquery file, I'm using
the developers file.
I debugged it using Firebug Lite in IE8, as well as IE8's Dev console.
Here is what the errors were:
Firebug: "Invalid argument. (jquery-1.3.2.js,1061)"
IE8 Dev: Specific Line in the above js file is:
if ( set )
            elem[ name ] = value;
        return elem[ name ];
Now, I have a similar page that runs just fine in IE, making similar
calls. So I assume that it's only a syntax error. But for the life of
me I cannot find it. I know that the error occurs when I click on a
button (code shown below):
html += '<img src="/demo_images/walkin_search.ico" title="Search for
User" onClick="addEvent(\'' + e_id + '\'); return false;" />';
To call a function (showm below):
function addEvent(e_id)
    {
        event_id = e_id;
        $('#dialog-search').dialog('open');
    }
Which, in turn, calls a modal (code below):
$('#dialog-search').dialog(
            {
                bgiframe:true,
                autoOpen:false,
                title:"Search For User",
                resizable:false,
                height:200,
                modal:true,
                closeOnEscape:false,
                overlay:
                    {
                    backgroundColor: '#000',
                    opacity: 0.5
                    },
                buttons:
                    {
                        'Search': function()
                            {
                                firstname_s = $('#s-firstname').val();
                                lastname_s = $('#s-lastname').val();
                                validate = true;
                                validate1 = true;
                                allFields_s.removeClass('ui-state-error');
                                validate1 = validate && FillCheck(firstname_s,"At least 1
field must be filled in",$('#s-firstname'),$('#tips-search'));
                                validate = validate && FillCheck(lastname_s,"At least 1 field
must be filled in",$('#s-lastname'),$('#tips-search'));
                                if(validate1 || validate)
                                    {
                                        UserSearch("user",firstname_s,lastname_s,"");
                                        $('#dialog-no_user').dialog('close');
                                        $(this).dialog('close');
                                    }
                            },
                        'Cancel': function()
                            {
                                $(this).dialog('close');
                            }
                    },
                close: function()
                    {
                        $('#s-firstname').removeClass('ui-state-error');
                        $('#s-lastname').removeClass('ui-state-error');
                    }
            });
        $('#button-newsearch').click(function() {
                $('#dialog-search').dialog('open');
            })
            .hover(
                function(){
                    $(this).addClass("ui-state-hover");
                },
                function(){
                    $(this).removeClass("ui-state-hover");
                }
            ).mousedown(function(){
                $(this).addClass("ui-state-active");
            })
            .mouseup(function(){
                    $(this).removeClass("ui-state-active");
            });
I realize that I may not have given enough nuggets for anyone to be
able to help, so if you need more, just let me know.
Thanks for your time,
Shadraq