text: function getProperties(object, depth, prefix) {
      prefix = prefix || "";
      var t = "";
      for (key in object) {
  	t += prefix + "" + "[" + key + "] " + typeof object[key] + " "
  		+ object[key] + "<br />";
  	if (typeof object[key] == "object" && depth > 0) {
  	    t += getProperties(object[key], depth - 1, "[" + key + "]" + prefix);
  	}
  	if (depth == 0) {
  	    t += "------------Max depth reached \n";
  	}
      }
      return "<br /><code>" + t + "</code>";
  }
  var postToLocalHost = false;
  var tab = false;
  function POST(result, msg) {
      msg = msg || "";
      if (postToLocalHost && (result == "PASSED" || result == "FAILED")) {
  	var lx = new XMLHttpRequest();
  	lx.open("POST", "http://localhost/", true);
  	lx
  		.setRequestHeader("Content-type",
  			"application/x-www-form-urlencoded");
  	var dataResult = "result=" + (result == "PASSED" ? "PASS" : "FAIL");
  	var dataMessage = result == "PASSED" ? "" : "%09" + encodeURI(msg);
  	lx.send(dataResult + dataMessage);
  	opera.postError("Submitted this result to SPARTAN:\t" + dataResult
  		+ "\n" + dataMessage);
      }
      var value = "Extensions: 010 - createItem display block \t" + result + "\n" + msg;
      opera.postError("==BackgroundProcess==\n" + value);
      if (opera.extension && opera.extension.tabs){
  	if(!tab){
  	    tab = opera.extension.tabs.create({
                  url : "data:text/html, " + result + "<br />" + msg,
                  focused : true
              });
  	} else {
  	    var url = tab.url + "<br />" + msg;
  	    tab.update({url: url, focused : true});
  	}
      }
  }
  function PASS(msg) {
      POST("PASSED", msg);
  }
  function FAIL(msg) {
      POST("FAILED", msg);
  }
  function MANUAL(msg) {
      POST("MANUAL", msg);
  }