function fncExternalLink(){
  if (document.getElementsByTagName) {
    var i, a;
    a = document.getElementsByTagName('a');
    for (var i = 0; i < a.length; i++) {
      if (a[i].getAttribute('href') && a[i].getAttribute('rel') == 'externallink') {
        a[i].target = '_blank';
      }
    }
  }
}

function fncReturnFalse(){
  return false;
}

function fncWindowPosition(windowWidth, windowHeight){ 
  if (parseInt(navigator.appVersion) >= 4) window.moveTo((screen.width/2)-(windowWidth/2+10),(screen.height/2)-(windowHeight/2+20));
}

function fncItemWindowPopup(strUrl){
  var newwindow = window.open("","","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,width=500,height=580,left=0,top=0","False")
  newwindow.location.href = strUrl;
}