﻿function doUpdate(storeID)
{
    $(".hiddenIDclass").val(storeID);
    $(".hiddenBtnClass").click();
}

function doSearch()
{
    $(".hiddenSearchClass").click();
}

function showAddress(address) {

    var geocoder = null;
        geocoder = new GClientGeocoder();  
      if (geocoder) {
        geocoder.getLatLng(
          address,
          function(point) {
            if (!point) {
              alert("Adress:\"" + address + "\" is not found");
            } else {
              
              map.setCenter(point, 13);
              var marker = new GMarker(point);
              map.addOverlay(marker);
              //marker.openInfoWindowHtml(address);
            }
          }
        );
      }
    }

function toggleShowStandard(chkbox)
{
   if (chkbox.checked==true)
    {   
        $(".notStandard").addClass("notStandardHidden");
        $(".notStandard").removeClass("notStandard");
    }
    else if(chkbox.checked==false)
    {
        $(".notStandardHidden").addClass("notStandard");
        $(".notStandardHidden").removeClass("notStandardHidden");
    }
}

function toggleShowMTM(chkbox)
{
   if (chkbox.checked==true)
    {
        $(".notMTM").addClass("notMTMhidden");
        $(".notMTM").removeClass("notMTM");
    }
    else if(chkbox.checked==false)
    {
        $(".notMTMhidden").addClass("notMTM");
        $(".notMTMhidden").removeClass("notMTMhidden");
    }
}
