function PrintParts(arrElementNames)
{
var objWindow=window.open("about:blank", "print", "left=0, top=0, width=600, height=640, toolbar=no, scrollbars=yes");
var strHtml='<!DOCTYPE HTML>';
strHtml="<html>";
strHtml += "<head>";
strHtml += "<LINK rel='stylesheet' type='text\/css' href='\/dat\/_style.css'>";
strHtml += "<LINK rel='stylesheet' type='text\/css' href='\/common\/_style_tags.css'>";
strHtml += "<LINK rel='stylesheet' type='text\/css' href='\/common\/_style_pw.css'>";
strHtml += "<!--[if lt IE 7]><link rel='stylesheet' type='text\/css' href='\/common\/_pngfiles.css'><![endif]-->";
strHtml += "<\/head>";
strHtml += "<body>";
for (var i=0; i<arrElementNames.length; i++)
{
var element=document.getElementById(arrElementNames[i]);
strHtml += element.innerHTML;
}
strHtml += "<\/body>";
strHtml += "<\/html>";
objWindow.document.write(strHtml);
objWindow.document.close();
objWindow.print();
objWindow.close();
}

function printSelection(node){
	var content=node.innerHTML
	var pwin=window.open('','print_content','width=600, height=640, toolbar=no, scrollbars=yes');
	pwin.document.open();
	pwin.document.write('<!DOCTYPE HTML>');
	pwin.document.write("<html>");
	pwin.document.write("<head>");
	pwin.document.write("<link rel='stylesheet' type='text\/css' href='\/dat\/_style.css'>");
	pwin.document.write("<link rel='stylesheet' type='text\/css' href='\/common\/_style_tags.css'>");
	pwin.document.write("<link rel='stylesheet' type='text\/css' href='\/common\/_style_pw.css'>");
	pwin.document.write("<\/head>");
	pwin.document.write("<body>");
	pwin.document.write(content);
	pwin.document.write("<\/body>");
	pwin.document.write("<\/html>");
	pwin.document.close();
	setTimeout(function() {
		pwin.print();
		pwin.focus();
	},500);
}
