

function GetVirtualRoot()
{
	var host = document.location.protocol+"//"+document.location.hostname;
	var path = document.location.pathname;
	var inx  = path.indexOf("/",1);
	var virtualRoot = path.substr(0, inx);
	return host+virtualRoot;
}
