function changediv( th)
{
	if ( document.getElementById( th).style.display=='none')
		document.getElementById( th).style.display='block'; else
		document.getElementById( th).style.display='none';
}

function printpr( name, value, hars)
{
	try{
	my_window= window.open("", "mywindow1","menubar=no,location=no,resizable=no,scrollbars=no,status=no,left=0,top=0,width="+(screen.width/2)+",height="+(screen.height-100)); 
	my_window.document.write( '<html>\n');
	my_window.document.write( '<head>\n');
	my_window.document.write( '<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET='+hars+'">\n');
	my_window.document.write( '<script language="javascript">\n');
	my_window.document.write( 'function myPrint()\n');
	my_window.document.write( '{\n');
	my_window.document.write( '	if (window.print)\n');
	my_window.document.write( '  window.print();\n');
	my_window.document.write( '	window.close();\n');
	my_window.document.write( '}\n');
	my_window.document.write( '</script>\n');
	my_window.document.write( '</head>\n');
	my_window.document.write( '<body onload="javascript:myPrint();">\n');
	my_window.document.write( '<H1>'+name+'</H1><hr>\n');
	my_window.document.write( value);
	my_window.document.write( '</body>\n');
	my_window.document.close();
	}catch(err){};
}