var thisForm;

// Function to toggle the tags on the page.
// Shamelessly "borrowed" from Charles Johnson
// of http://www.littlegreenfootballs.com fame.

function toggleTags(id){
	tagID = document.getElementById(id);
	if (tagID.style.display == 'none') {
		tagID.style.display = 'block';
	} else if (tagID.style.display == 'block') {
		tagID.style.display = 'none';
	} else {
		tagID.style.display = 'block';
	}
}


// Functions to hide email addresses from evil
// spammer scripts.  May they all burn in hell.

var user;
var domain;
var suffix;
var text;

function ccemailname(user, domain, suffix, text) {
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '?Subject=' + text + '">');
}

function ccemailtext(user, domain, suffix, text) {
	document.write('<a href="' + 'mailto:' + user + '@' + domain + '.' + suffix + '">' + text + '</a>');
}

// Functions to initialize the HoloScan comments and trackbacks
// Thanks to http://weblog.philringnalda.com/2002/12/12/robust-accessible-haloscan-comment-links

var hs = new Array();
var hs2 = new Array();
function myCount(id){
	if (hs[id]){
		if (hs[id] == 1){
			document.write(" (1)");
		} else {
			document.write("s (" + hs[id] + ")" );
		}
	} else {
		document.write("s");
		}
}
function myCounttb(id){
	if (hs2[id]){
		if (hs2[id] == 1){
			document.write(" (1)");
		} else {
			document.write("s (" + hs2[id] + ")" );
		}
	} else {
		document.write("s");
		}
}
