var isWebsiteRunning	= true;
var showSiteDownMsg		= false;
function getDateString() {
	dateString	= "";
	var date	= new Date();
	var days	= new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
	var months	= new Array("January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December");
	dateString	= dateString + days[date.getDay()] + " ";
	dateString	= dateString + months[date.getMonth()] + " ";
	dateString	= dateString + date.getDate() + ", ";
	dateString	= dateString + date.getFullYear();
	var AMPM	= "AM";
	var h = date.getHours();
	var m = date.getMinutes();
	var s = date.getSeconds();
	if (h > 12) {
		h = h - 12;
		AMPM = "PM";
	}
	if (h < 10)
		h = "0" + h;
	if (m < 10)
		m = "0" + m;
	if (s < 10)
		s = "0" + s;
	dateString = dateString + ". " + h + ":" + m + ":" + s + " " + AMPM;
	return dateString;
}
function mouseOverTab(obj) {
	obj.style.backgroundImage	= 'url(images/top_button_on.jpg)';
	obj.style.textDecoration	= 'underline';
}
function mouseOutTab(obj) {
	obj.style.backgroundImage	= 'url(images/top_button_off.jpg)';
	obj.style.textDecoration	= 'none';
}
function mouseOverBtn(obj) {
	obj.style.backgroundImage	= 'url(images/button_on.gif)';
	obj.style.textDecoration	= 'underline';
}
function mouseOutBtn(obj) {
	obj.style.backgroundImage	= 'url(images/button_off.gif)';
	obj.style.textDecoration	= 'none';
}
function getSiteDownMsg() {
	var siteDownMsg = "";
	if(showSiteDownMsg) {
		siteDownMsg = siteDownMsg
			+ "<font color=red>"
			+ "Please be advised that our website will be down for maintenance "
			+ "from 8:00 AM to 9:00 AM on    "
			+ "Thursday May     20, 2010. "
			+ "We apologize for any inconvenience caused.";
			+ "</font>";
	}
	return siteDownMsg;
}
function goAppHome() {
	if(isWebsiteRunning)
		location.href = "http://" + location.host + "/RevServ/Home?showPage=HOME";
	else
		goWebsiteDown();
}
function makePayment() {
	if(isWebsiteRunning)
		location.href = "http://" + location.host + "/RevServ/Home?showPage=MAKE_A_PAYMENT";
	else
		goWebsiteDown();
}
function goSiteMap() {
	if(isWebsiteRunning)
		location.href = "http://" + location.host + "/RevServ/Home?showPage=SITE_MAP";
	else
		goWebsiteDown();
}
function goWebsiteDown() {
	location.href = "http://" + location.host + "/sitedown.html";
}
