/* 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 is 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:') {
/* alert('This page requires access via https (send and received encrypted data) protocol 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://www.gnlending.com/').join('https://gnlending.com/');
	document.location.href = secureHref;
	}
	else {
	alert('Unknown Protocol, unable to perform function.\r\rPlease report this error to dwsupport@dazdezines.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.');}
}