var printwindow;
function printIt(contentId, contentId2,numC) {
    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);
//window.open("",null,"height=480,width=640,status=yes,resizable=yes,scrollbars=yes,toolbar=yes,menubar=yes,location=yes,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(printTitle);
	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">');
	printwindow.document.write('<tr>');
	if (numC==0){
	    printwindow.document.write('<td style="border-bottom:1px solid #E78831;padding-bottom:10px;padding-right:20px;">');
	}
	else if (numC==1){
	    printwindow.document.write('<td style="border-bottom:1px solid #6e008b;padding-bottom:10px;padding-right:20px;">');
	}
	else if (numC==2){
	    printwindow.document.write('<td style="border-bottom:1px solid #f8e61b;padding-bottom:10px;padding-right:20px;">');
	}
	else if (numC==3){
	    printwindow.document.write('<td style="border-bottom:1px solid #2d8cd4;padding-bottom:10px;padding-right:20px;">');
	}
	else if (numC==4){
	    printwindow.document.write('<td style="border-bottom:1px solid #9dac1f;padding-bottom:10px;padding-right:20px;">');
	}
	else if (numC==5){
	    printwindow.document.write('<td style="border-bottom:1px solid #b70936;padding-bottom:10px;padding-right:20px;">');
	}
	else if (numC==6){
	    printwindow.document.write('<td style="border-bottom:1px solid #e20177;padding-bottom:10px;padding-right:20px;">');
	}
	printwindow.document.write('<img src="/site/images/logo'+numC+'P.gif" width="216" height="64" alt="" align="right" />');
	printwindow.document.write('</td>');
	printwindow.document.write('</tr>');
	printwindow.document.write('<tr>');
	printwindow.document.write('<td style="padding:20px;padding-top:10px;">');
	if(document.getElementById(contentId2))
	{
	    printwindow.document.write('<table><tr><td><div id="printDiv1"  style="margin-top:5px;">');
	    printwindow.document.write('</div></td></tr>');
	    printwindow.document.write('<tr><td>');
	    printwindow.document.write('<div id="printDiv"  style="margin-top:5px;">');
	    printwindow.document.write('</div></td></tr></table>');
	}
	else{
	    printwindow.document.write('<div id="printDiv" style="margin-top:5px;">');
	    printwindow.document.write('</div>');
	}
	printwindow.document.write('</td>');
	printwindow.document.write('</tr>');
	printwindow.document.write('</table>');
	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();
}