var securePort = '';

function switchToSecureUrl (path)
{
	var domainName = document.domain;
	
	secureURL = "https://" + domainName;
	
	if (securePort != '')
	{
		secureURL += ":" + securePort;
	}
	secureURL +=   path;
	window.location = secureURL;
}
