leavemsg  = 'You are about to leave an official Lawton Public Schools website.\n\n';
leavemsg += 'External links to websites from the LPS Website (or child websites) and references to non-LPS resources are provided ';
leavemsg += 'solely for informational purposes and the convenience of the user. ';
leavemsg += 'Lawton Public Schools does not control, review, approve, or endorse these sites, nor does Lawton Public Schools ';
leavemsg += 'control, review, approve, or endorse these resources. Other sites may collect data or personal information. ';
leavemsg += 'Once you link to another site, you are subject to the privacy policy of the new site. ';
leavemsg += 'If you decide to access any site linked to from the LPS Website, you do so entirely at your own risk. ';
leavemsg += 'In addition, the external links and non-LPS resources are in no way intended to represent an exhaustive listing.';

if (document.layers) document.captureEvents(Event.MOUSEUP);
document[document.layers?"onmouseup":"onclick"] = function(e) {
  var s = e?e.target:event.srcElement;
  if (s.hostname) {
    if(s.hostname != location.hostname) {
      if(s.hostname.indexOf('lawtonps.org') == -1 && s.hostname.indexOf('lawtonpdc.org') == -1 && s.hostname.indexOf('lpsmedia.org') == -1 && s.hostname.indexOf('ikeeagles.org') == -1 && s.hostname.indexOf('lhswolverines.org') == -1 && s.hostname.indexOf('machighlanders.org') == -1 && s.hostname.indexOf('lilmac.org') == -1 && s.hostname.indexOf('johnadamspatriots.org') == -1 && s.hostname.indexOf('almorweststars.org') == -1 && s.hostname.indexOf('geronimoroadindians.com') == -1 && s.hostname.indexOf('parklanepythons.com') == -1 && s.hostname.indexOf('pioneerparkpanthers.com') == -1) {
        alert(leavemsg);
      }
    }
  }
};


