function getPrintableHTML()
{
    var origContent = document.getElementById("bodyContent");
    var newContent = origContent.innerHTML;

    //Remove the "Printable Version" links from the pop-up page. To do this I remove the links from the original page,
    //then extract new html and then put it back.
    var printableDiv = document.getElementById("printableVersionLinks");
    if(printableDiv != null) {
        var printableDivContent = printableDiv.innerHTML;
        printableDiv.innerHTML = "";
        newContent = origContent.innerHTML;
        printableDiv.innerHTML = printableDivContent;
    }
    
    var newWindow = window.open("","printableversion","width=650,height=600,location=no,resizable=yes,scrollbars=yes,status=yes,titlebar=yes,toolbar=no");
    newWindow.document.write('<html>');
	newWindow.document.write('<head>');
	newWindow.document.write('	<title>Thomas Weisel Partners Group</title>');
	newWindow.document.write('	<link rel="stylesheet" type="text/css" href="/css/twp.css" title="Thomas Weisel Partners Group Style Sheet">');
	newWindow.document.write('</head>');

	newWindow.document.write('<body>');
	newWindow.document.write('	<table align="center" width="90%" cellspacing="0">');
	newWindow.document.write('	<tr><td>');
	newWindow.document.write('	<table width="100%" cellspacing="0" border="1" class="twpouterlayout">');
	newWindow.document.write('	<tr><td>');
	newWindow.document.write('	<table width="98%" border="0" align="center" cellpadding="5" cellspacing="0" bgcolor="#FFFFFF">');
	newWindow.document.write('		<tr>');
	newWindow.document.write('			<td align="right">');
	newWindow.document.write('				<p>');
	newWindow.document.write('					<a href="#" onclick="window.close();return false;"><span class="business-green">Close</span></a><span class="business-gray">&nbsp;|&nbsp;</span><a href="#" onclick="window.print();return false;"><span class="business-gray">Print</span></a>');
	newWindow.document.write('				</p>');
	newWindow.document.write('			</td>');
	newWindow.document.write('		</tr>');

	newWindow.document.write('		<tr>');
	newWindow.document.write('			<td>');
    newWindow.document.write(newContent);
    newWindow.document.write('		    </td>');
	newWindow.document.write('		</tr>');
    newWindow.document.write('		<br>');

    newWindow.document.write('		<tr>');
	newWindow.document.write('			<td>');
	newWindow.document.write('		        <p><img src="/img/popup_logo.gif" alt="Thomas Weisel Partners Group Logo"></p>');
	newWindow.document.write('			</td>');
	newWindow.document.write('		</tr>');
	newWindow.document.write('	</table>');
	newWindow.document.write('	</td></tr>');
	newWindow.document.write('	</table>');
	newWindow.document.write('	</td></tr>');
	newWindow.document.write('	<tr><td>');
	newWindow.document.write('	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">');
	newWindow.document.write('		<tr>');
	newWindow.document.write('			<td><div class="copyright">Thomas Weisel Partners LLC is a member of  NYSE/<a href="http://www.nasd.com" target="newwin">FINRA</a>/<a href="http://www.sipc.org" target="newwin">SIPC</a><br>Thomas Weisel Partners Canada Inc., is a member of <a href="http://www.cipf.ca/" target="newwin">CIPF/FCPE</a> and <a href="http://www.iiroc.ca" target="newwin">IIROC</a><br>Copyright © 2008 Thomas Weisel Partners LLC</div></td>');
	newWindow.document.write('		</tr>');
	newWindow.document.write('	</table>');
	newWindow.document.write('	</td></tr></table>');
	newWindow.document.write('</body>');
    newWindow.document.write('</html>');
    newWindow.document.close();
    newWindow.focus();

}