var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 

function printPage() {
	//alert("Print page function")

	if (pr) { // NS4, IE5
		window.print() }
	else if (da && !mac) { // IE4 (Windows)
		vbPrintPage() }
	else { // other browsers
		alert("Sorry, your browser doesn't support this feature.\nPlease print this page from your browser menu.") }
}