function openpopup(url,name,options,fullscreen) {
  fullurl = "<?php echo $CFG->wwwroot ?>" + url;
  windowobj = window.open(fullurl,name,options);
  if (fullscreen) {
     windowobj.moveTo(0,0);
     windowobj.resizeTo(screen.availWidth,screen.availHeight);
  }
  windowobj.focus();
  return false;
}

function popUp(URL, width, height) 
{
	day = new Date();
	id = day.getTime();
	eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,width='+width+',height='+height+',left = 367,top = 272');");
}

function close_conor()
{
	conor = document.getElementById('conor_popup');
	conor.style.visibility = 'hidden';
}



