// 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>Gérard & associés</title>';
		//strDeb+='<link href="../medias/utiles/styles.css" rel="stylesheet" type="text/css">';
		strDeb+='<style type="text/css">';
		//strDeb+='body{  scrollbar-3dlight-color: #FFFFFF; scrollbar-arrow-color: #1C3544; scrollbar-darkshadow-color: #1C3544; scrollbar-face-color: #7D92A1; scrollbar-highlight-color: #FFFFFF; scrollbar-shadow-color: #FFFFFF; scrollbar-track-color: #7D92A1    }';
		strDeb+='body, div, td, p, .texte, table, pre{ color: #1c3544; font-size: 10px; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: 16px; list-style-type: square }';
		strDeb+='a{ color: #1c3544; font-style: normal; font-weight: bold; text-decoration: none }';
		strDeb+='a:hover         { color: #b3340c; font-style: normal; font-weight: bold; text-decoration: none }';
		strDeb+='h1, .titre1         { color: #b3340c; font-size: 14px; font-weight: bold }';
		strDeb+='h2, .titre2        { color: #1c3544; font-size: 12px; font-weight: bold }';
		strDeb+='h3, .titre3    { color: #7d92a1; font-size: 12px; font-style: italic; font-weight: bold }';
		strDeb+='h4, .titre4     { font-weight: bold }';
		strDeb+='h5, .titre5   { }';
		strDeb+='h6, .titre6     { text-align: center; padding-right: 2px; padding-left: 2px }';
		strDeb+='.bienvenue { padding: 55px 12px 12px 51px }';
		strDeb+='.choixlg   { color: #fff; font-size: 13px; font-style: normal; font-weight: normal; padding-bottom: 3px }';
		strDeb+='.choixlg:hover  { color: #d89986; font-size: 13px; font-style: normal; font-weight: normal; padding-bottom: 3px }';
		strDeb+='.txtform { color: #019fb8; font-weight: bold }';
		strDeb+='.menu  { font-style: normal; font-weight: bold; padding-top: 28px; padding-bottom: 16px }';
		strDeb+='.menu:hover { color: #b3340c; font-style: normal; font-weight: bold; padding-top: 28px; padding-bottom: 16px }';
		strDeb+='.txtbl { color: #1c3544 }';
		strDeb+='.texterouge2 { color: #b3340c }';
		strDeb+='.texterouge1 { color: #d89986 }';
		strDeb+='.tdlogo { padding-bottom: 2px; border-bottom: 1px solid #b3340c }';
		strDeb+='.tdtitre   { color: #fff; font-size: 14px; background-color: #1c3544; padding-left: 15px; border-right: 300px solid #fff; border-bottom: 10px solid #fff }';
		strDeb+='.tdcontent { padding-top: 8px; padding-bottom: 0 }';
		strDeb+='.tdcontentencart { color: #fff; padding: 30px 60px }';
		strDeb+='.img { border-bottom: 4px solid #1c3544 }';
		strDeb+='div#content { text-align: justify; width: 100%; height: 100%; overflow: none }';
		strDeb+='div#contenttext  { padding: 20px 50px }';
		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.location.reload();
		printWin.focus();
		printWin.print();
		delete hElem;
	}
}
