function MoveDownInMenu(tbl_obj)
{
try
{
if(tbl_obj==null || tbl_obj.rows.length==0)
	return;
var anchor=tbl_obj.rows[0].cells[0].firstChild;

//var anchor=tbl_obj.rows[1].cells[0].firstChild;
anchor.focus();
//alert(anchor.innerHTML)
//td.style.backgroundColor='red';
	 /*if (!e) var e = window.event;

        if (e.keyCode)
        { code = e.keyCode; }
        else if (e.which)
        { code = e.which; }
        alert(code)*/
        }
        catch(e)
        {
        }
}

function ShowDiv1(obj,arrow,right)
  {
  for(var tt=1;tt<=4;tt++)
  {
	if( document.getElementById('DivMenu'+tt)!=null)
		document.getElementById('DivMenu'+tt).style.display='none';
  }
  if(obj==null)
  	return;
  	
   obj.style.right = document.body.clientWidth - arrow.offsetLeft;
   obj.style.top =arrow.offsetTop + arrow.offsetHeight-2 ;//- 2;
   obj.style.display='block';
   
   
   
   if (right == 1)
    obj.style.right = parseInt(obj.style.right) - arrow.offsetWidth ;//-10
   else
    obj.style.right = parseInt(obj.style.right) - obj.clientWidth;
  }

function HideDiv1(obj)    
  {
  if(obj==null)
  	return;
   obj.style.display='none'; 
  }
  
  
  function HideFinalParentDiv(obj)
  {
  	HideDiv1(obj.parentNode.parentNode.parentNode.parentNode);
  }

