  var theDIV; // we will set this to an id that actually exists in the page

  var http_request = false;
  function fromServer()
  {
    if( http_request.readyState==4 )
    {
      if( http_request.status==200 )
      {
// results from call to the server appear here
// in http_request.responseText;
        e = document.getElementById(theDIV);
        e.innerHTML = http_request.responseText;
      }
      else
      {
// uncomment next line if you want to show any error messages
        //alert('error: ' + http_request.responseText);
      }
    }
  }

  function makeRequest(url, parameters) 
  {
    http_request = false;
    if( window.XMLHttpRequest ) 
    { 
      // Mozilla, Safari,...
      http_request = new XMLHttpRequest();
      if (http_request.overrideMimeType) 
      { http_request.overrideMimeType('text/html');
      }
    } 
    else if (window.ActiveXObject) 
    { // IE
      try 
      { http_request = new ActiveXObject("Msxml2.XMLHTTP");
      } 
      catch (e) 
      { try
        { http_request = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (e) {}
      }
    }
    if (!http_request) 
    {
// uncomment next line if you want to show any error messages
      //alert('Cannot create XMLHTTP instance');
      return false;
    }
    http_request.onreadystatechange = fromServer;
    http_request.open('GET', url + parameters, true);
    http_request.send(null);
  }

  // theDIV = "aDIV";
  // makeRequest(url,qry); 

  function showHint(n)
  { 
    theDIV='videos';
    var url = "show-videos.php";
    qry = "?video=" + n;

    makeRequest(url,qry);
    return false;
  }

  function getIP()
  {
    var url = "server.php"

    theDIV='ipDIV';
    qry = "?getIP=1";
    makeRequest(url,qry);
    return false;
  }

