Passing a variable with tabs IE6 problem

Passing a variable with tabs IE6 problem

I have tabs that gets its content via ajax. In order to decide which view to use (using wordpress), we add a variable to the url like www.url.com/link?var=tabcontent.
Then we detect whether or not $_GET detects the variable to decide to display it in our tab styling, or our regular post styling.

This works with everything but IE6.

The js we use to add on the url is:
  1. var myVar = '?var=tabcontent';
  2.  document.getElementById("link1").href += myVar;


Is there a way to pass this variable and make tabs work in IE6? It keeps saying the page is blank and throwing an error. Thanks.