var gAutoPrint = true;

function PrintSpecial()
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var titleTag = document.getElementsByTagName("title");
			if (titleTag != null)
				html += "<ti" + "tle>"+ titleTag[0].innerHTML +"</title>";
		}

		html += "<link rel=\"stylesheet\" href=\"http://www.samsoferiehus.dk/css/defaultstyles.css\" type=\"text/css\">";
		html += "<link rel=\"stylesheet\" href=\"http://www.samsoferiehus.dk/css/menustyles.css\" type=\"text/css\">";
		html += "<link rel=\"stylesheet\" href=\"http://www.samsoferiehus.dk/booking/Themes/SamsoeFeriehus/SamsoeFeriehus.css\" type=\"text/css\">";
		html += "\n</HE" + "AD>\n<BODY>\n\n";

		var printReadyElem = document.getElementById("PrintContent");		
		if (printReadyElem != null)
		{
			html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '\n\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","printSpecial");
		printWin.document.open();
		printWin.document.write(html);
		printWin.document.close();
		if (gAutoPrint)
			printWin.print();
	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}