function httpsRedirect(validProtocol, newUrl){
	// alert("in the httpsCheck.js - actual protocol:" +location.protocol + " - valid protocol is " + validProtocol);
	
	if (location.protocol != validProtocol) {
		if (document.images)
			location.replace(newUrl);
		else
			location.href= newUrl;
	}	
}