/* 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 page is not online, i.e. not live on Digital Insight webserver.\rThis document must be first uploaded to Digital Insight webserver supporting\rHTTPS services for the CU Online signon form to work.\rPlease report this error to Arizona Federal technical support at \r602) 683-1088 or 1-800-523-4603 x1088.');
}
else if (top.location.protocol != 'https:') {
//alert('Arizona Federals website 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://').join('https://');
	document.location.href = secureHref;
	}
	else {
	//alert('Unknown Protocol, unable to perform function.\r\rPlease report this error to Arizona Federal technical support at \r(602) 683-1000 or 1-800-523-4603 option 4.')
	;}
}