function addEvent(obj, event, funct) {  
  if (obj.attachEvent) { //IE  
    obj['e' + event + funct] = funct;  
    obj['x' + event + funct] = function() {  
      obj['e' + event + funct](window.event);  
    }  
    obj.attachEvent('on' + event, obj['x' + event + funct]);  
  } else // other browser  
    obj.addEventListener(event, funct, false);  
}   

function getTarget(e) {
  if(!e) e = window.event; 
  if(document.all)
    po = e.srcElement;
  else
    po = e.target;
  
  return po;
}

function init_me() {
  acka = document.getElementsByTagName('a');
  for(i=0;i<acka.length;i++) {
    if(/(^| )newwin( |$)/.test(acka[i].className))
      acka[i].onclick = new Function('return showTargetInNewWin(this);');
  }
}

function showTargetInNewWin(po) {
  return new_win_viz(po);
}

function new_win_viz(elem) {
  var win = window.open(elem.href);
  return (typeof win == 'object' ? false : true);
}


addEvent(window, 'load', init_me);

