		function getCookieVal (offset) {
	
		  var endstr = document.cookie.indexOf (";", offset);
	
		  if (endstr == -1)
		    endstr = document.cookie.length;
		  return unescape(document.cookie.substring(offset, endstr));
		}
	
		function GetCookie (name) {
	
		  var arg = name + "=";
		  var alen = arg.length;
		  var clen = document.cookie.length;
		  var i = 0;
		  
		  while (i < clen) {
		    var j = i + alen;
		    if (document.cookie.substring(i, j) == arg)
		      return getCookieVal (j);
		    i = document.cookie.indexOf(" ", i) + 1;
		    if (i == 0) break; 
		  }
		  return null;
		}
		
		codecompte=GetCookie("majweb-codecompte");
		codesite=GetCookie("majweb-codesite");
		if (codecompte!=null && codesite!=null){
		
				document.write('<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">');
				document.write('function ouvrerapport(){');
				document.write('edito=window.open(\'http://www.majweb.com/rapport.asp?codecompte='+codecompte+'&codesite='+codesite+'&page='+escape(location.href)+'\',\'rapport\');');
				document.write('return false;');
				document.write('}');
				document.write('</SCRIPT>');
				document.write('<BR><TABLE WIDTH="80" BORDER="0" CELLSPACING="4" CELLPADDING="0" BGCOLOR="#FFFFFF" ALIGN="CENTER"><TR><TD BGCOLOR="#D7D7D7"><A HREF="http://www.majweb.com/rapport.asp?codecompte='+codecompte+'&codesite='+codesite+'&page='+escape(location.href)+'" onClick="return ouvrerapport()"><IMG SRC="http://www.majweb.com/images/crayon.gif" WIDTH="40" HEIGHT="40" BORDER="0" ALT="Faire un rapport sur cette page"></A></TD><TD BGCOLOR="#D7D7D7"><A HREF="http://www.majweb.com/selection.asp" TARGET="_blank"><IMG SRC="http://www.majweb.com/images/majweb.gif" WIDTH="40" HEIGHT="40" BORDER="0" ALT="Retour à MajWeb"></A></TD></TR></TABLE>');
		}