﻿
/*  ================================================================================
	SSL Check
================================================================================  */
var url = location.href;
keys = new Array();
keys[0] = 'contact';
keys[1] = 'entry';
keys[2] = 'regist';
keys[3] = 'mypage';
keys[4] = 'forgot';
keys[5] = 'inquiry';

key = '/' + keys.join('|') + '/';
if ( url.match(/^http:\/\/.*/) ) {
	if ( url.match(key) ) {
		url = url.replace("http:", "https:");
		location.replace(url);
	} else {
	}
} else if ( url.match(/^https:\/\/.*/) ) {
	if ( url.match(key) ) {
	} else {
		url = url.replace("https:", "http:");
		location.replace(url);
	}
}
