

var wiSSL_Host = "www.henryford.com";


// Force_SSL.js version 1.00 - No cookies are transferred.

// JavaScript to force any page to load;
//  1. Using SSL, and
//  2. On the host with the SSL certificate.
//  (Cookies are NOT transfered to the new host.)

// Version History:
// 1.00, 05/15/2007 - original code supplied by Visibility Factor

// USAGE:
// 1. The host with the SSL certificate must be specified above,
//    for example: var wiSSL_Host = "www.medseek1. .com";
// 2. Put a reference to this code on any page that should load by SSL
//    like this: <script src="Force_SSL.js"></script>
// 3. When using this code, the Force-SSL Checkbox in SiteMaker
//    MUST NOT BE CHECKED.
// 4. For example this line could be put in the introduction text
//    of an eForm like so:
//
//      <script src="Force_SSL.js"></script><!-- Remember to UN-check Force-SSL Checkbox. -->


if(location.protocol!='https:'||location.host!=wiSSL_Host)
	location.replace('https://'+wiSSL_Host+location.pathname+location.search);
