var printButton;
function printPage() {
	if (!document.getElementById) return false;
	if (!document.getElementsByTagName) return false;

	if (printButton != null) {
		if (printButton) {
			if (!document.getElementById(printButton)) return false;
		}


		var printButtonID = document.getElementById(printButton);
		printButtonID.onclick = function() {
			window.print();
			return false;
		}
	}
}
