function ShowHide(elem) {
  var obj = document.getElementById(elem);
	if (obj) {
		if (obj.style.display == 'block') obj.style.display = 'none';
		else obj.style.display = 'block';
	}
	return false;
}
function Hide(elem) {
  var obj = document.getElementById(elem);
  if (obj) obj.style.display = 'none';
  return true;
}
function Blink(elem) {
  var obj = document.getElementById(elem);
  if (obj) obj.style.visibility = obj.style.visibility == "" ? "hidden" : "";
}
function Focus(elem) {
  var obj = document.getElementById(elem);
  if (obj) obj.focus();
}

var popUpWin=0;
function popUpWindow(URLStr,win_w,win_h)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  var left=20;
  var top=20;
  var width=690;
  if (win_w>0) width=win_w;
  var height=400;
  if (win_h>0) height=win_h;
  popUpWin = open(URLStr, 'gradPopUp', 'toolbar=no,location=no,directories=no,status=no,menubar=yes,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

var popUpImg=0;
function popUpWindowImg(URLStr,win_w,win_h)
{
  if(popUpImg)
  {
    if(!popUpImg.closed) popUpImg.close();
  }
  var left=60;
  var top=60;
  var width=680;
  if (win_w>0) width=win_w;
  var height=680;
  if (win_h>0) height=win_h;
  popUpWin = open(URLStr, 'gradPopUpImg', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}

