//Javascript


/**This function moves absolutely positioned object to location x,y.
 *where x,y are measured from upper left corner of parent or
 *relative positioned object to location x,y where x,y are measured
 *from uper left corner of normally positioned object.
 */
function moveObject(obj,x,y)
{if(obj.style)
  {if(typeof obj.style.pixelLeft != "undefined")
    obj.style.pixelLeft = x;
   else
    obj.style.left = (x + "px");
   if(typeof obj.style.pixelTop != "undefined")
    obj.style.pixelTop = y;
   else
    obj.style.top = (y + "px");
  }
 else
  {obj.left = x;
   obj.top = y;
  }
 return;
}

/**This function makes the object obj visible if bool == true and
 *invisible when bool == false.
 */
function setVisible(obj,bool)
{if(obj.style)
  if(bool)
   obj.style.visibility="visible";
  else
   obj.style.visibility="hidden";
 else 
  if(bool)
   obj.visibility ="show";
  else
   obj.visibility="hide";
 return;
}

/**Function that changes z-index of object obj assigning to this property
 *the value val.
 */
function changeZ(obj,val)
{if(obj.style)
  obj.style.zIndex = val;
 else
  obj.zIndex = val;
 return;
}

