// Workaround for browsers that support ActiveX but not window.print(); (ie IE4)
function printFrame() {
	if ( document.readyState != "complete" &&
		!confirm("The document to print is not downloaded yet! Continue?") )
	{
		return;
	}
	else
	{
		document.body.insertAdjacentHTML("beforeEnd", "<object id=\"printWB\" width=0 height=0 classid=\"clsid:8856F961-340A-11D0-A96B-00C04FD705A2\"></object>");

		execScript("on error resume next: printWB.ExecWB 6, 1", "VBScript");

		printWB.outerHTML = "";
	}
}

// is the window.print() method supported?
function printIsNativeSupport() {
  var agent = window.navigator.userAgent;
  var i = agent.indexOf("MSIE ")+5;
  return parseInt(agent.substr(i)) >= 5 && agent.indexOf("5.0b1") < 0;
}
