/* Copyright 2006 by Philip Shaw, phil@codestyle.org, see http://codestyle.org/scripts/log/ArchiveValidator.js for un-compressed source. */
var startYear=2000;var startMonth=7;var line="__________________________________________________\n\n";function checkArchiveDate(){if(typeof document.getElementById!="undefined"){var a=document.getElementById("month");var b=document.getElementById("year");if((a!=null)&&(b!=null)){var d=a.selectedIndex;var c=b.selectedIndex;if((c==0)&&((d+1)<startMonth)){return alertTooEarly()}else{if((c==(b.options.length-1))&&(d>=endMonth)){return alertTooLate()}else{return true}}}else{return true}}else{return true}}function alertTooEarly(){alert("Selected date is too early\n"+line+"The archive page for the date you selected does not exist,\nthe date is before the origin of this site. Please choose\na date from July 2000 onwards.\n"+line);return false}function alertTooLate(){alert("Selected date is too late\n"+line+"The archive page for the date you selected has not been\npublished yet. Please see the current site log page for the\nmost recent entries.\n"+line);return false};
