// PYRAMIQ S.A. - JLE - 22/09/2003

var printWin;

function printPage(){
	var oElem;
//	var hElem = document.all.item("printable");
	var hElem = document.getElementById("printable");
	if((hElem != null)){
		var strDeb='<html><head>';
		strDeb+='<meta http-equiv="content-type" content="text/html;charset=ISO-8859-1">';
		strDeb+='<title>HESA</title>';
		strDeb+='<link href="../styles.css" rel="stylesheet" media="screen">';
		strDeb+='<style type="text/css">';
		strDeb+='body, div, td, p, .texte{color: #3e3e3e;font-size: 11px;font-family: Helvetica, "55 Helvetica Roman", Arial, Verdana;list-style-image: url(../images/li.gif);}';
		strDeb+='table{ color: #0b3d6f }';
		strDeb+='a{color: #0b3d6f; text-decoration: none }';
		strDeb+='a:hover{color: #0b3d6f; text-decoration: none }';
		strDeb+='.comment { font-style: normal; font-size: 10px; line-height: normal }';
		strDeb+='hr{ color: #0b3d6f; text-align: left; position: relative; top: -8px; width: 100%; height: 1px }';
		strDeb+='h1, .titre1{ color: #054d87; font-weight: 600; font-size: 13pt}';
		strDeb+='h2, .titre2{ color: #054d87; font-weight: bold; font-size: 11pt}';
		strDeb+='h3, .titre3{ color: #b89f6a; font-weight: bold; font-size: 11pt}';
		strDeb+='h4, .titre4{ color: #b89f6a; font-size: 10pt }';
		strDeb+='.a.visible { color: #0b3d6f; font-size: 9px; font-family: verdana; text-decoration: none; text-align: justify; list-style-type: square }';
		strDeb+='.a.visible:hover{ color: #0b3d6f; font-size: 9px; font-family: verdana; text-decoration: none; text-align: justify; list-style-type: square }';
		strDeb+='.bl-head { background-color: #054d87; border-bottom: 2px solid #fff }';
		strDeb+='.bg-head { background-color: #eae2d2; border-bottom: 2px solid #fff }';
		strDeb+='.menuopen { background-color: #f4f1e9; text-align: right; padding: 2px 10px; border-bottom: 2px solid #fff}';
		strDeb+='.menuopentitle { background-color: #b89f6a; text-align: right; padding: 2px 10px; border-bottom: 2px solid #fff }';
		strDeb+='.menuclosetitle { background-color: #dccfb5; text-align: right; padding: 2px 10px; border-bottom: 2px solid #fff }';
		strDeb+='.menusearch { background-color: #b89f6a; text-align: left; padding-left: 10px }';
		strDeb+='.tips { padding-top: 20px; padding-right: 20px; padding-left: 20px }';
		strDeb+='.tbtips  {}';
		strDeb+='.content { padding: 10px}';
		strDeb+='.fsearch  { color: #054d87; font-size: 12px; background-color: #f4f1e9; border: solid 1px #b89f6a; width: 150px; height: 20px }';
		strDeb+='.search { color: #fff; font-weight: bold }';
		strDeb+='.menu { color: #054d87; font-weight: bold }';
		strDeb+='.menu:hover { color: #6b5d28; font-weight: bold }';
		strDeb+='.menulight {color: #054d87;}';
		strDeb+='.menulight:hover {color: #6b5d28;text-decoration: underline;}';
		strDeb+='.smenu { color: #6b5d28; font-weight: bold }';
		strDeb+='.nxtold {color:#555555;padding:4px 4;border-top:1px dashed #CCCCCC;border-bottom:1px dashed #CCCCCC;border-right-width: 0px;border-left-width: 0px;border-right-style: none;border-left-style: none;background-color: #FFFFFF;}';
		strDeb+='.nxt{color:#555555;padding:4px 4 4px 0;border-top:0px dashed #CCCCCC;border-bottom:1px dashed #CCCCCC;border-right-width: 0px;border-left-width: 0px;border-right-style: none;border-left-style: none;	background-color: #FFFFFF;}';
		strDeb+='.blue {	color: #054d87;}';
		strDeb+='.TitreNav {	color: #004D84;	font-weight: bold;	font-size: 11pt;letter-spacing: 2px;}';
		strDeb+='.TextRouge {color: #AD0A0E;}';
		strDeb+='.coupcoup {	page-break-before: always;}';
		strDeb+='.IndenteTab {	padding-left: 8px;}';
		strDeb+='</style></head><body>';

		strFin='</body></html>';
		if(printWin && !printWin.closed) printWin.close();
		printWin=window.open();
		printWin.document.write(strDeb);
		printWin.document.write('<table width="630">' + hElem.innerHTML + '</table>');
		printWin.document.write(strFin);
		printWin.focus();
		delete hElem;
	}
}
