function print(printId){
var win =window.open("Pages/attend/AtteDayStatistics_print.jsp","print");
var str+="<HTML>";
str+="<HEAD>";
//str+='<BASE href="'+<%=BasePath%>+'">';
str+='<TITLE>'+document.title+'</TITLE>';
str+='<META HTTP-EQUIV="pragma" CONTENT="no-cache">';
str+='<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">';
str+='<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">';
str+='<META http-equiv="Content-Type" content="text/html; charset=UTF-8">';
str+='<object id="factory" viewastext style="display:none" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" codebase="smsx.cab#Version=6,5,439,12"></object>';
str+='<object id="WebBrowser" classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2"></object>';
str+='<style type="text/css">';
str+=".dayTable{";
str+="width:30%;margin:5px 10px;";
str+="}";
str+="</style></head>";
str+='<BODY οnlοad="window.close();">';
str+=document.getElementById(printId).innerHTML; //需要打印的html内容
str+="</BODY>";
str+="</HTML>";
win.document.write(str);
win.document.all.WebBrowser.ExecWB(7,1); //打印预览
win.document.close();
}