// JavaScript Document

var popUpWin=0;
function popup(URLStr, left, top, width, height, scrollflag, toolbar, resize)
{
  if (scrollflag == null) {
	  scrollflag = 'no';
  }
  
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar='+toolbar+',location=no,directories=no,status=no,menubar=no,scrollbars='+scrollflag+',resizable='+resize+',copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

function refreshMenu() {
	window.parent.leftFrame.location.reload();
}

function returnObjById( id )
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}

