function getHTUrl(itemId,path) {
  var xmlHttp = CreateAjaxObject();
  if(xmlHttp == null) {
    return(false);
  }
  var method = "POST";
  var url = "/myphp/indexlookup.php";
  var sync = true;
  var func = getHTUrlReply;
  var params = "id="+encodeURI(itemId);
  AjaxCall(method,url,sync,func,params,lp);
}

var getHTUrlReply = function GetHTUrlReply(xmlHttp, lp) {
  if(xmlHttp.readyState == 4) {
    var page = xmlHttp.responseText;
    if(page != "") {
        path=lp;
        path=path.substring(0,path.lastIndexOf('/')+1);
        window.location.assign(path+page);
    }
  }
}

