title: Javascript not working in IE7 and IE8
body: <p>I am currently creating a website and have some javascript that works in all browsers except IE7 and IE8. I have done some tests on the code by inserting several 'alert' statements and deduced that the javascript breaks at one particular 'if' statement. It is not the code within the 'if' statement either because I have also tested this.</p>
  
  <p>I can't see anything wrong with the actual 'if' statement myself but please let me know if there is a problem with IE7/IE8 and the code I have produced. The code can be seen below.</p>
  
  <p>Thanks in advance for any help.</p>
  
  <pre><code>var Items = new Array("a","b","c","d");
  var queryString = window.location.search.substring(1);
  
  if(Items.indexOf(queryString) != "-1"){
      //code goes here
  }
  </code></pre>