printerFriendly(clr,bgclr,brdr,bgimg)
Loops over all elements in a document and changes font color to black, background color to white, border-style to none and background image to null.
printerFriendly(1,1,1,1);

function printerFriendly(clr,bgclr,brdr,bgimg) {
	for(i=0;i<document.getElementsByTagName("*").length;i++) {
		if(clr)document.getElementsByTagName("*")[i].style.color="#000000";
		if(bgclr)document.getElementsByTagName("*")[i].style.backgroundColor = "#FFFFFF";
		if(brdr)document.getElementsByTagName("*")[i].style.borderStyle="none";
		if(bgimg)document.getElementsByTagName("*")[i].style.backgroundImage = "url('null')";
	}
}


printerFriendly
Last revision: 01.26.2003
steve@slayeroffice.com
http://www.slayeroffice.com