var printwindow;
function printIt(contentId, contentId2) {
	contentTag = document.getElementById(contentId);
	if(document.getElementById(contentId2))
	{
	    contentTag2 = document.getElementById(contentId2);
	}
	printwindow = window.open("",null,"height=480,width=640,status=no,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no,left=" + (screen.availWidth-640)/2 + ",top=" + (screen.availHeight-480)/2);
	printwindow.document.write('<html>');
	printwindow.document.write('<head>');
	printwindow.document.write('<title>');
	printwindow.document.write('</title>');
	printwindow.document.write(cssLinks);	
	printwindow.document.write('</head>');
	if(document.getElementById(contentId2))
	{
	    printwindow.document.write('<body onLoad="window.opener.printMove1();">');
	}
	else{
	    printwindow.document.write('<body onLoad="window.opener.printMove();">');
	}
	printwindow.document.write('<table width="100%" border="0" cellpadding="0" cellspacing="0">');
	if (menuTitle != ''){
	    printwindow.document.write('<tr><td style="height: 30px; font-size:12px; font-weight:bold;">');
	    printwindow.document.write(menuTitle);
	    printwindow.document.write('</td></tr>');
	}
	printwindow.document.write('</table>');
	if(document.getElementById(contentId2))
	{
	    printwindow.document.write('<table><tr><td><div id="printDiv1" class="divMenu">');
	    printwindow.document.write('</div></td></tr>');
	    
	    if (newsTitle != ''){
	    printwindow.document.write('<tr><td style="height: 30px; font-size:11px; font-weight:bold;">');
	    printwindow.document.write(newsTitle);
	    printwindow.document.write('</td></tr>');
	    }
	    
	    printwindow.document.write('<tr><td><div id="printDiv">');
	    printwindow.document.write('</div></td></tr></table>');
	}
	else{
	    printwindow.document.write('<div id="printDiv">');
	    printwindow.document.write('</div>');
	}
	printwindow.document.write('</body>');
	printwindow.document.write('</html>');
	printwindow.document.close();
	return;
}

function printMove() {
	printwindow.document.getElementById('printDiv').innerHTML = contentTag.innerHTML;
	printwindow.focus();
	printwindow.print();
}

function printMove1() {
	printwindow.document.getElementById('printDiv1').innerHTML = contentTag2.innerHTML;
	printwindow.document.getElementById('printDiv').innerHTML = contentTag.innerHTML;
	printwindow.focus();
	printwindow.print();
}