<!--

function ReUrl(e)
{
	var nurl , reurl;

	nurl = location.href;

	if(e == "ssl")
	{
		if(nurl.substring(0,7) == "http://")
		{
			reurl = nurl.replace("http://", "https://");
			location.href = reurl;
		}
	}
	else
	{
		if(nurl.substring(0,7) == "https:/")
		{
			reurl = nurl.replace("https://", "http://");
			location.href = reurl;
		}
	}
}


function ReUrl1(e,eurl)
{
	var nurl , reurl;

	nurl = location.href;

	if(e == "ssl")
	{
		if(nurl.substring(0,7) == "http://")
		{
			reurl = nurl.replace("http://", "https://");

			if(eurl != "")
			{
				location.href = reurl + "?reurl=" + eurl;
			}
			else
			{
				location.href = reurl;
			}
		}
	}
	else
	{
		if(nurl.substring(0,7) == "https:/")
		{
			reurl = nurl.replace("https://", "http://");

			if(eurl != "")
			{
				location.href = reurl + "?reurl=" + eurl;
			}
			else
			{
				location.href = reurl;
			}
		}
	}
}


function ReUrl3(e)
{
	var nurl , reurl;

	nurl = location.href;

	if(e == "ssl")
	{
		if(nurl.substring(0,7) == "http://")
		{
			reurl = nurl.replace("http://", "https://");
			location.href = reurl + "?oldurl=" + nurl;
		}
	}
	else
	{
		if(nurl.substring(0,7) == "https:/")
		{
			reurl = nurl.replace("https://", "http://");
			location.href = reurl + "?oldurl=" + nurl;
		}
	}
}

//-->
