title: Converting google maps api v2 to v3 getting script error in main.js
body: <p>I am converting my code from version 2 to version 3. I am getting script error in 
  <a href="http://maps.gstatic.com/intl/en_us/mapfiles/api-3/12/9/main.js" rel="nofollow">http://maps.gstatic.com/intl/en_us/mapfiles/api-3/12/9/main.js</a>
  My code on the page is as</p>
  
  <pre><code> &lt;script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true&amp;key=&lt;%=strGk%&gt;"&gt;&lt;/script&gt;
     &lt;script type="text/javascript"&gt;
  function initialize() {
              var myOptions = {
              zoom: 7,
              mapTypeId: google.maps.MapTypeId.ROADMAP,
              center: "&lt;%=strOrig%&gt;",
              mapTypeControl: true,
              mapTypeControlOptions: {
                  style: google.maps.MapTypeControlStyle.HORIZONTAL_BAR,
                  position: google.maps.ControlPosition.BOTTOM
              },
              navigationControl: true,
              navigationControlOptions: {
                  style: google.maps.NavigationControlStyle.ZOOM_PAN,
                  position: google.maps.ControlPosition.TOP_RIGHT
              },
              scaleControl: true,
              scaleControlOptions: {
                  position: google.maps.ControlPosition.TOP_LEFT
              }
          }
  
          map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
          directionsDisplay.setMap(map);
          directionsDisplay.setPanel(document.getElementById("directions"));
          google.maps.event.addListener(directionsDisplay, "addoverlay", afterDir);
          google.maps.event.addListener(directionsDisplay, "error", handleErrors);
          //  geocoder = new GClientGeocoder();
          geocoder = new google.maps.Geocoder();    
  </code></pre>