﻿// JScript 파일
// code by kjh 2008.05.08
// https->http
// 적용대상 : members-b 매스터 페이지에 영향 받는것을 제외하고 전부
        function CheckHttp()
        {
            var str = window.location.href;
            var arrstr = str.split(":");
            if(arrstr[0] == "http")
            {
                return true;
            }
            return false;
        }
        function ToHttpForOnlyHaemoro()
        {            
            if(CheckHttp())
            {
                return;
            }
            else
            {
                var str = window.location.href;
                if(str != "https://www.haemoro.com/members-b/join1.aspx" && str != "https://www.haemoro.com/members-b/login.aspx")
                {
                    str = str.replace(/https/gi, "http");
                    window.location.replace(str);
                }
            }
        }
        ToHttpForOnlyHaemoro();


