function createHTTPHandler(){
    httphandler = false;
    /*@cc_on @*/
    /*@if (@_jscript_version >= 5)
    // JScript gives us Conditional compilation, we can cope with old IE versions.
    // and security blocked creation of the objects.
    try {
      httphandler = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
       httphandler = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
          httphandler = false;
      }
    }
    @end @*/
    if (!httphandler && typeof XMLHttpRequest!='undefined') {
        httphandler = new XMLHttpRequest();
    }
    return httphandler;
}

function getNodeValue(obj,tag)
{
  if(obj.getElementsByTagName(tag).length>0 && obj.getElementsByTagName(tag)[0].firstChild)
  {
    return obj.getElementsByTagName(tag)[0].firstChild.nodeValue;
  }
}

var IE = document.all?true:false;
function getMousePosition(e) {
	var _x = 0;
	var _y = 0;
	if (!e) 
    var e = window.event;
	if (!IE)
  {
		_x = e.pageX;
		_y = e.pageY;
	}
	else
  {
		_x = e.clientX + document.documentElement.scrollLeft;
		_y = e.clientY + document.documentElement.scrollTop;
	}
  posX = _x;
  posY = _y;
  return true;
}

function positionHoverBox(id,x,y) {
	var box = document.getElementById(id);
	box.style.display = 'block';
	box.style.left = x+'px';
	box.style.top = (y-15)+'px';
}

function hideHoverBox(id) {
	document.getElementById(id).style.display = 'none';
}

