/* function mainMenu()
{
  document.write("<table width='100%'><tr><td style='background-image: url(images/Graphics/tab-menu.jpg)'>");
  document.write("<span>");
  document.write("<table width='100%'><tr>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='index.html'>GIS Home</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='OtherProducts.html'><font size=1>Other Products</font></a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='MapCatalogPage.html'>Maps</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='OtherLinks.html'><font size=1>Other Links</font></a></td>");
  document.write("<td align='center' width='13%'><a class='linkMenu' href='FAQ.html'>FAQ</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='ContactInfo.html'><font size=1>Contact Info</font></a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='Downloads.html'>Downloads</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='http://ccgovernment.carr.org/ccg/default.asp'>Home</a></td>");
  document.write("</tr></table>");
  document.write("</span>");
  document.write("</td></tr></table>");
}

function pageHeader()
{
  document.write("<table border='0' align='center'>");
  document.write("<tr><td></td></tr>"); 
  document.write("<tr><td></td></tr>"); 
  document.write("<tr><td>");
  document.write("<img src='images/Graphics/CarrollCoHeader.jpg' border='0' alt='Carroll County Maryland GIS' align='bottom'>");
  document.write("</td></tr>");
  document.write("<tr><td></td></tr>");
  document.write("<tr><td>");
  document.write("<center><font face='Arial, Helvetica, sans-seriff' size='3' color='#FFFFFF'>Department of Technology Services&nbsp;&#45;&nbsp;Geographic Information Systems</font></center>");
  document.write("</td></tr>");
  document.write("<tr><td></td></tr>");
  document.write("</table>");
}
*/

function pageHeader()
{
  document.write("<table border='0' align='center'>");
  document.write("<tr><td>");
  document.write("<img src='images/Graphics/CarrollCoHeader-7.jpg' alt='Carroll County Maryland GIS'>");
  document.write("</td></tr>");
  document.write("<tr><td style='background-image: url(images/Graphics/tab-menu.jpg)'>");
  document.write("<span>");
  document.write("<table width='100%'><tr>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='index.html'>GIS Home</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='OtherProducts.html'><font size=1>Other Products</font></a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='MapCatalogPage.html'>Maps</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='OtherLinks.html'><font size=1>Other Links</font></a></td>");
  document.write("<td align='center' width='13%'><a class='linkMenu' href='FAQ.html'>FAQ</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='ContactInfo.html'><font size=1>Contact Info</font></a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='Downloads.html'>Downloads</a></td>");
  document.write("<td align='center' width='12%'><a class='linkMenu' href='http://ccgovernment.carr.org/ccg/default.asp'>Home</a></td>");
  document.write("</td></tr>");
  document.write("</span>");
  document.write("</td></tr></table>");
}
  
function footerMenu() {
  document.write("<tr><td><table width='100%'>");
  document.write("<tr><th bgcolor='#373969' height='5px' colspan='2'></th></tr>");
  document.write("<tr><td rowspan='2'><a href='http://validator.w3.org/check/referer'><img src='images/Graphics/valid-xhtml10.png' alt='Valid XHTML 1.0!' height='31' width='88' /></a>");
  document.write("</td><td valign='bottom'>");
  document.write("&nbsp;&nbsp;&nbsp;&nbsp;<a class='linkFooter' href='#'>Top</a>&nbsp;&#124;&nbsp;");
  document.write("<a class='linkFooter' href='//ccgovernment.carr.org/ccg/web-notices/privacy.pdf'>Privacy Policy</a>&nbsp;&#124;&nbsp;");
  document.write("<a class='linkFooter' href='//ccgovernment.carr.org/ccg/web-notices/userterm.pdf'>User Terms</a>&nbsp;&#124;&nbsp;");
  document.write("<a class='linkFooter' href='index.html#Disclaimer'>Disclaimer</a>&nbsp;&#124;&nbsp;"); 
  document.write("<a class='linkFooter' href='HelpPrintPage.pdf'>Help</a>&nbsp;&#124;&nbsp;");
  document.write("<a class='linkFooter' href='#' onClick='history.go(-1)'>Back</a>");
  document.write("</td></tr><tr><td valign='top'>");
  document.write("&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<font size=1>Carroll County Government - Dept of Technology Services</font>");
  document.write("</td></tr></table></td></tr>");
}

function getAdobeReader() {
  document.write("<table border='1' bgcolor='#e5eafb'>");
  document.write("<tr><td>");
  document.write("<font size=-2>");
  document.write("The maps on this page are in <b>.pdf</b> format. In order to view these maps, you will need to install&nbsp;<br />");
  document.write("Adobe Reader&reg; on your PC. You can get Adobe Reader&reg; by clicking on this icon.<br /><br />");
  document.write("</font>");
  document.write("<center><a href='http://www.adobe.com/products/acrobat/readstep.html'><img src='images/Graphics/get_adobe_reader.gif' alt='Get Adobe Reader'></a></center>");
  document.write("</td></tr>");
  document.write("</table>");
}

function setCookie() {
	cookie_name = "ccDisclaimerAccept";
	document.cookie=cookie_name+"=Accept";
	document.location.href="MapCatalogPage.html";
}

function ArcIMS_setCookie() {
	cookie_name = "ccDisclaimerAccept";
	document.cookie=cookie_name+"=Accept";
	document.location.href="ArcIMS_MapCatalogPage.html";
}

function NoRightClick() {
  {
   if (event.button == 2) {
     alert('Right click disabled');
     }
   }
  document.onmousedown=NoRightClick
}

function printWindow() {
  browserVersion = parseInt(navigator.appVersion)
  {
     if (browserVersion >= 4) {
     {
        if (window.print){
           if (confirm("PrintPage?")) {
              window.print();
           }
        }
      }}
   }
}

function getCookie(CookieName) {
  if (document.cookie.length > 0) {
    begin = document.cookie.indexOf(CookieName+"=");
    if (begin != -1) {
       begin += CookieName.length+1;
       end = document.cookie.indexOf(";",begin);
       if (end == -1) end=document.cookie.length;
          return unescape(document.cookie.substring(begin,end));
       }
    }
  return null;
}

function ShowDisclaimer(mypage) {
       //alert("Opening window " + mypage);
       if (mypage == '1') {
          win1 = window.open('Disclaimer.html','DisclrWin1','menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,left=150,top=150,width=680,height=450');
          }
       else {
          win2 = window.open('Disclaimer.html','DisclrWin2','menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no,left=150,top=150,width=680,height=450');
       }
}

function openAgPresInqWindow() {
    awindow = window.open('http://webgis.ccg.carr.org/Website/Ag_Pres_Easements/index.htm','AgPresWindow','toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width=1010,height=650');
}

function openParcelInqWindow() {
    pwindow = window.open('http://webgis.ccg.carr.org/Website/Parcel_Inquiry/index.htm','PrclWindow','toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width=1010,height=650');
}

function openGPSStatWindow() {
    swindow = window.open('http://webgis.ccg.carr.org/Website/Survey_Control_Monuments/index.htm','StatWindow','toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width=1010,height=650');
}

function openZoningMapWindow() {
      popupWin = window.open('http://webgis.ccg.carr.org/Website/Zoning/index.htm','ZMap','toolbar=no,directories=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width=1010,height=650');
/*      var h = screen.Height;
      var w = screen.Width;
      var features = "width="+w+", height="+h+",top=0,left=0,screenX=0,screenY=100,resizable=yes,scrollbars=no,toolbar=no,location=no,status=yes,menubar=no";
      popupWin = window.open('http://ccgovernment.carr.org/ccg/gis/ZMapDisclaimer.htm','remote','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,left=20,top=20,width=705,height=585');
*/
}

function openFIRMWindow() {
    pwindow = window.open('http://webgis.ccg.carr.org/Website/FIRM/index.htm','FIRMWindow','toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=50,top=0,width=1010,height=650');
}

function openWellsWindow() {
    pwindow = window.open('http://webgis.ccg.carr.org/Website/Wells/index.htm','WellsWindow','toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=50,top=0,width=1010,height=650');
}

function openAppWindow() {
      //alert(window.name);
      //alert("Please maximize window");
      if (window.name == 'DisclrWin1') {
          pwindow = window.open('http://webgis.ccg.carr.org/Website/Parcel_Inq_Test/index.htm','PrclWindow','toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width=1010,height=650');
          }
      else {
          swindow = window.open('http://webgis.ccg.carr.org/Website/Survey_Control_Aliased/index.htm','StatWindow','toolbar=no,menubar=yes,location=no,scrollbars=yes,resizable=yes,copyhistory=no,left=0,top=0,width=1010,height=650');
      }
      window.close();
}


/*
function printWindow() {
  browserVersion = parseInt(navigator.appVersion)
  {
  if (browserVersion >= 4) window.print()
  }
}

function passWord(strPassWord)
{
  if (strPassWord == "gisonly")
  {
    window.location="index.html";
  }
  else
  {
    window.location="again.htm";
  }
}
*/

