function toPrint() { VAR w= window.open("frame_print.jsp","foundr","width="+(screen.availWidth+8)+",height="+(screen.availHeight+8)+",toolbar=2,location=2,directories=2,status=2,menubar=2,scrollbars=2,resizable=2,copyhistory=2,top=0,left=0"); w.moveTo(-4,-4); self.close(); }加个var
{
VAR w= window.open("frame_print.jsp","foundr","width="+(screen.availWidth+8)+",height="+(screen.availHeight+8)+",toolbar=2,location=2,directories=2,status=2,menubar=2,scrollbars=2,resizable=2,copyhistory=2,top=0,left=0");
w.moveTo(-4,-4);
self.close();
}加个var