<!--
function winclose(){   
                rcode = confirm("このウインドウを消去してもよろしいですか。");
                if (rcode != 0) window.close();
                else return
              } 
function back(){                   
                history.go(-1) } 
function resetmsg(){
        rc = confirm("入力されたデータは消去されます。");
        return  rc;
     }
var cnt = -1;
//********
me = new Array();
//「me[1] = " *************";」ダブルクォーテーション内に
//メッセージを入れます。
me[1] = " 車検見積り予約はこのホームページより簡単にできます。";
var mess=me[1];
var timeout=0;
var count3=0;
//********
function today_time(){

var msg = "　　こんにちは、当社の「Ｗｅｂ車検見積りページ」のご利用ありがどうございます。　/　こんにちは、当社の「Ｗｅｂ車検見積りページ」のご利用ありがどうございます。"; 
timeID=setTimeout('',1);
                status = msg.substring(cnt=cnt+1,msg.length+1);
                if (cnt>msg.length){cnt=-1}
                   clearTimeout(timeID);

       myWeek=new Array("日","月","火","水","木","金","土");

       myD=new Date();
       myYear=(myD.getYear()<2000)?1900+myD.getYear() : myD.getYear(); 
       myMonth=myD.getMonth()+1;

       myDate=myYear + "年" + myMonth + "月　" + myD.getDate() + "日　";

       myDay=myWeek[myD.getDay()] + "曜日　";

       myTime=myD.getHours() + "時" + myD.getMinutes() + "分" + myD.getSeconds() + "秒";

       document.dayForm.dayFormDate.value = myDate+"　"+myDay;

       document.dayForm.dayFormTime.value = myTime;
//*******
        document.movie.movemsg.value = me[1].substring(0,count3);
        count3++;
        if(count3 > me[1].length+10){/** +10 は表示し終わった後のPause **/
                document.movie.movemsg.value = "";                       
                count3 = 0;
                                    }
//*******
       timeID = setTimeout( "today_time()" , 300 );

       }

function myCalendar( myTodayOffset ){
	calendar=window.open("","ClndrOpen", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width=180,height=200");

calendar.document.open();
calendar.document.write("<html><head><title>Calendar</title>");
calendar.document.write("</head>                            ");
calendar.document.write("<body bgcolor='lightgreen'>                             ");

 var i=0;
 var j=0;
 var myDat;
 var myWeekTbl;
 var myYear;
 var myMonth;
 var myTable;
 var myToday;


// ****************

// **   下準備   **

// ****************

 myDate  = new Date();                                      // 今日の日付データ取得

 myYear=(myDate.getYear()<2000)?1900+myDate.getYear() : myDate.getYear(); 

 myMonth = myDate.getMonth();                               // 月を取得(0月〜11月)

 if (myTodayOffset == -1){                                  // 先月のデータ表示か？

    if (myMonth == 0){                                      //   今月が1月なら12月へ

       myYear = (myYear == 2000) ? 1999 : (myYear-1) ;        //   去年

       myMonth = 11;                                        //   先月（去年の12月)

    }else{

       myMonth--;                                           //   先月

    }

 }else if (myTodayOffset == 1){                             // 来月データ表示か？

    if (myMonth == 11){                                     //   今月が12月なら1月へ

       myYear = (myYear == 1999) ? 2000 : (myYear+1) ;        //   来年

       myMonth = 0;                                         //   来月(来年の１月)

    }else{

       myMonth++;                                           //   来月

    }

 }

 myDate.setYear(myYear);                                    // 日付情報変更
 myDate.setMonth(myMonth);
 myWeekTbl = new Array("日","月","火","水","木","金","土"); // 曜日テーブル定義
 myMonthTbl= new Array(31,28,31,30,31,30,31,31,30,31,30,31);// 月テーブル定義
 // myYear = (myYear<=99) ? (1900+myYear) : (myYear);          // ４桁の西暦に変換
 if (((myYear%4)==0 && (myYear%100)!=0) || (myYear%400)==0) // うるう年だったら...
    myMonthTbl[1] = 29;                                     // 　２月を２９日とする
 myToday = myDate.getDate();                                // 今日の'日'を退避
 myDate.setDate(1);                                         // 日付を'１日'に変えて、
 myWeek = myDate.getDay();                                  // 　'１日'の曜日を取得
 myTable   = new Array(7*6);                                // 表のセル数分定義
 for(i=0; i<7*6; i++) myTable[i]="　";                      // myTableを掃除する
 for(i=0; i<myMonthTbl[myMonth]; i++)myTable[i+myWeek]=i+1; // 日付を埋め込む
// ***********************

// **  カレンダーの表示  **

// ***********************

 calendar.document.write("<table border='1' cellspacing='0' ");      // 表の作成開始

 calendar.document.write("bordercolor='#808080' ");

 calendar.document.write("bordercolordark='#000000' ");

 calendar.document.write("bordercolorlight='#C0C0C0'>");
 calendar.document.write("<tr><td align='center' colspan='7' bgcolor='yellow'>"); // 見出
 calendar.document.write("<strong>",myYear, "年", (myMonth+1), "月</strong>");
 calendar.document.write("</td></tr>");
 calendar.document.write("<tr>");                                    // 曜日見出しセット
 for(i=0; i<7; i++){                                        // 一行(１週間)ループ
   calendar.document.write("<td align='center' ");
   if(i==0)calendar.document.write("bgcolor='#fa8072'>");            // 日曜のセルの色
   else    calendar.document.write("bgcolor='#ffebcd'>");            // 月〜土のセルの色
   calendar.document.write("<strong>",myWeekTbl[i],"</strong>");     // '日'から'土'の表示
   calendar.document.write("</td>");
 }
 calendar.document.write("</tr>");
 for(i=0; i<6; i++){                                        // 表の「行」のループ
   calendar.document.write("<tr>");                                  // 行の開始
   for(j=0; j<7; j++){                                      // 表の「列」のループ
      calendar.document.write("<td align='center' ");                // 列(セル)の作成
      myDat = myTable[j+(i*7)];                             // 書きこむ内容の取得
      if (myDat==myToday && myTodayOffset==0)
                         calendar.document.write("bgcolor='#00ffff'>"); // 今日のセルの色
      else if(j==0)      calendar.document.write("bgcolor='#ffb6c1'>"); // 日曜のセルの色
      else               calendar.document.write("bgcolor='#ffffe0'>"); // 平日のセルの色
      calendar.document.write("<strong>",myDat,"</strong>");         // 日付セット
      calendar.document.write("</td>");                              // 列(セル)の終わり
   }
   calendar.document.write("</tr>");                                 // 行の終わり
 }
calendar.document.write("</table>");
calendar.document.write("</body>                            ");
calendar.document.write("</html>                            ");
calendar.document.close();                               // 表の終わり
// if(navigator.appVersion.charAt(0)>=3){calendar.focus()};
calendar.focus();
}                                                           // function の終わり

	function LinkSelect(form, select)
	{
		addr = select.options[select.selectedIndex].value;
       document.LINK.selLink.options[0].selected = true;

/*                addrs = addr + ' TARGET="_blank"'                 */
		if (addr != "-" ) location.href = addr;
		}
// -->
