
function fnGetContenttoPrint()
{
   // returns the html within the header, middle frame, right frame and pagefooter tags
   // so that it can be rendered in a user control on a new page for "print friendly".
   
   // Decided at this time not to put the right frame and page footer on the print friendly page. 
      var htmlElmMiddleFrame;
      var htmlElmRightFrame;
      var htmlElmBreadCrumb;
            
      // get the html that is needed for the print
	  htmlElmMiddleFrame = document.getElementById('MiddleFrame');
	  htmlElmRightFrame = document.getElementById('RightFrame');
	  htmlElmBreadCrumb = document.getElementById('BreadCrumb');
	  	  
	  // concat the html into a string variable, set the page header html.
	  txtHtml = "<HTML><head><title>Volvo</title><link href='/vce/css/Generic.css' rel='stylesheet'>";
	  txtHtml = txtHtml + "</head><body><form name='PrintFriendly' method='post' action='PrintFriendly'>";
	  txtHtml = txtHtml + "<TABLE height=40 cellSpacing=0 cellPadding=0 width=755><TBODY><TR><TD><A id=uscTopNav_hlLogoLink href=\"http://www.volvo.com/\" target=_blank><IMG id=uscTopNav_imgLogo style=\"BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px\" src=\"/vce/img/constructionequipment_toplogo.1.gif\"></A>";
	  txtHtml = txtHtml + "<IMG id=uscTopNav_imgLogo2 style=\"BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-RIGHT-WIDTH: 0px\" src=\"/vce/img/constructionequipment_toplogo.2.gif\">";
	 // txtHtml = txtHtml + "<a href='javascript:self.print()'><img src='/vce/img/button.print.gif' alt='' /></a>";
	  txtHtml = txtHtml + "<a href='javascript:history.go(-1)'><img src='/vce/img/btn.back.gif' alt='' /></a></TD></TR></TBODY></TABLE>";
	  txtHtml = txtHtml + htmlElmMiddleFrame.outerHTML;
	  txtHtml = txtHtml + htmlElmRightFrame.outerHTML;
	  txtHtml = txtHtml + htmlElmBreadCrumb.outerHTML;
	  txtHtml = txtHtml + "</form></body></HTML>";
	  		
    // open a new window and push the html to the window for printing
    //newWindow = window.open('','','width=515,height=420,scrollbars=yes,toolbar=no,menubar=yes,status=no');
    //opens the print friendly version in the existing window.
    newWindow = window.open('','_self');
	fnPrint(txtHtml);
	
}

function fnPrint(txtPrintHtml)
{
	newWindow.document.open("text/html", "printWindow");
    newWindow.document.write(txtPrintHtml);
    // must do a window "refresh" to get the print() function to work correctly
    newWindow.location.reload(false);
    
}


	