
function GetHBXAccount(hbx_location) {

ChocolateChocolateChip();
//#### comment out for live version  ###//
//return DEV_GetHBXAccount(hbx_location);  
//######################################//

var GlobalAccount = "DM560909M0NA";
var hbx_accountid = "";


//hbx_location = window.location.toString();

if (hbx_location.indexOf("avaya.com.ar") >  0) { hbx_accountid="DM56092717DM"; } 
else if (hbx_location.indexOf("emea.avaya.com") >  0) { hbx_accountid="DM5609273MCD"; }
else if (hbx_location.indexOf("cala.avaya.com") >  0) { hbx_accountid="DM5612112OME"; }
else if (hbx_location.indexOf("intranet.tenovis.com") >  0) { hbx_accountid="DM56092748VS"; }
else if (hbx_location.indexOf("investors.avaya.com") >  0) { hbx_accountid="DM5609273ANW"; }
else if (hbx_location.indexOf("gallery.avaya.com") >  0) { hbx_accountid="DM5609273JZD"; }
else if (hbx_location.indexOf("support.avaya.com") >  0) { hbx_accountid="DM560927L3EB"; }
else if (hbx_location.indexOf("avaya.com.au") >  0) { hbx_accountid="DM5609275DCV"; }
else if (hbx_location.indexOf("avaya.com.mx") >  0) { hbx_accountid="DM560927JMCV"; }
else if (hbx_location.indexOf("avaya.com.cn") >  0) { hbx_accountid="DM56092748WZ"; }
else if (hbx_location.indexOf("avaya.at") >  0) { hbx_accountid="DM5609275ORR"; }
else if (hbx_location.indexOf("avaya.be") >  0) { hbx_accountid="DM560927O9AA"; }
else if (hbx_location.indexOf("avaya.com.br") >  0) { hbx_accountid="DM560927LKVA"; }
else if (hbx_location.indexOf("avaya.ca/gcm/nar/fr-ca/") >  0) { hbx_accountid="DM560927EGZR"; }
else if (hbx_location.indexOf("avaya.ca/gcm/nar/en-us/") >  0) { hbx_accountid="DM56092757SV"; }
else if (hbx_location.indexOf("avaya.ca") >  0) { hbx_accountid="DM56092757SV"; }
else if (hbx_location.indexOf("avaya.cz") >  0) { hbx_accountid="DM560927GFRE"; }
else if (hbx_location.indexOf("avaya.dk") >  0) { hbx_accountid="DM56092712NS"; }
else if (hbx_location.indexOf("avaya.fr") >  0) { hbx_accountid="DM560927OAFM"; }
else if (hbx_location.indexOf("avaya.de") >  0) { hbx_accountid="DM5609277NAD"; }
else if (hbx_location.indexOf("avayainfo.sitepepper.de") >  0) { hbx_accountid="DM5609277NAD"; }
else if (hbx_location.indexOf("avaya.hu") >  0) { hbx_accountid="DM560927JIDC"; }
else if (hbx_location.indexOf("avayaglobalconnect.com") >  0) { hbx_accountid="DM56092770NB"; }
else if (hbx_location.indexOf("avaya.ie") >  0) { hbx_accountid="DM5609274LNZ"; }
else if (hbx_location.indexOf("avaya.co.il") >  0) { hbx_accountid="DM56092765NA"; }
else if (hbx_location.indexOf("avaya.it") >  0) { hbx_accountid="DM560927D7SE"; }
else if (hbx_location.indexOf("avaya.co.jp") >  0) { hbx_accountid="DM56092797BN"; }
else if (hbx_location.indexOf("avaya.co.kr") >  0) { hbx_accountid="DM56092716MM"; }
else if (hbx_location.indexOf("avaya.nl") >  0) { hbx_accountid="DM5609279KBS"; }
else if (hbx_location.indexOf("avaya.pl") >  0) { hbx_accountid="DM560927EPND"; }
else if (hbx_location.indexOf("avaya.ru") >  0) { hbx_accountid="DM560927HGDE"; }
else if (hbx_location.indexOf("avaya.sk") >  0) { hbx_accountid="DM560927LKDW"; }
else if (hbx_location.indexOf("avaya.es") >  0) { hbx_accountid="DM56092714FW"; }
else if (hbx_location.indexOf("avaya.se") >  0) { hbx_accountid="DM56092756BA"; }
else if (hbx_location.indexOf("avaya.ch/gcm/emea/ch-fr/") >  0) { hbx_accountid="DM5609271MCR"; }
else if (hbx_location.indexOf("avaya.ch/gcm/emea/ch-de/") >  0) { hbx_accountid="DM5609270JME"; }
else if (hbx_location.indexOf("avaya.ch") >  0) { hbx_accountid="DM5609270JME"; }
else if (hbx_location.indexOf("avaya.co.uk") >  0) { hbx_accountid="DM560927POVF"; }
else if (hbx_location.indexOf("avaya-apac.com") >  0) { hbx_accountid="DM56092728RA"; }
else if (hbx_location.indexOf("avaya.ae") >  0) { hbx_accountid="DM56092765EV"; }
else if (hbx_location.indexOf("avaya.com.tr") >  0) { hbx_accountid="DM560927CDWS"; }
else if (hbx_location.indexOf("avaya.com") >  0) { hbx_accountid="DM56092745MZ"; }
else if (hbx_location.indexOf("avaya.gr") >  0) { hbx_accountid="DM570227EOWW"; }
else
{
hbx_accountid="DM561102D7VW";
}


//alert(hbx_accountid);

hbx_accountid = GlobalAccount + ";" + hbx_accountid;
return hbx_accountid;


//return "DM560909M0NA"; //PRODUCTION ACCOUNT NUMBER
//return "DM5609022DAC"; //STAGING ACCOUNT NUMBER
}

function DEV_GetHBXAccount(hbx_location) {
var GlobalAccount = "DM560909M0NA";
var hbx_accountid = "";

//hbx_location = window.location.toString();

if (hbx_location.indexOf("www.ar-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM56092717DM"; } 
else if (hbx_location.indexOf("avaya.com.au") >  0) { hbx_accountid="DM5609275DCV"; }
else if (hbx_location.indexOf("avaya.at") >  0) { hbx_accountid="DM5609275ORR"; }
else if (hbx_location.indexOf("avaya.be") >  0) { hbx_accountid="DM560927O9AA"; }
else if (hbx_location.indexOf("www.br-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM560927LKVA"; }
else if (hbx_location.indexOf("www.ca-v3.avaya.pub1.globalworks.com/gcm/nar/fr-ca/") >  0) { hbx_accountid="DM560927EGZR"; }
else if (hbx_location.indexOf("www.ca-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM56092757SV"; }
else if (hbx_location.indexOf("avaya.com.cn") >  0) { hbx_accountid="DM56092748WZ"; }
else if (hbx_location.indexOf("avaya.cz") >  0) { hbx_accountid="DM560927GFRE"; }
else if (hbx_location.indexOf("avaya.dk") >  0) { hbx_accountid="DM56092712NS"; }
else if (hbx_location.indexOf("www.fr-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM560927OAFM"; }
else if (hbx_location.indexOf("www.de-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM5609277NAD"; }
else if (hbx_location.indexOf("avayainfo.sitepepper.de") >  0) { hbx_accountid="DM5609277NAD"; }
else if (hbx_location.indexOf("avaya.hu") >  0) { hbx_accountid="DM560927JIDC"; }
else if (hbx_location.indexOf("avayaglobalconnect.com") >  0) { hbx_accountid="DM56092770NB"; }
else if (hbx_location.indexOf("avaya.ie") >  0) { hbx_accountid="DM5609274LNZ"; }
else if (hbx_location.indexOf("avaya.co.il") >  0) { hbx_accountid="DM56092765NA"; }
else if (hbx_location.indexOf("www.it-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM560927D7SE"; }
else if (hbx_location.indexOf("avaya.co.jp") >  0) { hbx_accountid="DM56092797BN"; }
else if (hbx_location.indexOf("avaya.co.kr") >  0) { hbx_accountid="DM56092716MM"; }
else if (hbx_location.indexOf("www.mx-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM560927JMCV"; }
else if (hbx_location.indexOf("www.nl-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM5609279KBS"; }
else if (hbx_location.indexOf("www.pl-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM560927EPND"; }
else if (hbx_location.indexOf("www.ru-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM560927HGDE"; }
else if (hbx_location.indexOf("avaya.sk") >  0) { hbx_accountid="DM560927LKDW"; }
else if (hbx_location.indexOf("www.es-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM56092714FW"; }
else if (hbx_location.indexOf("avaya.se") >  0) { hbx_accountid="DM56092756BA"; }
else if (hbx_location.indexOf("www.ch-v3.avaya.pub1.globalworks.com/gcm/emea/ch-fr") >  0) { hbx_accountid="DM5609271MCR"; }
else if (hbx_location.indexOf("www.ch-v3.avaya.pub1.globalworks.com/gcm/emea/ch-de/") >  0) { hbx_accountid="DM5609270JME"; }
else if (hbx_location.indexOf("www.uk-v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM560927POVF"; }
else if (hbx_location.indexOf("avaya.com") >  0) { hbx_accountid="DM56092745MZ"; }
else if (hbx_location.indexOf("avaya-apac.com") >  0) { hbx_accountid="DM56092728RA"; }
else if (hbx_location.indexOf("emea.avaya.com") >  0) { hbx_accountid="DM5609273MCD"; }
else if (hbx_location.indexOf("www.cala.v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM5612112OME"; }
else if (hbx_location.indexOf("avaya.ae") >  0) { hbx_accountid="DM56092765EV"; }
else if (hbx_location.indexOf("avaya.tr") >  0) { hbx_accountid="DM560927CDWS"; }
else if (hbx_location.indexOf("intranet.tenovis.com") >  0) { hbx_accountid="DM56092748VS"; }
else if (hbx_location.indexOf("investors.avaya.com") >  0) { hbx_accountid="DM5609273ANW"; }
else if (hbx_location.indexOf("gallery.avaya.com") >  0) { hbx_accountid="DM5609273JZD"; }
else if (hbx_location.indexOf("support.avaya.com") >  0) { hbx_accountid="DM560927L3EB"; }
else if (hbx_location.indexOf("www.v3.avaya.pub1.globalworks.com") >  0) { hbx_accountid="DM56092745MZ"; }
else if (hbx_location.indexOf("pm-v3.prod.gwtechservices.com/rt/default.aspx?CurrentPath=/emea/ch-fr/") >  0) { hbx_accountid="DM5609271MCR"; }
else if (hbx_location.indexOf("pm-v3.prod.gwtechservices.com/rt/default.aspx?CurrentPath=/emea/ch-de/") >  0) { hbx_accountid="DM5609270JME"; }
else if (hbx_location.indexOf("pm-v3.prod.gwtechservices.com/rt/default.aspx?CurrentPath=/nar/fr-ca/") >  0) { hbx_accountid="DM560927EGZR"; }
else if (hbx_location.indexOf("pm-v3.prod.gwtechservices.com/rt/default.aspx?CurrentPath=/nar/en-us/") >  0) { hbx_accountid="DM56092757SV"; }
else
{
hbx_accountid="DM561102D7VW";
}

hbx_accountid = GlobalAccount + ";" + hbx_accountid;

//alert(hbx_accountid);
//return hbx_accountid;

return "DM5609022DAC";
}

function _hbxStrip(a){
	a = a.split("|").join("");
	a = a.split("&").join("");
	a = a.split("'").join("");
	a = a.split("#").join("");
	a = a.split("$").join("");
	a = a.split("%").join("");
	a = a.split("^").join("");
	a = a.split("*").join("");
	a = a.split(":").join("");
	a = a.split("!").join("");
	a = a.split("<").join("");
	a = a.split(">").join("");
	a = a.split("~").join("");
	a = a.split(";").join("");
	a = a.split(" ").join("+");
	a = a.split("\\").join("");
	a = a.split("").join("");
	a = a.split(".").join("");
	a = a.split('"').join('');
	return a;    
}
