<!--

var xC;
var yC;
function moveDiv(xC,yC)
{
  var the_style = getStyleObject("myDiv");
  var the_left = parseInt(the_style.left) + xC;
  var the_top = parseInt(the_style.top) + yC;
  if (document.layers)
  {
    the_style.left = xC;
    the_style.top = yC;
  }
  else 
  {
    the_style.left = xC + "px";
    the_style.top = yC + "px";  
  }
}

  function getStyleObject(objectId) {
    // cross-browser function to get an object's style object given its
    if(document.getElementById && document.getElementById(objectId)) {
	// W3C DOM
	return document.getElementById(objectId).style;
    } else if (document.all && document.all(objectId)) {
	// MSIE 4 DOM
	return document.all(objectId).style;
    } else if (document.layers && document.layers[objectId]) {
	// NN 4 DOM.. note: this won't find nested layers
	return document.layers[objectId];
    } else {
	return false;
    }
} // getStyleObject

// -->
