// not used, cauesed problems with LoginControl.aspx
	
	var currUrl=window.location.href;

	// if we are in production then redirect to https
	if(currUrl.toUpperCase().indexOf("LOCALHOST")==-1 && currUrl.toUpperCase().indexOf("TEST.TRUC")==-1 && currUrl.toUpperCase().indexOf("DELLP4")==-1)
	{
		if(currUrl.indexOf("http:") > -1)
		{
			currUrl=currUrl.replace("http","https");
			window.location.replace(currUrl);
		}
	}
