function PrintVersion(strPrintBodyId, eltCaller) {

	try {

		var doc=(eltCaller.ownerDocument ? eltCaller.ownerDocument : eltCaller.document);
		var eltPrintBody=doc.getElementById(strPrintBodyId);
		if (!eltPrintBody) eltPrintBody=doc.body;

		var objIFrames=eltPrintBody.getElementsByTagName('iframe');
		for (var i=0; i<objIFrames.length; i++) {

			try {
				var strSrc=objIFrames[i].getAttribute('src');
				if (strSrc.indexOf('/')==0) strSrc=location.protocol+'//'+location.host+strSrc;
				if (strSrc!=objIFrames[i].contentWindow.location.href) objIFrames[i].setAttribute('src',objIFrames[i].contentWindow.location.href);
			}
			catch(e) {}
		}

		//Make window fit A4 on normal screen sizes...
		var w=1000;
		//test new width 800 //Morgan 2007-06-21 according to Magnus Börjesson
		// not that good! width 1000 is correct
		//var w=800;
		var h=1414;
		if (w>screen.availWidth*.8) w=parseInt(screen.availWidth*.8,10);
		if (h>screen.availHeight*.8) h=parseInt(screen.availHeight*.8,10);
		var x=parseInt((screen.availWidth-w)/2,10)-8
		var y=parseInt((screen.availHeight-h)/2,10)-36

		var objWin=window.open(eltCaller.href,eltCaller.target,'left='+x+',top='+y+',width='+w+',height='+h+',resizable=1,scrollbars=1')
		if (objWin.closed) return false;

		var strHTML=''+
		'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">'+
		'<html xmlns="http://www.w3.org/1999/xhtml">'+
		'<head>'+
		'<script type="text/javascript">'+
		'window.boolWindowIsInPrintVersionMode=true;'+ //cancel MSIE6 resize-fix in ie.js
		'</script>'+

		/* Modified 2008-02-01 by Martin Johansson/CIKADO - Safari 3.0.4 (Mac) crashes when doing document.close() below, if a shortcut icon is specified here...! */
		/* doc.getElementsByTagName('HEAD')[0].innerHTML+ */
		doc.getElementsByTagName('HEAD')[0].innerHTML.split(' rel="shortcut icon"').join('')+

		'<style type="text/css" media="screen">'+ //this is only for screen A4-look...
		'#virtualbody {width:210mm; min-height:297mm; margin:2em auto 2em auto; padding:0px; overflow:hidden; background-color:white;}'+
		'#body {width:100%; overflow:hidden;}'+ //MSIE6
		'#body-inner {margin:8mm;}'+ //Modified 2007-10-22 by Martin Johansson/CIKADO
		'</style>'+
		'</head>'+
		'<body onload="setTimeout(\'if (window.print) window.print(); window.close()\',1);" onclick="return false;" style="background-color:workspace;">'+
		'<p></p>'+
		'<div id="virtualbody"><div id="body"><div id="body-inner">'+eltPrintBody.innerHTML+'</div></div></div>'+
		'<p></p>'+
		'</body>'+
		'</html>'+
		'';

		with (objWin) {
			if (window.print) document.open('text/html','replace'); //Fix for Safari 1.0 (Mac)
			document.write(strHTML);
			document.close();		
			focus();
			return true;
		}

	}
	catch(e) {
		alert(e.message);
		return false;
	}
}