// HTTP通信用、共通関数
$(function(){
	$.get("/php/weather.php", function(data){
		$("#weather").html(data);
	});
});


//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;
//}

// HTML読み込み
//function loadHTMLFile(fName){
//	httpObj = createXMLHttpRequest(displayData);
//	if (httpObj){
//		httpObj.open("GET",fName,true);
//		httpObj.send(null);
//	}
//}

//function displayData(){
//	if ((httpObj.readyState == 4) && (httpObj.status == 200)){
//		$('weather').innerHTML=httpObj.responseText;
//	}else{
//		$('weather').innerHTML="Loading...";
//	}
//}

