blob: e27814eab06fcbcaac39d472c1c4c0933ae8a87b [file] [log] [blame]
var uptodate;
function startTest(dlurl, useExcludeList) {
if (!useExcludeList) {
window.graph.document.location.href="graph.jsp?mode=testnow&useExcludeList=no";
} else {
if (uptodate) {
window.graph.document.location.href="graph.jsp?mode=testnow&useExcludeList=yes";
} else {
if (window.confirm("The Exclude List is out of date.\nPress OK to continue testing or CANCEL to get pointed to the download page")) {
window.graph.document.location.href="graph.jsp?mode=testnow&useExcludeList=yes";
} else {
var dlwin = window.open(dlurl,'DownloadExcludeList','width=800,height=600')
}
}
}
}
function isUpToDate() {
uptodate = true;
}
function isOutOfDate() {
uptodate = false;
}
function excludeListIsUpToDate(url) {
var tester = new Image();
tester.onload = isOutOfDate;
tester.onerror = isUpToDate;
tester.src = url;
}