<!--
function viewprint() {
// V1.1
var tag1 = "start" + "view";
var tag2 = "end" + "view";
var postag1 = 0;
var postag2 = 0;
var corps = "";
var theader = "";
var ico = '<a href="javascript:window.print();">Print</a>'
var win_opt= "toolbar=0,location=0,directories=0,status=0,menubar=1,";
win_opt += "scrollbars=1,resizable=1,copyhistory=0,width=750",height=800;
// Create a new window
NewWindow= window.open("","Title",win_opt);
NewWindow.creator= self;
// Nestcape doesn't support outerHTML property
// specific DIV startview can't be used because it spans accross others tags
// due to the way that Portal manages regions rendering
// Get the head in order to retrieve css links
theader = document.getElementsByTagName("head")[0].innerHTML;
corps = document.body.innerHTML;
// Looks for delimiters
postag1 = corps.indexOf(tag1) + 16;
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>"+ico + "<BR>");
NewWindow.document.write(corps);
NewWindow.document.write("</BODY></HTML>");
if (window.focus) {NewWindow.focus()}
}
