Hi
Add startprintview and endprintview in your page to delimit the part you want to be printable.
Then a link that runs this :
function viewprint()
{
var tag1 = "start" + "printview";
var tag2 = "end" + "printview";
var postag1 = 0;
var postag2 = 0;
var corps = "";
var theader = "";
var win_opt= "toolbar=0,location=0,directories=0,status=0,menubar=1,";
win_opt += "scrollbars=1,resizable=1,copyhistory=0,width=750,height=400";
// Create a new window
NewWindow= window.open("","Title",win_opt);
NewWindow.creator= self;
// Get the head in order to retrieve css links
theader = document.getElementsByTagName("head")[0].innerHTML;
corps = document.body.innerHTML;
// Looks for delimiters
//alert(corps.indexOf(tag1));
//alert(corps.indexOf('ICI'));
postag1 = corps.indexOf(tag1) + 21;
postag2 = corps.indexOf(tag2) - 9;
// extracts useful part
corps = corps.substring(postag1,postag2);
// displays in another window
NewWindow.document.open();
NewWindow.document.write("<HTML><HEAD>");
NewWindow.document.write(theader);
NewWindow.document.write("</HEAD><BODY><BR>");
NewWindow.document.write(corps);
NewWindow.document.write("</BODY></HTML>");
NewWindow.document.close();
}