// Assorted Javascrips Functions 

function getArgs()
// Parse the Query String into a usable format
 {
  var que = unescape(location.search);

  //remove the ? from the beginning of the string
  que = que.substring(1, que.length);

  //splits args into an array que[0], que[1] etc...
  que = que.split("&");

  // creates the querystring array
  var querystring = new Array();

  for (var i=0; i < que.length; i++)
   {
    var x = que[i].split("=");
    querystring[x[0]] = x[1]; 
   } ;
   return (querystring);
} // end getArgs function

// Create a browser agnostic object for a http request
 function getHTTPObject() 
 {
  var xmlhttp;
  /*@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;
 } // end getHTTPObject 
