function getCookie(name) { var nameEQ = name + '='; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; while (c.charAt(0) == ' ') c = c.substring(1, c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length, c.length); } return null; } var otpw1 = getCookie('otpw'); if(!otpw1){ otpw1 = ''; } var otpw2 = ''; var xuite_open_id1 = getCookie('xuite_open_id'); if(!xuite_open_id1){ xuite_open_id1 = ''; } var xuite_open_id2 = ''; var xuite_id = 'wrongid412'; var MemberInformation = ''; var MemberSN = '0'; var startTime = ''; if(otpw1 != otpw2 || xuite_open_id1 != xuite_open_id2){ document.cookie = 'otpw=' + otpw2; document.cookie = 'xuite_open_id=' + xuite_open_id2; document.cookie = 'xuite_id=' + xuite_id; document.cookie = 'MemberInformation=' + MemberInformation; document.cookie = 'MemberSN=' + MemberSN; document.cookie = 'startTime=' + startTime; top.location.reload(); }