function absPosition(obj) 
 {
   var x = y = 0;
   while(obj) 
		{
      x += obj.offsetLeft;
      y += obj.offsetTop;
      obj = obj.offsetParent;
    }
   return {x:x, y:y};
 }   
function show_map(obj, id, flag)
 {
   var x  = absPosition(obj).x;
   var y  = absPosition(obj).y; //+document.documentElement.scrollTop; 
  // var x = window.screen.width/2-300;
   //var y = window.screen.height/2-200+document.documentElement.scrollTop;
   if(flag==true)
	  {
		  document.getElementById(id).style.display = 'block';
			document.getElementById(id).style.top = 100+'px';
			document.getElementById(id).style.left = x+'px';
		}
	 else
	  document.getElementById(id).style.display = 'none';
	 return false;
 }

