title: Button click function is not working
body: <p>I have a simple doubt over here, in below code I am trying to open different pages to my target frame according to the values selected in select option menu. But the pages are not redirecting to the frame , I know  have done some silly error somewhere , can anybody please help me ?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
  function showcity(select){
  
  
      if(select.value == 'maha')
      {
          show();
          }
      else
      {
          hide();
      }   
  
      }
  
  function show(){
      var city=document.getElementById('city');
      city.style.display ='inline';
  }
  
  function hide(){
      var cityhide =document.getElementById('city');
      cityhide.style.display ='none';
  }
  
  
  
  function changemap(select){
  
      var maps=document.getElementById('city');
      if(maps.select.value == 'mumbai'){
          window.location = 'bank_atm_locator_mumbai.html';
      }
      else if(maps.select.value == 'aura'){
          window.location == 'bank_atm_locator_aurangabad.html'
      }
      else if(maps.select.value == 'pune'){
          window.location == 'bank_atm_locator_pune.html'
      }
  }
  
  &lt;/script&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;div data-role="page" id="pageone" data-theme="b" onload="hide(this)"&gt;
  
  
  &lt;div data-role="main" style="padding-top: 4em"&gt;
  &lt;div class="ui-field-contain" align="center" data-theme="a"&gt;
  &lt;form&gt;
  &lt;select name="state" onchange="showcity(this)"&gt;
  
          &lt;option value="1" selected="selected"&gt;Select State&lt;/option&gt;
          &lt;option value="maha"&gt;Maharashtra&lt;/option&gt;
          &lt;option value="3"&gt;Karnataka&lt;/option&gt;
          &lt;option value="4"&gt;Kerala&lt;/option&gt;
          &lt;/select&gt;&lt;/form&gt;
  &lt;/div&gt;
  &lt;div class="ui-field-contain" align="center" data-theme="a"&gt;
  &lt;form&gt;&lt;select name="city" id="city" &gt;
  
          &lt;option value="1" selected="selected"&gt;Select City&lt;/option&gt;
          &lt;option value="mumbai" &gt;Mumbai&lt;/option&gt;
          &lt;option value="aura"&gt;Aurangabad&lt;/option&gt;
          &lt;option value="pune"&gt;Pune&lt;/option&gt;
          &lt;/select&gt; &lt;/form&gt;
  &lt;/div&gt;
  &lt;a href="#" target="mapview" data-role="button" data-theme="a" onclick="changemap(this)"&gt;Go&lt;/a&gt; 
  
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;/body&gt;
  </code></pre>