//{{{ addEventToObject
function addEventToObject(obj,evt,func) {
  var oldhandler = obj[evt];
  obj[evt] = (typeof obj[evt] != 'function') ? func : function(ev){oldhandler(ev);func(ev);};
}
// }}}

//{{{ urlRedirect
function urlRedirect(anchor) {
  var WindowObjectReference = window.open(anchor.href, '_blank',
                                          'status=1,resizable=1,'+
                                          'menubar=1,toolbar=1,'+
                                          'directories=1,location=1,'+
                                          'scrollbars=1,'+
                                          'width=700,height=750,'+
                                          'top=0,left=0,screenX=0,screenY=0');
   WindowObjectReference.focus();
}

function urlRedirectHide(anchor) {
  var WindowObjectReference = window.open(anchor.href, '_blank',
                                          'status=0,resizable=1,'+
                                          'menubar=0,toolbar=0,'+
                                          'directories=0,location=0,'+
                                          'scrollbars=1,'+
                                          'width=700,height=750,'+
                                          'top=0,left=0,screenX=0,screenY=0');
   WindowObjectReference.focus();
}

// }}}



