
var xmlHttp = null;
// Mozilla, Opera, Safari sowie Internet Explorer (ab v7)
if (typeof XMLHttpRequest != 'undefined') {
    xmlHttp = new XMLHttpRequest();
}
if (!xmlHttp) {
    // Internet Explorer 6 und älter
    try {
        xmlHttp  = new ActiveXObject("Msxml2.XMLHTTP");
    } catch(e) {
        try {
            xmlHttp  = new ActiveXObject("Microsoft.XMLHTTP");
        } catch(e) {
            xmlHttp  = null;
        }
    }
}

if (!xmlHttp)
  alert("Error initializing XMLHttpRequest!");

function addObject(oid) {
     var url = "/wrap/portfolio.php?act=add&oid=" + escape(oid);
     xmlHttp.open("GET", url, true);
      xmlHttp.onreadystatechange = function () {
          if (xmlHttp.readyState == 4) {
              alert(xmlHttp.responseText);
          }
      };
      xmlHttp.send(null);

   }
   
function test(oid) {
  alert(oid);
}   

