var da = (document.all) ? 1 : 0;
var pr = (window.print) ? 1 : 0;
var mac = (navigator.userAgent.indexOf("Mac") != -1); 


function PrintPage() 
{
	if (pr) window.print()														// NS4, IE5
  	else	if (da && !mac) vbPrintPage()										// IE4 (Windows)
    		else alert("Sorry, your browser doesn't support this feature.");	// other browsers
	}