// JavaScript Document
var gAutoPrint = true; // Flag for whether or not to automatically call the print function

function printSpecial(mycontent)
{
	if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n<title>Solange Porta Propiedades\n</ti' + 'tle>\n<link rel="stylesheet" href="print.css" type="text/css"><BODY>\n';
		var printReadyElem = document.getElementById(mycontent);
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
			
		html += '\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.");
	}
}
