var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printcont()
{
	if (document.getElementById != null)
	{
		var html00 = '<HTML>\n<HEAD>\n';

		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html00 += headTags[0].innerHTML;
		}
		
		html00 += '\n</HE' + 'AD>\n<BODY>\n';
		
		var printReadyElem = document.getElementById("intcontenidoedit1");
		
		if (printReadyElem != null)
		{
				html00 += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html00 += '\n</BO' + 'DY>\n</HT' + 'ML>';
		
		var printWin = window.open("","intcontenidoedit1");
		printWin.document.open();
		printWin.document.write(html00);
		printWin.print();
		printWin.document.close();
		

	}
	else
	{
		alert("Sorry, the print ready feature is only available in modern browsers.");
	}
}

