﻿  function sendparameter(id,aerial)
    {  
        var mainForm = document.forms['form1'];
        if (!mainForm) 
        {
            mainForm = document.aspnetForm;
        }        
        __doPostBack('RoadClick',id);
    }  
    function ArialPhoto(aerial)
    {        
        var mainForm = document.forms['form1'];
        if (!mainForm) 
        {
            mainForm = document.aspnetForm;
        }             
        __doPostBack('AerialClick',aerial);   
    } 
    function sendPointMap(mapurl,pointx,pointy,zoomlevel)
    {
        var mainForm = document.forms['form1'];
        if (!mainForm) 
        {
            mainForm = document.aspnetForm;
        }  
        mainForm.ctl00_contentMaster_hdnMapurl.value = mapurl;
        mainForm.ctl00_contentMaster_hdnPointx.value = pointx;
        mainForm.ctl00_contentMaster_hdnPointy.value = pointy;
        mainForm.ctl00_contentMaster_hdnZoomlevel.value = zoomlevel;
        //mainForm.submit();
        var hiddenField = $get('ctl00_contentMaster_hdnPointx');
        if (hiddenField) 
        {          
          __doPostBack('ctl00_contentMaster_hdnPointx','');   
        }
    }
    function sendregion(hiddenid,region)
    {        
      var hiddenField = $get(hiddenid);        
      if (hiddenField) 
      {
        hiddenField.value = region;
        __doPostBack(hiddenid,'');   
      }
    }
    function refreshlist()
    {        
      var hiddenField = $get('ctl00_contentMaster_hdnRefreshList');        
      if (hiddenField) 
      {
         hiddenField.value=new Date();
        __doPostBack('ctl00_contentMaster_hdnRefreshList','');   
      }
    }
    function CallReturn()
    {
        alert("Call Return");
        var prm = Sys.WebForms.PageRequestManager.getInstance();
         prm._doPostBack('ctl00_contentMaster_updList', '');        
    }

    
 function NewCenteredWindow(mypage, myname, w, h)
{ 
 var winl = (screen.width - w) / 2;
 var wint = (screen.height - h) / 2;
 if (w == 0){w = screen.width;winl = 0;}
 if (h == 0){h = screen.height;wint = 0;}
 winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars=no,resizable=yes' 
 win = window.open(mypage, myname, winprops)
 if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

