<!--

/* API接続用のAJAX処理 */

function ajaxRequest(url, pars, setResponse){

	new Ajax.Request(url, {
		method: "post",
		parameters: pars,
		onComplete: setResponse
	});

}

function setCurrency(objReq){

	if (objReq.responseText.match('false')){
	    $('currency_label').style.display = 'none';
	    $('currency').style.display = 'none';
	}else{
	    $('currency').innerHTML = objReq.responseText;
	}

}

function setLocaltime(objReq){

	if (objReq.responseText.match('false')){
	    $('localtime_label').style.display = 'none';
	    $('localtime').style.display = 'none';
	}else{
	    $('localtime').innerHTML = objReq.responseText;
	}

}

function setWeather(objReq){

	if (objReq.responseText.match('false')){
	    $('weather_label').style.display = 'none';
	    $('weather').style.display = 'none';
	}else{
	    $('weather').innerHTML = objReq.responseText;
	}

}

//-->
