﻿function printcd() {
	var sTitle=document.title;
	var sC = document.title.split("-")[0];
	var s = ContentArea.innerHTML;
	var re = new RegExp("></td>","gi");
	s=s.replace(re,">&nbsp;</td>");
	re = new RegExp("<a [^>]*>|<\x2fa>","gi");
	s=s.replace(re,"");
	re=new RegExp("cellSpacing=1","gi");
	s=s.replace(re,"cellspacing=0");

	win=window.open('','print','height=500,width=780,menubar=no,status=0,titlebar=0,toolbar=0,scrollbars=1');
	
	var sStr='<table align="center" width="95%" class="tblTitle"><tr><td>'+ sTitle
		  +'</td><td  align="right">http://'+window.location.hostname+'</td></tr>';
	   sStr+='<tr><td colspan="2"><hr size="1"></td></tr></table>' ;
	//sStr+='<center align="center"><font size="+1">'+sC+'</font></center>'+s;
	sStr+=s;
	win.document.clear();
	win.document.write("<title>"+sTitle+"</title>");
	win.document.write('<link rel="stylesheet" type="text/css" href="/css/print.css">');
	win.document.write('<object id="ieWeb" width=0 height=0 classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>');
	win.document.write("<body bgcolor='white' onload="+'"'+"setTimeout('self.close()',20*1000)"+'">');
	win.document.write(sStr);
	win.document.write("</body>");
	win.document.close();
	win.ieWeb.ExecWB(7,1);
}
