

function addEvent( obj, type, fn ) {
  if ( obj.attachEvent ) {
    obj['e'+type+fn] = fn;
    obj[type+fn] = function(){obj['e'+type+fn]( window.event );}
    obj.attachEvent( 'on'+type, obj[type+fn] );
  } else
    obj.addEventListener( type, fn, false );
}

function removeEvent( obj, type, fn ) {
  if ( obj.detachEvent ) {
    obj.detachEvent( 'on'+type, obj[type+fn] );
    obj[type+fn] = null;
  } else
    obj.removeEventListener( type, fn, false );
}

addEvent(window, 'load', page_load);

function page_load() {
	var the_link = document.getElementById('nwin');
	the_link.onclick = function() {
		var the_win;
		the_win = window.open(this.href, 'tr');
		the_win.focus();
		return false;
	}
	the_link = document.getElementById('conf');
	if(the_link) {
		the_link.onclick = function() {
			var url = this.href;
			var win = window.open(url, 'webcast', 'width=980,height=680,scrollbars=no,resizable=yes');
			win.focus();
			return false;
		}	
	}
}