pyAjax = new function(){
	pyajaxClass = function(){
		var ajaxObj = null;
		this.createXMLHttpRequest = function( obj ){
			try{
				ajaxObj = new XMLHttpRequest();
			}catch(e){
				try{
					ajaxObj = new ActiveXObject( "Msxml2.XMLHTTP" );
				}catch(e){
					try{
						ajaxObj = new ActiveXObject( "Microsoft.XMLHTTP" );
					}catch(e){
						return null;
					}
				}
			}
			if( ajaxObj ){
				ajaxObj.onreadystatechange = function(){
					if( ajaxObj.readyState == 4 && ajaxObj.status == 200 ){
						obj.innerHTML = ajaxObj.responseText;
						ajaxflag = true;
					}
				};
			}
			return ajaxObj;
		};
	};
	this.onGetData = function( hdname, id ){
		var httpObj = new pyajaxClass();
		var ajaxObj = httpObj.createXMLHttpRequest( document.getElementById(id) );
		if( ajaxObj ){
			var date = new Date();
			ajaxObj.open("POST", "handlename_check.php?dmy=" + date.getTime(), true);
			ajaxObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8");
			ajaxObj.send( "hdl=" + encodeURIComponent( hdname ) );
			obj.innerHTML = "<img src='/hyouka/wait1.gif' title='しばらくお待ちください' alt='チェック中' class='mgn3'>";
		}
	};
};
