function newWindow(theURL, winName, features) {
	var w = window.open(theURL, winName, features);
  if (w == null) 
  	alert('Your browser has a popup blocker, please disable it')
  else	{
  	w.focus()	
	}
}


function getHTTPObject() {
  var xmlhttp = null;
  /*@cc_on
  @if (@_jscript_version >= 5)
    try {
      xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
      try {
        xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
      } catch (E) {
        xmlhttp = false;
      }
    }
  @else
  xmlhttp = false;
  @end @*/
  if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
    try {
      xmlhttp = new XMLHttpRequest();
    } catch (e) {
      xmlhttp = false;
    }
  }
  return xmlhttp;
}

function GetXMLValue(obj)	{
	if (obj)	{
		var node = obj;
		if (node[0])	{
			var node_val = node[0].firstChild.nodeValue;	
			return node_val;
		}
		else	{
			//window.location.reload(true);
		}
	}
	return "";
}

function GetUniqueVal()	{
	rand_no = Math.floor(Math.random() * 1000000);
	return rand_no;
}

function hideElement(objectID)  {
  var myOBJ = document.getElementById(objectID);
  if ( !myOBJ) { return; }
  myOBJ.style.display = 'none';
}

