function ahah(url,target) {
   // native XMLHttpRequest object
   url = url+'?='+Math.random();
   
   document.getElementById(target).innerHTML = '<p>Loading..</p>';
   if (window.XMLHttpRequest) {
       req = new XMLHttpRequest();
       req.onreadystatechange = function() {ahahDone(target);};
       req.open("GET", url, true);
       req.send(null);
   // IE/Windows ActiveX version
   } else if (window.ActiveXObject) {
       req = new ActiveXObject("Microsoft.XMLHTTP");
       if (req) {
           req.onreadystatechange = function() {ahahDone(target);};
           req.open("GET", url, true);
           req.send();
       }
   }
}    
 

function ahahDone(target) {
   // only if req is "loaded"
   if (req.readyState == 4) {
       // only if "OK"
       if (req.status == 200 || req.status == 304) {
           results = req.responseText;
           document.getElementById(target).innerHTML = results;
       } else {
           document.getElementById(target).innerHTML="ahah error:\n" +
               req.statusText;
       }
   }
}
function doOpen(url, target){
  var w = window.open(url, target, 'width=400, height=484');
  w.focus();
  return false;
}
function doOpen2(url, target){
  var w = window.open(url, target, 'width=300, height=200');
  w.focus();
  return false;
}
function doOpen3(url, target){
  var w = window.open(url, target, 'width=430, height=880');
  w.focus();
  return false;
}
function doOpen4(url, target){
  var w = window.open(url, target, 'width=200, height=300');
  w.focus();
  return false;
}
function closeMe(){
  if (opener && !opener.closed){ //ensures that opener is still open
    opener.location.href = "editorial.htm";
    opener.focus();
  }
  window.close();
  return false;
}
function changeimage(imgx,placex) {
  if (document.images) {
    document.images[placex].src = eval(imgx + ".src");
  }
} 
