var holdDate=new Date();
var holdYear=holdDate.getYear();
if (holdYear<2000) { holdYear=1900+holdYear; }
var msg = "copyright 1999-" + holdYear + " : rvNetLinx";
if(document.layers) window.captureEvents(Event.MOUSEDOWN);

window.onmousedown=no_click;
document.onmousedown=no_click;

// keep out of other peoples frames
if (parent.frames[1]) parent.location.href = self.location.href;

function no_click(e) {
  if (navigator.appName == 'Netscape' && ( e.which == 2 || e.which == 3))
    {  alert(msg);return false; }
  if (navigator.appName == 'Microsoft Internet Explorer' && (event.button == 2 || event.button == 3))
    {  alert(msg);return false; }
}

function bookmark() {
  var ver = navigator.appName;
  var num = parseInt(navigator.appVersion);
  var bmurl="http://www.rvnetlinx.com";
  var bmtitle="rvNetLinx.com - your RV portal";
//  if (window.external) {
  if ((ver == "Microsoft Internet Explorer")&&(num >= 4)) {
    window.external.AddFavorite(bmurl, bmtitle);
  } else if (document.all) {
    window.external.AddFavorite(bmurl, bmtitle);
  } else if (window.sidebar) {
    window.sidebar.addPanel(bmtitle, bmurl, '');
  } else if (navigator.userAgent.indexOf("Opera") != -1) {
    alert("Press Ctrl-T after closing this message to add rvNetLinx to your favorites");
  } else {
    alert("Press Ctrl-D after closing this message to bookmark rvNetLinx");
  }
}
