window.onload = function ()
{
	createButtons();
}

function createButtons ( )
{
	var toplink;
	var botlink;

	toplink = document.createElement('a');
	toplink.innerHTML = "[Close]";
	toplink.setAttribute("id","topclose");
	toplink.setAttribute("href", "javascript:window.close();");
	toplink.onclick='window.close();';
	document.getElementById("topclose").appendChild(toplink);
	
	/* I doubt two different objects are necessary. But... */
	botlink = document.createElement('a');
	botlink.innerHTML = "[Close]";
	botlink.setAttribute("id","topclose");
	botlink.setAttribute("href", "javascript:window.close();");
	botlink.onclick='window.close();';
	document.getElementById("bottomclose").appendChild(botlink);
	
	/* It might be nice to have link inside brackets. I put the brackets inside the link mostly
	   out of laziness, but part because it is a small link, but really it is about being lazy. */
}
