<!--
//////////////////////////////////////////////////////////////////////////////////////////////////
// キャンペーンリンク切替
//////////////////////////////////////////////////////////////////////////////////////////////////
function changeCampaingLinkModule(strCamId){
	if(document.campaign_new.root_id != null){
		document.campaign_new.root_id.value = strCamId;
	}else if(document.campaign_new.cam_id != null){
		document.campaign_new.cam_id.value = strCamId;
	}
	document.campaign_new.submit();
}
//////////////////////////////////////////////////////////////////////////////////////////////////
// 宿GETS連動キャンペーン切替
//////////////////////////////////////////////////////////////////////////////////////////////////
function changeYadoCampaignModule(strCamId){
	document.yado.cam_id.value = strCamId;
	document.yado.submit();
}
/////////////////////////////////////////////////////////////////////////////////////////////////
// ajaxの実行
/////////////////////////////////////////////////////////////////////////////////////////////////
function getData(strPostUrl,strParam,objDisplayData){
	httpObj = createXMLHttpRequest(objDisplayData);
	if (httpObj){
		httpObj.open('POST',strPostUrl + strParam,true);
		httpObj.send(null);
	}
}

/////////////////////////////////////////////////////////////////////////////////////////////////
// コンポーネント
/////////////////////////////////////////////////////////////////////////////////////////////////
function createXMLHttpRequest(cbFunc){
	var XMLhttpObject = null;
	try{
		XMLhttpObject = new XMLHttpRequest();
	}catch(e){
		try{
			XMLhttpObject = new ActiveXObject('Msxml2.XMLHTTP');
		}catch(e){
			try{
				XMLhttpObject = new ActiveXObject('Microsoft.XMLHTTP');
			}catch(e){
				return null;
			}
		}
	}
	if (XMLhttpObject) XMLhttpObject.onreadystatechange = cbFunc;
	return XMLhttpObject;
}
/////////////////////////////////////////////////////////////////////////////////////////////////
// 料金詳細ポップアップ
/////////////////////////////////////////////////////////////////////////////////////////////////
function chargePop(strId,nCt,objEvent){
	document.getElementById(strId).innerHTML = document.getElementById(strId + nCt).innerHTML;

	if(strId == 'pop_reserve' || strId == 'pop_koho'){
		strXPos = -500;
	}else{
		strXPos = -250;
	}

	document.getElementById(strId).style.left = Event.pointerX(objEvent) + strXPos + 'px';
	document.getElementById(strId).style.top = Event.pointerY(objEvent) + 'px';
	document.getElementById(strId).style.visibility = "visible";
}
/////////////////////////////////////////////////////////////////////////////////////////////////
// 料金詳細ポップアップ削除
/////////////////////////////////////////////////////////////////////////////////////////////////
function hidePop(strId){
	document.getElementById(strId).style.visibility = "hidden";
}
/////////////////////////////////////////////////////////////////////////////////////////////////
// 個々処理
/////////////////////////////////////////////////////////////////////////////////////////////////
function setAjaxEachModule(objDisplay,strUrl,strValue,strMode){
	// QueryString生成
	strQueryString = '';
	strQueryString = strQueryString + '?value=' + strValue;
	strQueryString = strQueryString + '&mode=' + strMode;

	// Ajaxの実行処理
	objAjaxEach = createXMLHttpRequest(objDisplay);
	if(objAjaxEach){
		objAjaxEach.open('POST',strUrl + strQueryString,true);
		objAjaxEach.send(null);
	}
}
//-->
