﻿
//Function to load the parcel Tab with the proper URL.
function LoadParcel(parcelID)
{
    //set URL for IFrame
    var el = Ext.getDom('parcelsIFrame');
    var url = Config.parcelURL + "?parcelID=" + parcelID;
    el.src = url;
    
   //Make the  Parcel Info Tab Visiable
   layout.getRegion('center').showPanel('tabParcelInfo');
}

function LoadSearch(sql)
{
    //Set SQL for QueryPage to pre-load
    var el = Ext.getDom('QuickSearch');
    //el.
    
   //Make the  Parcel Info Tab Visiable
   layout.getRegion('center').showPanel('tabParcelInfo');
}


function openSearchTab()
{
layout.getRegion('center').showPanel('tabQuickSearch');
}

//******************************************************
// Function to try and detect pop up blockers.
// This must be run  from a remote computer to work in IE. (i.e gis.bergmannpc.com/..)
//
/*   USAGE EXAMPLE: 
     var someWindowIMade = window.open("http://google.com");
     var bool = isPopupBlocked(someWindowIMade);
*/
//
//******************************************************

function isPopupBlocked(popUpWindow)
{
      var isBlocked = true;
      if (popUpWindow)
      {
            isBlocked = false;
      }
      else
      {
            alert('Your browser is blocking popups.\nPlease enable popups for this site to proceeed with your request.');
      }
      return isBlocked;
}

 

 

 

 

 

 

