function OpenComments (c) {
	window.open(c, 'comments', 'width=480,height=480,scrollbars=yes,status=yes,resizable=yes');
}

function OpenTrackback (c) {
    window.open(c, 'trackback', 'width=480,height=480,scrollbars=yes,status=yes');
}

function newWin(newURL) {
	window.open(newURL, 'SmWin', 'toolbar=no,status=no,scrollbars=yes,resizable=yes,width=300,height=200')
}

function showTheHours(theHour) {
	if (theHour > 0 && theHour < 13) {
		return theHour
	}
	return (theHour == 0) ? 12 : (theHour-12)
}

function zeroFilled(inValue) {
	return (inValue > 9) ? inValue : "0" + inValue
}

function showAmPm() {
	return (now.getHours() < 12) ? " am" : " pm"
}

function showBackgroundImage(showHead) {
	if (showHead) {
		document.getElementById('headContent').style.backgroundColor=''
	}
	else {
		document.getElementById('headContent').style.backgroundColor='white'
	}
}

function toggleMenu(currMenu) {
	if (document.getElementById) {
		thisMenu = document.getElementById(currMenu).style
		if (thisMenu.display == "block") {
			thisMenu.display = "none"
		}
		else {
			thisMenu.display = "block"
		}
		return false
	}
	else {
		return true
	}
}

monName = new Array("January","February","March","April","May","June","July","August","September","October","November","December")
now = new Date

dateStr = monName[now.getMonth()] + " " + now.getDate() + ", "
dateStr += (now.getYear() < 1900) ? now.getYear()+1900 : now.getYear()
dateStr += " " + showTheHours(now.getHours()) + ":" + zeroFilled(now.getMinutes()) + showAmPm()

onButton = new Image
offButton = new Image

onButton.src = "http://www.chalcedony.com/wisewomen/images/ww_blu.gif"
offButton.src = "http://www.chalcedony.com/wisewomen/images/ww_wht_glo.gif"
