﻿//管理画面　枠表示用フラグ
var flgAdmin = "";
/***************************
  こちらもおすすめです（目次）

***************************/
function ajaxRmdPlan(_idx1) {
	resRmdPlan(_idx1, '', '../../', '');
}
function resRmdPlan(_idx1, _idx2, _path, _ymd) {


	var resText = "";
	
	// XMLHttpRequestオブジェクトの生成
    try {
        // IEの場合

        xmlHttp_Plan = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        // Firefoxなどそのほかのブラウザの場合

        xmlHttp_Plan = new XMLHttpRequest();
    }

	// XMLHttpRequestオブジェクトの状態が変更されたタイミング
    // で行うべき処理を定義
    xmlHttp_Plan.onreadystatechange = function() {

    // データ受信に成功した時

		if (xmlHttp_Plan.readyState == 4) {
			if (xmlHttp_Plan.status == 200) {
				resText = xmlHttp_Plan.responseText;
				document.getElementById("rmdPlan").innerHTML = resText;
			} else {
			}
		}
	}
	
	var dd = new Date();
	var _strSec = String(dd.getFullYear()) + String(dd.getMonth()) + String(dd.getDate()) + String(dd.getHours()) + String(dd.getMinutes()) + String(dd.getSeconds());
	xmlHttp_Plan.open("GET", _path + "admin_menu/backofc/ajaxrmd_eat.aspx?urld=" + _strSec + "&supid=" + _idx1 + "&plnid=" + _idx2 + "&path=" + _path + "&kbnflg=" + flgAdmin + "&uday=" + _ymd, true);
	xmlHttp_Plan.send(null);
}

/***************************
  INDEX
***************************/
function ajaxRmdIndex(_idx1){
    resRmdIndex(_idx1, '', '../../', '');
}
function resRmdIndex(_idx1, _idx2, _path, _ymd) {
	var resText = "";
	
	// XMLHttpRequestオブジェクトの生成
    try {
        // IEの場合

        xmlHttp_Index = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        // Firefoxなどそのほかのブラウザの場合

        xmlHttp_Index = new XMLHttpRequest();
    }

	// XMLHttpRequestオブジェクトの状態が変更されたタイミング
    // で行うべき処理を定義
    xmlHttp_Index.onreadystatechange = function() {
    // データ受信に成功した時

		if (xmlHttp_Index.readyState == 4) {
			if (xmlHttp_Index.status == 200) {
				resText = xmlHttp_Index.responseText;
				document.getElementById("rmdIndex").innerHTML = resText;
			} else {
			}
		}
	}
	
	var dd = new Date();
	var _strSec = String(dd.getFullYear()) + String(dd.getMonth()) + String(dd.getDate()) + String(dd.getHours()) + String(dd.getMinutes()) + String(dd.getSeconds());
	xmlHttp_Index.open("GET", _path + "admin_menu/backofc/ajaxrmd_index.aspx?urld=" + _strSec + "&supid=" + _idx1 + "&plnid=" + _idx2 + "&path=" + _path + "&kbnflg=" + flgAdmin + "&uday=" + _ymd, true);
	xmlHttp_Index.send(null);
}

/***************************
  住所、アクセス1
***************************/
function ajaxRmdAccess(_idx1) {
	resRmdAccess(_idx1, '', '../../', '');
}
function resRmdAccess(_idx1, _idx2, _path, _ymd) {
	var resText = "";
	
	// XMLHttpRequestオブジェクトの生成
    try {
        // IEの場合

        xmlHttp_Access = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        // Firefoxなどそのほかのブラウザの場合

        xmlHttp_Access = new XMLHttpRequest();
    }

	// XMLHttpRequestオブジェクトの状態が変更されたタイミング
    // で行うべき処理を定義
    xmlHttp_Access.onreadystatechange = function() {

    // データ受信に成功した時

		if (xmlHttp_Access.readyState == 4) {
			if (xmlHttp_Access.status == 200) {
				resText = xmlHttp_Access.responseText;
				document.getElementById("rmdAccess").innerHTML = resText;
			} else {
			
			}
		}
	}
	
	var dd = new Date();
	var _strSec = String(dd.getFullYear()) + String(dd.getMonth()) + String(dd.getDate()) + String(dd.getHours()) + String(dd.getMinutes()) + String(dd.getSeconds());
	xmlHttp_Access.open("GET", _path + "admin_menu/backofc/ajaxrmd_access.aspx?urld=" + _strSec + "&supid=" + _idx1 + "&plnid=" + _idx2 + "&path=" + _path + "&kbnflg=" + flgAdmin + "&uday=" + _ymd, true);
	xmlHttp_Access.send(null);
}

/***************************
  こんなときにオススメ！

***************************/
function ajaxRmdSituation(_idx1) {
	resRmdSituation(_idx1, '', '../../', '');
}
function resRmdSituation(_idx1, _idx2, _path, _ymd) {
	var resText = "";
	
	// XMLHttpRequestオブジェクトの生成
    try {
        // IEの場合

        xmlHttp_Situation = new ActiveXObject("Microsoft.XMLHTTP");
    } catch(e) {
        // Firefoxなどそのほかのブラウザの場合

        xmlHttp_Situation = new XMLHttpRequest();
    }

	// XMLHttpRequestオブジェクトの状態が変更されたタイミング
    // で行うべき処理を定義
    xmlHttp_Situation.onreadystatechange = function() {

    // データ受信に成功した時

		if (xmlHttp_Situation.readyState == 4) {
			if (xmlHttp_Situation.status == 200) {
				resText = xmlHttp_Situation.responseText;
				document.getElementById("rmdSituation").innerHTML = resText;
			} else {
			
			}
		}
	}
	
	var dd = new Date();
	var _strSec = String(dd.getFullYear()) + String(dd.getMonth()) + String(dd.getDate()) + String(dd.getHours()) + String(dd.getMinutes()) + String(dd.getSeconds());
	xmlHttp_Situation.open("GET", _path + "admin_menu/backofc/ajaxrmd_situation.aspx?urld=" + _strSec + "&supid=" + _idx1 + "&plnid=" + _idx2 + "&path=" + _path + "&kbnflg=" + flgAdmin + "&uday=" + _ymd, true);
	xmlHttp_Situation.send(null);
}


















