function sdPrint()
{
var pwin=window.open("","_blank","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width="+width+",height="+height+",left=0,top=0");
var t=document.frmedit.txtmsg.value;
pwin.document.writeln('<h3>'+t+'</h3>');
}
{
var pwin=window.open("","_blank","toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=no,width="+width+",height="+height+",left=0,top=0");
var t=document.frmedit.txtmsg.value;
pwin.document.writeln('<h3>'+t+'</h3>');
}
var height=screen.height-60忘了放上这一句了,用于设置打开窗口的大小