<!-- print page content start
var gAutoPrint = true; // Flag for whether or not to automatically call the print function

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

/* This section is commented out to fix an issue with the random image loading - if the head content is desired, uncomment this section
		if (document.getElementsByTagName != null)
		{
			var headTags = document.getElementsByTagName("head");
			if (headTags.length > 0)
				html += headTags[0].innerHTML;
		 }

*/
		// This line adds a link to the parent page's css sheet 
		html += '<link href="http://www.aspentrailer.com/css/style1.css" rel="stylesheet" type="text/css">';
		
		html += '\n</HE' + 'AD>\n<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">\n';
		
		//this puts content in a white table over the bg pattern (which was a problem) - it contains opening tags with logo in the header - look down the line for logo insert
		html += '<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0"  bgcolor="#FFFFFF"><tr valign="middle"  height="100%"><td valign="top"><table width="100%"  border="0" cellspacing="10" cellpadding="0"><tr><td><img src="http://www.aspentrailer.com/images/logo.gif" width="205" height="73"></td></tr><tr><td align="left" valign="middle"><img src="http://www.aspentrailer.com/images/ruleHoriz_blu.gif" width="602" height="2"></td></tr><tr><td>'; 
		
		var printReadyElem = document.getElementById("printReady");
		
		if (printReadyElem != null)
		{
				html += printReadyElem.innerHTML;
		}
		else
		{
			alert("Could not find the printReady section in the HTML");
			return;
		}
		
		//closing table tags with "close window" javascript button
		html += '</td></tr><tr><td align="left" valign="middle"><img src="http://www.aspentrailer.com/images/spacer.gif" width="80" height="18"></td></tr><tr><td align="left" valign="middle"><img src="http://www.aspentrailer.com/images/ruleHoriz_blu.gif" width="602" height="2"></td></tr><tr><td align="center" valign="middle"><a href="javascript:window.close();">CLOSE WINDOW</a></td></tr></table></td></tr></table>';
		
		html += '\n</BO' + 'DY>\n</HT' + 'ML>';

		
		var printWin = window.open("","printSpecial","width=640, height=480, location=no, menubar=yes, status=no, toolbar=no, scrollbars=yes, resizable=yes");
		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.");
	}
}

//print content end-->
