function setUpClosePrint()
{
	var theAnchors = new Array();
	
	if (!document.getElementsByTagName) {
		theAnchors = null;
	}
	
	theAnchors = document.getElementsByTagName("A");
	if (theAnchors.length < 1) {
		theAnchors = null;
	}
	
	var i = 0;
	var dim = theAnchors.length;
	
	for (i = 0; i < dim; i++) {
		if (theAnchors[i].className == 'closeWin') {
			theAnchors[i].onclick = function()
			{
				window.close();
			}
		}
		if (theAnchors[i].className == 'printthispage') {
			theAnchors[i].onclick = function()
			{
				window.print();
			}
		}
	}
}

addEvent(window, 'load', setUpClosePrint);
