// go to the specified relative URL with a non-secure prefix
// use this function to replace the current browser with the url
function goToNonSecure(url)
{
	window.location.href = getNonSecureURL(url);
}

// go to the specified relative URL with a secure prefix
// use this function to replace the current browser with the url
function goToSecure(url)
{
	window.location.href = getSecureURL(url);
}

// go to the specified relative URL with a non-secure prefix
// use this function to replace the current browser with the url
function openNonSecure(url, targetName)
{
	window.open(getNonSecureURL(url),target=targetName);
}

// go to the specified relative URL with a secure prefix
// use this function to replace the current browser with the url
function openSecure(url, targetName)
{
	window.open(getSecureURL(url),target=targetName);
}

// return the specified relative url as a absolute path 
// in non-secure mode
function getNonSecureURL(url)
{
	return HTTP_PREFIX + url;
}

// return the specified relative url as a absolute path 
// in secure mode
function getSecureURL(url)
{
	return HTTPS_PREFIX + url;
}


