// General Javascript functions
function showCnt(id)
{
	var rtn = true;
	if(showObj('cnt'+id)) {
		rtn = false;
		hideObj('cntlnk'+id);
	}
	return rtn;
}

function getObj(objID)
{
   if (document.all)
   {
      var obj = document.all[objID];
   }
   else if (document.getElementById)
   {
      var obj = document.getElementById(objID);
   }
	return obj;
}

function hideObj(objID)
{
	var obj = getObj(objID);
	var rtn = false;
	if (obj != null) {
     	obj.style.display = "none";
		rtn = true;
	}
	return rtn;
}

function showObj(objID)
{
	var obj = getObj(objID);
	var rtn = false;
	if (obj != null) {
     	obj.style.display = "inline";
      obj.style.position = "static";
      obj.style.width = "auto";
      obj.style.height = "auto";
      obj.style.overflow = "visible";
		rtn = true;
	}
	return rtn;
}