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)
  {
  var prefix_arr=arrow.id.split('_');
  var prefix=prefix_arr[0];
  for(var tt=1;tt<=6;tt++)
  {
  	if( document.getElementById(prefix+'_DivMenu'+tt)!=null)
	{
	document.getElementById(prefix+'_DivMenu'+tt).style.display='none';
	}
  }
  if(obj==null)
  	return;
  	
   //obj.style.right= document.body.clientWidth - arrow.offsetLeft-50;
   obj.style.left= 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;// +20;
   else
    obj.style.right = parseInt(obj.style.right) - obj.clientWidth;*/
  }

function HideDiv1(obj)    
  {
  if(obj==null)
  	return;
  	 if(e.srcElement.tagName=="A")//.toString().indexOf("6666")>=0
            return;
   obj.style.display='none'; 
  }
  
  
  function HideFinalParentDiv(obj)
  {
  	HideDiv1(obj.parentNode.parentNode.parentNode.parentNode);
  }