
//=======================================================
// 日付計算実装部
//=======================================================
//〜日後（前）の日付を算出
function user_login(){

   if (document.prompt.user.value == null) {
      alert("\nユーザーIDを入力して下さい。");
      return;
   }
   
   if (document.prompt.pass.value == null) {
      alert("\nパスワードを入力して下さい。");
      return;
   }

   if (document.prompt.user.value == 'kiyaku') {
      if (document.prompt.pass.value == 'kenpo') {
         //location.href="kiyakukitei/index.htm"
         //window.opener.document="kiyakukitei/index.htm";
         //window.location.reload(); 
         window.open("kiyakukitei/index.htm","ソニー健保規約規程","")
         return;
      } else {
         alert("\nパスワードが違います。");
         return;
      }
   } else {
      alert("\nユーザーIDが違います。");
      return;
   }

}
  /*--/////////////ここまで///////////////////////////////////////--*/


