function tweak() {
	var h1tag = document.body.getElementsByTagName("h1"), h1text;
	for(var i = 0; i < h1tag.length; i++) {
		h1text = h1tag[i].innerHTML.replace(/ /g, "");
		if (h1tag.length > 1) h1text = h1text + "_hm";
		h1tag[i].innerHTML = "<img src=\"images/titles/"+ h1text +".gif\" border=\"0\" class=\"h1\" />";
	}
}

function changeDate(page) {
	var dform = document.dfrm;
	var ddate = dform.ddate.options[dform.ddate.selectedIndex].value;
	location.href = page + ddate;
}

function showCommentForm() {
	document.getElementById("comment_link").style.display = "none";
	document.getElementById("comment").style.display = "block";
}

function popWin(url, winname, w, h, title, scroll){
	var LeftPosition = (screen.width)?(screen.width-w)/2:100;
	var TopPosition = (screen.height)?(screen.height-h)/2:100;
	settings = 'width='+ w +',height='+ h +',top='+ TopPosition +',left='+ LeftPosition +',scrollbars='+ scroll +',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win = window.open(url, winname, settings);
	win.focus();
}
