var mbfURL=getHostInfo();
var mbfServiceURL= mbfURL+"/MBFCWeb/MBFCAPEService";

// Get the server host information
function getHostInfo(){
  var protocol = location.protocol;
  var host = location.hostname;
  var port = location.port;
  var hostInfo = "";
  if(protocol != null && protocol != ""){
    hostInfo = protocol+"//";
  }
  if(host != null && host != ""){
    hostInfo = hostInfo+host;
  }
  if(port != null && port != ""){
    hostInfo = hostInfo+":"+port;
  }
  //hostInfo = hostInfo+"/dcx";
  //alert(hostInfo);
  return hostInfo;
}