<!--
//■エラー無視
window.onerror=null;

//■起動時に実行
function fnStart_Scr(){
    //ウィンドウサイズ(最大化)
    fnWindowMaximaize();
}

//■ウィンドウの大きさを最大に
function fnWindowMaximaize() {
    var ScrnW=window.screen.availWidth;
    var ScrnH=window.screen.availHeight;

//    window.moveTo(0,0);
//    window.resizeTo(ScrnW, ScrnH);
}

//■今日の日付を表示
function fnToDay(){
    var now=new Date();
    var yyyy=now.getYear();
    var mm= now.getMonth()+1;
    var dd = now.getDay();
    var DYS = new fnDays();
    var DYJ = DYS[dd];

    //mac+safari対応
	if(yyyy<"200"){
        yyyy=eval(yyyy)+1900;
	}	

	if (mm<=9){
        mm="0"+mm;
    }
    var dd=now.getDate();
    if (dd<=9){
        dd="0"+dd;
    }
    var hh=now.getHours();
    if (hh<=9){
        hh="0"+hh;
    }
    var mi= now.getMinutes();
    if (mi<=9){
        mi="0"+mi;
    }

    var strDate =  yyyy + "/" + mm + "/" + dd;
    var strTime =  hh + ":" + mi;
    var strDyj; 

    if(DYJ=="日"){
        strDyj=" <font color='red'>(" + DYJ + ")</font>";
    }else if(DYJ=="土"){
        strDyj=" <font color='darkblue'>(" + DYJ + ")</font>";
    }else{
        strDyj=" (" + DYJ + ")"; 
    }

    document.write(strDate + strDyj + strTime);
}

function fnDays(){
  this[0] = "日"; this[1] = "月"; this[2] = "火"; this[3] = "水";
  this[4] = "木"; this[5] = "金"; this[6] = "土";
}

//◆サブウィンドウをオープンする(f=0:メニューバーなし,f=1:メニューバーあり)
function fnSubwinOpen(strFilePath,strSubwinName,f){
    var valWidth;
    var valHeight;
        valWidth=730;
	    valHeight=600;
    var ScrnW=window.screen.availWidth;
    var ScrnH=window.screen.availHeight;

    var valTop=(ScrnH-valHeight)/2;  
    var valLft=(ScrnW-valWidth)/2;
    
    if(f==0){
        window.open(strFilePath,strSubwinName,"width=" + valWidth + ",height=" + valHeight + ",top=" + valTop + ",left=" + valLft + ",resizable=1,scrollbars=1,menubar=0");
    }else{
        window.open(strFilePath,strSubwinName,"width=" + valWidth + ",height=" + valHeight + ",top=" + valTop + ",left=" + valLft + ",resizable=1,scrollbars=1,menubar=1");
    }
}

//■いちクリFooterの文字色変化(マウスオン時)
function MouseOver_wsLogo(f){
  switch (f){    
    case 0:    //灰色・非透明度50
	  document.getElementById("spn_wsLogo3").style.color="#c4c4ff";     
      document.getElementById("spn_wsLogo2").style.color="#c4c4ff";     
      document.getElementById("spn_wsLogo1").style.filter="alpha(opacity=50)";      
      break;
    case 1:    //青緑・非透明度100
      document.getElementById("spn_wsLogo3").style.color="#376f6f";    
      document.getElementById("spn_wsLogo2").style.color="#376f6f";    
      document.getElementById("spn_wsLogo1").style.filter="alpha(opacity=100)";      
      break;
  }
}

//■ログファイルを表示する
function fnLogFile(){
  Obj_110.style.display='inline';
}

function fnLogFile2(){
  Obj_110.style.display='none';
}

//■休診情報ポップアップを任意の位置に動かす
Comment_Flag=0;
window.document.onmousemove=fnDragObj;
window.document.onmouseup=fnDragOff;

function fnDragOn(n) {
  Comment_Flag=1;
  Obj_ID=n;
  Y=event.y-document.all[Obj_ID].style.pixelTop;
  X=event.x-document.all[Obj_ID].style.pixelLeft;
}

function fnDragOff() {
  Comment_Flag=0;
}

function fnDragObj() {
  if (Comment_Flag==1) {
    document.all[Obj_ID].style.pixelTop=event.y - Y;
    document.all[Obj_ID].style.pixelLeft=event.x - X;
    return false;
  }else {
    return;
  } 
}


//-->

