var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1);
//function prints the current page from the user's browser
function printIt() {
 	if (pr) // window.print object exists in NS4, IE5
 		window.print()
	else if (da && !mac) // document.all object exists, not mac is IE4 (Windows)--use VBscript print
		vbPrintPage()
	else // other browsers
		alert("Sorry, your browser doesn't support this feature.");
           }
