// JavaScript Document

<!--

// Thanks to jose_juan: http://www.experts-exchange.com/M_4558160.html.

function offSiteAlerter(o) {
        for( var i = 0; i < o.childNodes.length; i++ ) {
                var c = o.childNodes[i];
                if( typeof( c.childNodes ) != 'undefined' )
                        offSiteAlerter(c);
                if( c.tagName == 'A' && c.target == '_blank' || c.tagName == 'AREA' && c.target == '_blank' ) {
                        // c.href = '';
                        c.target = '_blank';
						var pageTitle = document.title;
						c.onclick = function() { alert('You are about to leave the ' + pageTitle.replace(/Frederick County, VA -- /, "Frederick County ") + ' website.  This link is offered for your convenience and does not constitute an endorsement of any organizations, programs, people, or content on the destination site.'); };
                }
        }
}

// Thanks to hielo: http://www.experts-exchange.com/M_3082916.html.

//this does nothing useful. Just a "placeholder"
var temp=function(){ return 1;};
 
if( window.onload )
{
 //override "placeholder" with whatever already exists in onload
  temp = window.onload;
}
window.onload=function(){ offSiteAlerter(document.body); temp();};

//-->
