
// get referrer and manually "escape" certain common characters
var strRef = document.referrer;
if (strRef && (strRef.length > 1)){
  strRef = strRef.replace(/\%/g,'%25');//percent
  strRef = strRef.replace(/\//g,'%2F');//slash
  strRef = strRef.replace(/\\/g,'%5C');//backslash
  strRef = strRef.replace(/\?/g,'%3F');//question
  strRef = strRef.replace(/\&/g,'%26');//ampersand
  strRef = strRef.replace(/ /g,'%20'); //space
  strRef = strRef.replace(/\+/g,'%2B');//plus
  strRef = '&r=' + strRef;
} else {
  strRef = '';
}

function counterImg(strFile){
  return('"/cgi-bin/count.cgi?' + strFile + strRef+'" width="1"');
} //counterImg

// --- begin clicktrap code
 var today= new Date();
 var thisYear = today.getYear();
 if (thisYear < 1000) thisYear += 1900; // Netscape quirk
 var message='All Website Content \n(including this annoying pop-up)\nCopyright 1996 - ' + thisYear + '\n"MrTitanium" -- A Daniel Klarmann\nALL RIGHTS RESERVED';
 function clicktrap(e) {
   if (document.all) { // i.e: IE
      if (event.button==2||event.button==3) {
         alert(message);
         return false;
      }
   }
   if (document.layers) { // NS
      if (e.which == 3) {
         alert(message);
         return false;
      }
   }
 }
// if (document.layers) {
//   document.captureEvents(Event.MouseDown);
// }
// document.onmousedown=clicktrap;

// --- end clicktrap code


function feedbackForm(){ //pops up the feedback form
   window.open('feedback.html','wdoFeedback','status,resizable,width=500,height=380');
} // feedbackForm

