function openPrintVersion() {
	var url = document.location.href;
	
	var printWindow = window.open(url, "printWindow1", "height=580,width=600,location=yes,status=no,menubar=yes");
	printWindow.printVersion = true;
	printWindow.focus();
	
	return false;
}

function showPrintVersion(doc) {
	
	var sheet = doc.getElementById('printStyle');
	
	var l=doc.createElement("link");
	l.setAttribute("href", sheet.href);
	l.setAttribute("media", "screen");
	l.setAttribute("rel", "stylesheet");
	l.setAttribute("type", "text/css");
	doc.getElementsByTagName("head")[0].appendChild(l);
	
	window.focus();
	window.print();
	
	// false zurückgeben, damit das href-attribut des links nicht ausgewertet wird
	return false;
}