function showObject(object_id)
{
	var panel = document.getElementById(object_id);
	if (panel != null)
	{
	  panel.style.display = 'block';
//	  panel.style.visibility = 'visible';
	}
}
function hideObject(object_id)
{
	var panel = document.getElementById(object_id);
	if (panel != null)
	{
	  panel.style.display = 'none';
//	  panel.style.visibility = 'hidden';
    }
}

function openPopUp(url,title,attributes) {
    var pop = window.open(url,title,attributes);
    pop.focus();
}
function openMain() {
//    var pop = window.open('index.do?index','','top=0,left=0,width='+ (screen.availWidth-10) +',height='+ (screen.availHeight-50) +',location=no,status=yes,menubar=no,toolbar=no,resizable=yes');

  if (window.opener == null)
  {
    var pop = window.open('index.do?index','','fullscreen=yes,location=no,status=no,menubar=no,toolbar=no,resizable=no');
    pop.focus();
  }
  else
  {
    document.location='index.do?index';
  }
}
