// http://gisweb.azdeq.gov/arcgis/epanls/
// ADEQ: Arizona Department of Environmental Quality

function ShowDisclaimer()
{
    // has user seen disclaimer in past week?
    if (document.cookie.indexOf("disclaimer=agree") >= 0) return;

    var disclaimer = "GIS DISCLAIMER";
    disclaimer += "\n\n";
    disclaimer += "The Arizona Department of Environmental Quality has compiled this GIS Web site as a service to our customers using information from various sources.";
    disclaimer += " ADEQ cannot ensure that the information is accurate, current or complete.";
    disclaimer += " Neither the information presented nor the maps themselves are official documents.";
    disclaimer += "\n\n";
    disclaimer += "All data and maps are provided \"as is\" and may contain errors.";
    disclaimer += " The maps shown here are for reference and illustration purposes only and are not suitable for site-specific decision making.";
    disclaimer += " Information found here should not be used for making financial or any other commitments.";
    disclaimer += " Conclusions drawn from such information are the responsibility of the user.";
    disclaimer += "\n\n";
    disclaimer += "ADEQ assumes no responsibility for errors arising from misuse of the maps and data.";
    disclaimer += " ADEQ disclaims any liability for injury, damage or loss that might result from the use of this information.";
    disclaimer += " In no event shall ADEQ become liable to users of these data and maps, or any other party, arising from the use or modification of the data and maps.";

    // show disclaimer
    if (confirm(disclaimer))  // OK
    {
        // present disclaimer just once a week
        var expires = new Date();
        expires.setTime(expires.getTime() + (7*24*60*60*1000));  // days*hours*minutes*seconds*ms
        
        // remember that user agreed to disclaimer
        document.cookie = "disclaimer=agree;expires=" + expires.toGMTString();
    }
    else  // Cancel
    {
        // go to adeq home page
        document.location.replace("http://www.azdeq.gov");
    }
}

