// JavaScript Document

  function get_Osusume()
  {


	       var url       = "estate/rss/osusume.php";
		   
                     var myajax = new Ajax.Request(url, 
	                  {
		                   method: 'get', 
						   onSuccess     :load_data_set,
			               onFailure     : function(){
						       alert('何かしらのエラーが発生しました');
						   },
			               onException   :  function(){
						       alert('例外エラーが発生しました');
						   }
	                  }
	                 );
					 
  
  
  }


//-----------------------------------------
// onSuccess
//-----------------------------------------
 function load_data_set(data)
 {
	 

     var response = data.responseXML.getElementsByTagName('Response');
     var item_1     = response[0].getElementsByTagName('date1');
     var item_2     = response[0].getElementsByTagName('date2');
	 
     var date1    = item_1[0].firstChild.nodeValue;
     var date2    = item_2[0].firstChild.nodeValue;
	 
	    inner('date_1',date1);
	    inner('date_2',date2);

 }
 

//-----------------------------------------
// Inner
//-----------------------------------------
  function inner(Id,val)
   {
       var innerPane = document.getElementById(Id);
       innerPane.innerHTML = val;
   }
