title: function not defined error
body: <pre><code>  for (r in resArray) {
        $(".results li").remove();
        var title = resArray[r]._source.title;
        var year = resArray[r]._source.year;
        var typeOfDrawing = resArray[r]._source.typeOfDrawing;
        var code = resArray[r]._source.code;
        var loctn = resArray[r]._source.location;
        var drawerNumber = resArray[r]._source.drawerNumber;
  
        function getURL() {
              planSearch(title);
        }
  
        items.push('&lt;li class="reslts" onmouseover="getURL()"&gt;' + code + " " +   year + " " + loctn + " " + drawerNumber + "&lt;br /&gt;" + title + "&lt;br /&gt;" + typeOfDrawing + "&lt;/a&gt;&lt;/li&gt;");
        $(".results").append(items);
        }
  </code></pre>
  
  <p>when I mouseover I get the error saying "getURL not defined"
  where am I wrong?</p>