function activate_div($pInput) {
	$i = 0;
	$obj = $pInput;
	var $containers = new Array();
	while ($i++ < 50) {
		$obj = $obj.parentNode;
		if (!$obj || $i>45) {
			for ($i=$containers.length-1;$i>=0 ;$i-- )
			{
				if ($containers[$i].onclick && $containers[$i].style.display=='none') $containers[$i].onclick();
			}
			break;
		}
		if ($obj.id)
		{
			$string = new String($obj.id);
			if ($string.indexOf("div") != -1) {
				$myElem = document.getElementById("tab" + $string);
				if ($myElem) $containers[$containers.length] = $myElem;
			}

			if ($string.indexOf("htab") != -1) {
				$myElem = document.getElementById("img_" + $string + "_up");
				if ($myElem) $containers[$containers.length] = $myElem;
			}
		}
	}
}