showDropDownMenu = function (obj, subMId)
{
	var sMenu = document.getElementById(subMId);
	if(typeof sMenu != 'object')
		return;
    
	var pos = getAbsPosition(obj);
  
	sMenu.style.position = 'absolute';
	sMenu.style.left = pos[0] + 'px';
	sMenu.style.top = pos[1]+obj.clientHeight + 'px';
	sMenu.style.width = obj.clientWidth + 'px';
	sMenu.style.display = 'block';
}

hideDropDownMenu = function (subMId)
{
	var sMenu = document.getElementById(subMId);
	if(typeof sMenu != 'object')
		return;
	sMenu.style.display = 'none';
}

getAbsPosition = function(o)
{
	var y; var x=y=0;
	while(o)
	{
		x+=o.offsetLeft;
		y+=o.offsetTop;
		o=o.offsetParent;
	}

	x-=9;
	y+=13;
	return[x,y];
}	
