<!--
var message="Copyright Free2Fight";

function click(e) {
  if (document.all) {
    if (event.button==2||event.button==3) {
      alert(message);
      return false;
    }
  }
  if (document.layers) {
    if (e.which == 3) {
      alert(message);
      return false;
    }
  }
}

if (document.layers) {
  document.captureEvents(Event.MOUSEDOWN);
}

document.onmousedown=click;

function hilite(id,on){
  if(on)
    document.getElementById(id).style.background='#ffffff';
  else
    document.getElementById(id).style.background='#b5b3b4';
}

function showAlert(msg){
  switch(msg){
    case 1:
      alert("This record has not been moderated.\n"+
        "To see the moderated version please log out and search for your record from the home page.");
      break;
    case 2:
      alert("Your email address has not been updated.\n"+
        "A record containing your new email address already exists in the database.");
      break;
    case 3:
      alert("Your feedback needs to be moderated.\n"+
        "It will appear on the site shortly.");
      break;
    default:
      break;
  }
}

function showConfirm(msg, url){
  switch(msg){
    case 1:
			if(confirm('Your membership is not yet activated.\n\nClick OK to activate your subscription now.'))
				window.location=url;
      break;
    default:
      break;
  }
}

// Removes leading whitespaces
function LTrim( value ) {

  var re = /\s*((\S+\s*)*)/;
  return value.replace(re, "$1");

}

// Removes ending whitespaces
function RTrim( value ) {

  var re = /((\s*\S+)*)\s*/;
  return value.replace(re, "$1");

}

// Removes leading and ending whitespaces
function trim( value ) {

  return LTrim(RTrim(value));

}

// Opens a new window
function wopen(url, name, w, h)
{
// Fudge factors for window decoration space.
 // In my tests these work well on all platforms & browsers.
w += 32;
h += 96;
 var win = window.open(url,
  name,
  'width=' + w + ', height=' + h + ', ' +
  'location=no, menubar=no, ' +
  'status=yes, toolbar=yes, scrollbars=yes, resizable=yes');
 win.resizeTo(w, h);
 win.focus();
}

//-->