var blnPrint = false;

function window.document.onmousover() {
			alert(document.activeElement.tags)

}

function doPrint() {
			if (blnPrint == false) {
				startPrint();
			}
			else {
				endPrint();
			}
}

function startPrint() {
			document.body.style.backgroundColor = "#ffffff";
			document.body.style.color = "#000000";
			document.all.item("topLink").style.display = "none";
			document.all.item("bottomLink").style.display = "none";
			
			/*IMAGES*/
			for (var i = 0; i < document.images.length; i++) {
				document.images[i].style.display = "none";
			}
			
			/*CELLS*/
			for (var i = 0; i < document.all.tags("td").length; i++) {
				if (document.all.tags("td")[i].style.background != "") {
					document.all.tags("td")[i].style.display = "none";
				}
			}
			document.activeElement.innerText = "[web version]"
			blnPrint = true;
}

function endPrint() {
			document.body.style.backgroundColor = "#000000";
			document.body.style.color = "#ffcc33";
			document.all.item("topLink").style.display = "block";
			document.all.item("bottomLink").style.display = "block";
			
			/*IMAGES*/
			for (var i = 0; i < document.images.length; i++) {
				document.images[i].style.display = "block";
			}
			
			/*CELLS*/
			for (var i = 0; i < document.all.tags("td").length; i++) {
				document.all.tags("td")[i].style.display = "block";
			}
			document.activeElement.innerText = "[print version]"
			blnPrint = false;
}