Line xx Invalid pointer
Not really self explanatory. The code on that line is:
frame.location = encodeURI(location_url);
Turns out location_url was too long for IE6 to handle, thus limiting the length solved the problem.