	var ckIfWWW, ckIfHTTP, ckIfDOMAIN;
	var ckIfsWWW, ckIfHTTPS;

	// Check to see if page is being called from website (we may be testing it!)
	// and if called with www at start
	ckIfHTTP = document.location.href.indexOf("http://");
	ckIfWWW = document.location.href.indexOf("http://www.");

	ckIfHTTPS = document.location.href.indexOf("https://");
	ckIfsWWW = document.location.href.indexOf("https://www.");

	// See if HTTP found at start and WWW was NOT found
	if ((ckIfHTTP == 0) && (ckIfWWW < 0)) {
		// Get the domain and the rest of the line - then add the www to call for page
		ckIfDOMAIN = document.location.href.substring(7,document.location.href.length);
		document.location.href = "http://www." + ckIfDOMAIN;
	}

	// See if HTTPS found at start and WWW was NOT found
	if ((ckIfHTTPS == 0) && (ckIfsWWW < 0)) {
		// Get the domain and the rest of the line - then add the www to call for page
		ckIfDOMAIN = document.location.href.substring(8,document.location.href.length);
		document.location.href = "https://www." + ckIfDOMAIN;
	}
