function $(elementId)
{
	return document.getElementById(elementId);
}

function initcopypaste()
{
	if(!$('copypaste')) return;

	$('copypaste').onclick = copypastechange;
	$('copypaste-form').style.display = 'none'
}

function copypastechange()
{
	var status = ($('copypaste-form').style.display == 'block') ? false : true;

	$('copypaste-form').style.display = (status) ? 'block' : 'none';
}

function blog_show()
{
	var myelem = document.getElementById("blog_html");

	if(myelem)
		myelem.style.display = (myelem.style.display == "none" ? "block" : "none");
}

function comm_show()
{
	var myelem = document.getElementById("comm_html");

	if(myelem)
		myelem.style.display = (myelem.style.display == "none" ? "block" : "none");
}
