//Set the dates below
var goLiveDate = "20110512";
var expireDate = "20110512";

//Parse the dates
var expireYear = expireDate.substring(0,4)
var expireMonth = expireDate.slice(4,-2)
var expireDay = expireDate.slice(6)
var liveYear = goLiveDate.substring(0,4)
var liveMonth = goLiveDate.slice(4,-2)
var liveDay = goLiveDate.slice(6)
var nowDate = new Date();
var day = nowDate.getUTCDate();
var month = nowDate.getUTCMonth();
var month1 = month + 1;

//Zero pad month or day if less then 10
if (month1 < 10 ) { month1 = "0" + month1; }
if (day < 10 ) { day = "0" + day; }
var year = nowDate.getYear();

//Set GMT Date 
var GMTdate = year + "" + month1 + "" + day

//Do the compare
if ((GMTdate < expireDate) && (GMTdate >= goLiveDate))
{
document.writeln('    <hr\/>\r\n    <h1>\r\n        <em>Important News<\/em><\/h1>\r\n    <font size="4" face="Arial, Helvetica, sans-serif">May 15, 2011 - Fullerton, CA -\r\n    <\/font>\r\n    <p align="justify">\r\n        Our servers are offline due to a hardware failure that occurred during routine maintenance. We\r\n       are working diligently to bring the servers back online as soon as possible.<\/p>\r\n    <p align="justify">\r\n        Unforunately, we are not able to run appointment lists until the servers are back online. \r\nWe apologize for any inconvenience this may cause and greatly appreciate your patience.<\/p>\r\n    <p align="justify">\r\n        Thank you.<\/p>\r\n');}

