function doPrint(contentElement, styleSheet)
{
	var w = window.open('','new','resizable=yes,status=yes,scrollbars,width=640,height=500,top=100,left=100');
	w.document.open();
	w.document.write("<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\"><html xmlns=\"http://www.w3.org/1999/xhtml\"><head><meta http-equiv=\"content-type\" content=\"text/html; charset=UTF-8\" /><title>Ordrebekr\u00E6ftelse</title><link rel=\"stylesheet\" type=\"text/css\" href=\"/wcsstore/JJStorefrontAssetStore/css/main/all.css\" /></head><body></body></html>");

	function doThisWhenLoaded()
	{
		w.document.body.innerHTML = contentElement.innerHTML;
		//w.document.getElementById("printLinkTop").style.display = 'none';
		//w.document.getElementById("printLinkBottom").style.display = 'none';
		w.document.close();
		if (w.print) {
		 	w.print();
		}
	}

	if (document.getElementById && !document.all) // Firefox or NS6+
	{
		// Firefox needs time to load the html content before we use the DOM
		setTimeout(doThisWhenLoaded, 1000);
	}
	else
	{
		doThisWhenLoaded();
	}

	/*
	if (w.document.addEventListener) {
		w.document.addEventListener("DOMContentLoaded", doThisWhenReady, false);
	}
	*/
}
