function passthruGate(url, https) {
	if (https) {
		url = '/gate.php?url=' + encodeURIComponent(url);
	}
	return url;
}
