function getW(obj)
{
   if (typeof(obj.style)!="undefined" && typeof(obj.style.width)!="undefined" && obj.style.width != "")
      return parseInt(obj.style.width);
   if (typeof(obj.offsetWidth)!="undefined")
 	  return obj.offsetWidth;
   if (typeof(obj.width)!="undefined")
 	  return parseInt(obj.width);
   if (typeof(obj.style)!="undefined" && typeof(obj.style.pixelWidth)!="undefined")
 	  return obj.style.pixelWidth;
}
function getH(obj)
{
   if (typeof(obj.style)!="undefined" && typeof(obj.style.height)!="undefined" && obj.style.height != "")
      return parseInt(obj.style.height);
   if (typeof(obj.offsetHeight)!="undefined")
 	  return obj.offsetHeight;
   if (typeof(obj.height)!="undefined")
 	  return parseInt(obj.height);
   if (typeof(obj.style)!="undefined" && typeof(obj.style.pixelHeight)!="undefined")
 	  return obj.style.pixelHeight;
}
function getX(obj)
{
   if (typeof(obj.style)!="undefined" && typeof(obj.style.left)!="undefined" && obj.style.left != "")
      return parseInt(obj.style.left);
   if (typeof(obj.offsetLeft)!="undefined")
 	  return obj.offsetLeft;
   if (typeof(obj.left)!="undefined")
 	  return parseInt(obj.left);
   if (typeof(obj.style)!="undefined" && typeof(obj.style.pixelLeft)!="undefined")
 	  return obj.style.pixelLeft;
}

function getY(obj)
{
   if (typeof(obj.style)!="undefined" && typeof(obj.style.top)!="undefined" && obj.style.top != "")
   	return parseInt(obj.style.top);
   if (typeof(obj.offsetTop)!="undefined")
 	  return obj.offsetTop;
   if (typeof(obj.top)!="undefined")
 	  return parseInt(obj.top);
   if (typeof(obj.style)!="undefined" && typeof(obj.style.pixelTop)!="undefined")
 	  return obj.style.pixelTop;
}