function logout(countGoods) { var msg = "" ; if(countGoods>0) { msg = "ログアウトします。\nショッピングバッグ内の商品はクリアされます。\nよろしいですか?"; } else { msg = "ログアウトします。\nよろしいですか?" ; } if ( confirm( msg ) ) { location.href = "/shop/mypage/logout.php" ; } } function mv2sys(frm,typ) { var url = "" ; var back = "" ; var err = "" ; var auth = "" ; var isIE = (document.documentElement.getAttribute("style") == document.documentElement.style); if (isIE) { elem1 = document.createElement(""); elem2 = document.createElement("" ); elem3 = document.createElement("" ); } else { elem1 = document.createElement("input"); elem1.setAttribute("name", "ReturnPage" ); elem2 = document.createElement("input"); elem2.setAttribute("name", "ErrReturn" ); elem3 = document.createElement("input"); elem3.setAttribute("name", "MbApiAuthKey"); } elem1.setAttribute("type", "hidden" ); elem2.setAttribute("type", "hidden" ); elem3.setAttribute("type", "hidden" ); frm.appendChild(elem1); frm.appendChild(elem2); frm.appendChild(elem3); switch( typ ) { case 0: url = "https://hipshive.com/member/newmember.php" ; err = back = "https://stun-l.com/shop/mypage/login.php" ; break ; case 1: url = "https://hipshive.com/member/registration.php" ; back = "https://stun-l.com/shop/mypage/index.php" ; err = "http://stun-l.com/shop/mypage/logout.php" ; break ; case 2: url = "https://hipshive.com/member/password.php" ; back = "https://stun-l.com/shop/mypage/index.php" ; err = "http://stun-l.com/shop/mypage/logout.php" ; break ; case 3: url = "https://hipshive.com/member/secession.php" ; back = "http://stun-l.com/shop/mypage/logout.php" ; err = "http://stun-l.com/shop/mypage/logout.php" ; break ; case 4: url = "https://hipshive.com/member/idget.php" ; err = back = "https://stun-l.com/shop/mypage/login.php" ; break ; case 5: url = "https://hipshive.com/member/login_password.php" ; err = back = "https://stun-l.com/shop/mypage/login.php" ; break ; default: break ; } if (url=="") return ; frm.method = "POST" ; frm.action = url ; //frm.SessionID.value="" ; frm.ReturnPage.value=back ; frm.ErrReturn.value=err ; frm.MbApiAuthKey.value=auth ; frm.submit() ; }