// JavaScript Document
var gAutoPrint = true; // Tells whether to automatically call the print function
function printSpecial_old() {
    if (document.getElementById != null) {
        printWindow = window.open("", "printOffer", "location=0,status=0,scrollbars=1,width=600,height=600");
        printWindow.document.write("<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>");
        printWindow.document.write("<html xmlns='http://www.w3.org/1999/xhtml'><head>");
        printWindow.document.write("<title>Print Preview</title>");
        printWindow.document.write("<head>");
        printWindow.document.write("<link rel='stylesheet' type='text/css' href='styles/default.css' />");
        printWindow.document.write("</head><body>");
        printWindow.document.write("<div id='content-area'>\n");
        printWindow.document.write("<div class='print' style='font-size:12px;'>\n");
        printWindow.document.write(document.getElementById('printReady').innerHTML);
        printWindow.document.write("</div></div>");
        printWindow.document.write("</body></html>");
        printWindow.document.close();
        printWindow.focus();
        if (gAutoPrint)
            printWindow.print();     
    }
    else {alert("The print ready feature is only available if you are using an browser. Please update your browswer.");}
    return true;
}

function printSpecial() {
   if (document.getElementById != null)
	{
		var html = '<HTML>\n<HEAD>\n';
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		}
		html += '\n</HE' + 'AD>\n<BODY>\n';
		var printReadyElem = document.getElementById("printReady");
		if (printReadyElem != null)
		{
            html += '<div id="content-area"><div class="print">' + printReadyElem.innerHTML + '</div></div>';
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
		html += '\n</DIV>\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.");
	}
	return true
}


