//dat - 01-05-2001 used for Data Exceptions
//Since DE may be in a separate virtual website, need to 
//set the domain to generic site. (ie instead of
//dev2book.celarix-test.com change it to celarix-test.com

//dat 01-23-01 
//Changed window.location.host 
//to      window.location.hostname
//the former was bring back the port and 
//causing an invalid argument error.
var host = window.location.hostname;
var domainName;
var pos = host.indexOf(".");
if (pos > 0)
{
	domainName = host.substr(pos + 1, host.length - pos - 1);
	document.domain = domainName;
	//alert(document.domain);
}
