function printpage() {
	
	strNewWindow = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n';
	strNewWindow = strNewWindow + '<html>\n';
	strNewWindow = strNewWindow + '<head>\n';
	strNewWindow = strNewWindow + '<title>'+window.parent.document.title+'</title>\n';
	strNewWindow = strNewWindow + '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />';
	strNewWindow = strNewWindow + '<meta http-equiv="Content-Style-Type" content="text/css" />';
	strNewWindow = strNewWindow + '<link href="/int/system/css/layout.css" rel="stylesheet" type="text/css"/>\n';
	strNewWindow = strNewWindow + '<link href="/int/system/css/colours.css" rel="stylesheet" type="text/css"/>\n';
	strNewWindow = strNewWindow + '<link href="/int/system/css/fonts.css" rel="stylesheet" type="text/css"/>\n';
	strNewWindow = strNewWindow + '<link href="/int/system/css/print.css" rel="stylesheet" type="text/css" media="print"/>\n';
	strNewWindow = strNewWindow + '</head>\n';
	strNewWindow = strNewWindow + '<body class="print" onload="javascript:window.print();self.close();">\n';
	
	strNewWindow = strNewWindow + '<!-- start of print -->\n';
	strNewWindow = strNewWindow + '<img src="/int/binary/BBH_logo.gif" alt="Bloemenburo Holland - supporting your business" class="logo" /><br clear="all"  \>\n';
	strNewWindow = strNewWindow + '<div id="content" class="'+document.getElementById('content').className+'">\n';
	strNewWindow = strNewWindow + document.getElementById('content').innerHTML + '\n';
	strNewWindow = strNewWindow + '</div>\n';
	strNewWindow = strNewWindow + '<!-- end of print -->\n';
	
	strNewWindow = strNewWindow + '</body>\n';
	strNewWindow = strNewWindow + '</html>\n';

	PopWin = window.open('','Print','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=612,height=730,left=200,top=50');
	PopWin.document.write(strNewWindow);
	PopWin.location.reload(false);
	PopWin.document.close();
	return false;
}

function popUp(url,name,w,h) {
	PopWin2 = window.open(url,name,'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width='+w+',height='+h+',left = 200,top = 150');
}

function initAll() {
	theContent = document.getElementById('content');
	printButton = document.getElementById('print');
	if (printButton && theContent) printButton.onclick = printpage;
}

if (window.addEventListener) window.addEventListener("load", initAll, false)
else if (window.attachEvent) window.attachEvent("onload", initAll)
else if (document.getElementById) window.onload = initAll