
//
// GetServerName()
//
// purpose: gets the name of the server from an absolute url
function GetServerName(strUrl)
{
	var re = /[^:]+:\/\/(.*?)\/.*/
	if (re.test(strUrl))
		return RegExp.$1;
	else
		throw new Error(-1, 'Invalid URL: ' + strUrl);
}
