<!--#include file="../../include/jschedule/calendar.asp"-->
<%
'jschedule/calendar/mainHeader.asp  (Last Update 2001.02.19)
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'   ESMPRO/JMSS WebClient (JSchedule) Version 6.0
'   Copyright (C) NEC Corporation/NEC Soft, Ltd. 2001
'   All rights reserved
'-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
'**Start Encode**

    Dim szRet   '|bvAbvEBhEŉꂽ{^
    Dim nCalID  'ΏۃJ_[ID

    szRet = Request.QueryString("szRet")
    nCalID= Request.QueryString("nCalID")
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=shift_jis">

<title>JMSS</title>
<link rel="stylesheet" type="text/css" href="../../include/jmss.css">
<script>
</script>
<script src="../../include/functions.js"></script>
<script language="JavaScript" src="../../include/jschedule/strfunc.js"></script>
<script language="JavaScript"><!--
function checkCalName(){

    with(document.f){

        if (parent.main.document.f2.length >= 50){
            alert("쐬łJ_[50܂łłB");
            return false;
        }

        if (szCalName.value.length <= 0){
            return false;
        }

        szCalName.value = cutOverLenStr(szCalName.value,15)
//      varCalID = GetCalID();
        varCalID = 0;
        if (varCalID == 0){
            if (confirm("VKJ_[ [" + szCalName.value + "] 쐬܂B\n낵łH")){
                szCalName.focus();
                return;
            }else{
                return false;
            }
        }else{
            alert("͂ꂽJ_[ [" + szCalName.value + "] ͊ɑ݂Ă܂B");
            szCalName.value = "";
            szCalName.focus();
            return false;
        }
    }
}

/*
function GetCalID(){
    //@eLXg{bNXɎw肵J_[ꗗɑ݂邩H
    //@݂遨CalID,Ȃ0

    // eLXg{bNXɎw肳ꂽJ_[ɂ邩H
    for (i=0; i<parent.main.document.f2.length; i++){
        varPram = parent.main.document.f2.elements[i].value;
        varIndexFrom = varPram.indexOf(',');
        varIndexTo   = varPram.length;
        varCalID     = varPram.substring(0,varIndexFrom);
        varCalName   = varPram.substring(varIndexFrom + 1,varIndexTo);

        varCalName = varCalName.replace("\\'","'");
        varCalName = varCalName.replace("\\\\","\\");

        alert("varCalName=" + varCalName);
        if (varCalName == document.f.szCalName.value){
            return(varCalID);
        }
        else if (unescape(varCalName) == document.f.szCalName.value){
            return(varCalID);
        }
    }
    return (0);
}
*/

//-->
</script>
</head>

<!-- ////////////////////////////// main section ////////////////////////////// -->
<body class="dialog">
<form name='f' method="POST" action="main.asp" target="main" onSubmit="return checkCalName();">

<table border="0" width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td class="menu" width="100%">
      <table border="0" width="378">
        <tr>
          <td width="120" nowrap>J_[ݒ</td>
          <td nowrap>
              <input type="text" name="szCalName" maxlength="15">
              <input type="submit" value="ǉ" name="B1">
              <input type="hidden" value="ADD" name="szRet">
              <input type="hidden" value="0" name="nCalID">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

</form>
<form name='dummy'>
</form>
</body>

</html>
