
// Function to stop all errors on the page
function stopErrors() {
  return true;
}



// Functions to mask the email adresses to robots
function email(dest) {
  document.write( builtEmail(dest, "quantohm.com") );
}

function builtEmail(dest, domain) {
  return dest + '\@' + domain;
}

function mailto(dest, subject, msg) {
  // dest: destinataire à quantohm.com
  // subject: sujet de l'email
  // msg: message sur la page html

  document.write( '<a href=\"mailto:' + builtEmail(dest,"quantohm.com") + '?subject=' + subject + '\">' + msg + '</a>');
}

function emailto(dest, subject) {
  // dest: destinataire à quantohm.com
  // subject: sujet de l'email

  mailto(dest, subject, builtEmail(dest,"quantohm.com"));
}  



// Function to test the right click on the mouse
function testClick(evt) {
  var msg = "Clic non autorisé";
  if(navigator.appName == "Netscape" && evt.which == 3)
  {
    alert(msg);
    return false;
  }
  if(navigator.appVersion.indexOf("MSIE") != -1 && event.button == 2)
  {
    alert(msg);
    return false;
  }
}



// Counter estat
function sp(_serial,id) {

  var _page;
  if ( id == 00 )
    _page = "Welcome";
  else if ( id == 01 ) 
    _page = "Contents";
  else if ( id == 02 )
    _page = "Manual";
  else if ( id == 03 )
    _page = "Download";
  else if ( id == 04 )
    _page = "Exonline";
  else if ( id == 05 )
    _page = "ClientsDownload";
  else if ( id == 06 )
    _page = "Training";
  else if ( id == 07 )
    _page = "Clients";
  else if ( id == 08 )
    _page = "Inter";
  else if ( id == 09 )
    _page = "Services";
  else if ( id == 10 )
    _page = "Books";
  else if ( id == 11 )
    _page = "College";
  else if ( id == 12 )
    _page = "HighSchool";
  else if ( id == 13 )
    _page = "University";
  else if ( id == 14 )
    _page = "Teacher";
  else if ( id == 15 )
    _page = "HighLevel";
  else if ( id == 16 )
    _page = "Vulgarisation";
  else
    _page = "Unknown";

document.write('<a href="http://www.wanadoo.fr/Pages_Per'+
'so/estat/bin/pwpestat_stat.cgi"><img src'+
'="http://perso.estat.com/cgi-bin/perso/'
+_serial+'?'
+'&n='+Math.round (Math.random () * 1000000000000000)
+'&page='+escape(_page.length?_page:document.title)
+'&referer='+escape(document.referrer)+'" BORDER=0></A>')
}

function estat_counter(id) {
  sp("356056147921",id);
}

function xiti_counter(i) {
document.write("<a href=&quot;http://www.xiti.com/xiti.asp?s=124498&quot; TARGET=&quot;_top&quot;>"
  +"<script language=&quot;JavaScript1.1&quot;>"
  +"<!--"
  +"hsh = new Date();"
  +"hsd = document;"
  +"hsr = hsd.referrer.replace(/[<>]/g, '');"
  +"hsi = '<img width=&quot;39&quot; height=&quot;25&quot; border=0 ';"
  +"hsi += 'src=&quot;http://logv23.xiti.com/hit.xiti?s=124498\';"
  +"hsi += '&p=';"
  +"hsi += '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();"
  +"if(parseFloat(navigator.appVersion)>=4)"
  +"{Xiti_s=screen;hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;}"
  +"hsd.writeln(hsi + '&ref=' + hsr.replace(/&/g, '$') + '&quot; title=&quot;Mesurez votre audience&quot;><\!--');"
  +"//-->"
  +"</script>"
  +"<noscript>"
  +"Mesure d'audience ROI frequentation par <img width=&quot;39&quot; height=&quot;25&quot; border=0 src=&quot;http://logv23.xiti.com/hit.xiti?s=124498&p=&&quot; title=&quot;Mesurez votre audience&quot;>"
  +"</noscript><!--//--></a>");
}

function counter(i) {
  estat_counter(i);
}

// --------------------------------------------------------------------------

// Intercepts errors on the page
 window.onerror = stopErrors;

// Activate the following lines to intercept the right click on the mouse
// if (document.layers) {
//   document.captureEvents(Event.MOUSEDOWN);
// }
// document.onmousedown = testClick;



