/* HTTPS Enforcer v1.0. Copyright © Dazdezines.
This script may be used freely as long as this
copyright message is left unchanged.
If you use Dreamweaver - get the Free DW Extension @
http://www.dazdezines.com/mme. */

if (top.location.protocol == 'file:') {
alert('This document is not online, i.e. Not hosted on a webserver.\rThis document needs to be hosted on a webserver supporting\rHTTPS services for this function to work.');
}
else if (top.location.protocol != 'https:') {
confirm('You are being redirected to the secure side of our site(send and received encrypted data)  for your protection and security.\nAfter clicking on "OK" this page will automatically be reloaded with HTTPS protocol.');
	if (top.location.protocol == 'http:') {
	var secureHref = document.location.href.split('http://').join('https://');
	document.location.href = secureHref;
	}
	else {
	alert('Unknown Protocol, unable to perform function.\r\rPlease report this error to info@tjdwebsolutions.com.\rPlease include the URL of the page you are trying to access\rand as much information as possible about the problem.\rUpon receipt, Dazdezines will address this problem ASAP.');}
}