function GetXmlHttpObject(handler) {
  var objXmlHttp = null;
  if(window.ActiveXObject) {
    objXmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
    objXmlHttp.onreadystatechange = handler;
  }
  else {
    objXmlHttp = new XMLHttpRequest();
    objXmlHttp.onload = handler;
    objXmlHttp.onerror = handler;
  }
  return objXmlHttp;
}


function dgid(id) { return document.getElementById(id); }

function findPos(obj) {
	var curleft = curtop = 0;
	if (obj.offsetParent) {
		curleft = obj.offsetLeft
		curtop = obj.offsetTop
		while (obj = obj.offsetParent) {
			curleft += obj.offsetLeft
			curtop += obj.offsetTop
		}
	}
	return [curleft,curtop];
}
