function pop(up){ var date = up.split("<>"); document.getElementById('num').innerHTML=date[0]; document.getElementById('name').innerHTML=date[1]; document.getElementById('time').innerHTML=date[3]; document.getElementById('msg').innerHTML=date[4]; set.style.posLeft=document.body.scrollLeft+window.event.clientX+10; set.style.posTop=document.body.scrollTop+window.event.clientY+10; if(date[4]){document.all('set').style.display="block";} }
function del(){ document.all('set').style.display="none"; }
document.write('<DIV style="display:none; position:absolute; border:#3366FF dotted 1px; padding:5px; background-color:#FFFFFF; font-size:80%;" id="set"><SPAN id="num"></SPAN>&nbsp;名前：<B style="color:#3355CC;" id="name"></B>&nbsp;[<SPAN id="time"></SPAN>]<DIV id="msg" style="margin-left:2em;"></DIV></DIV>'); 

//var CountRead;
//CountRead = new Array();

//function CountRead(BaseID,Counter){
//	if(!CountRead[BaseID]){ CountRead[BaseID] = 1; }
//	if(Counter){ CountRead[BaseID]++; }
//	return BaseID + CountRead[BaseID];
//}

function AjaxReadFile(ChangeID,FileURL,NullPo){ 
	FileURL = FileURL + "?cache="+(new Date()).getTime() + NullPo;
	//document.all(ChangeID).style.display = "block";
	new Ajax.Updater(
		{success:ChangeID}, 
		FileURL, 
		{ 
			method : "get", 
			onLoading : function(){ $(ChangeID).innerHTML = "<DIV class=\"newres_status\">読み込み中...</div>\n"; },
			onFailure : function(){ $(ChangeID).innerHTML = "<DIV class=\"newres_status\">読み込みに失敗しました。</div>\n"; }
		}
	); 
	return false;
}

var sdprid = 0;
function AjaxReadFile2(ChangeID,FileURL,Loading,NullPo){ 
	if (FileURL.match(/\?/i)) {
		FileURL = FileURL + "&cache="+(new Date()).getTime();
	}else{
		FileURL = FileURL + "?cache="+(new Date()).getTime();
	}
	//window.location.hash = ChangeID;
	new Ajax.Updater(
		{success:ChangeID}, 
		FileURL, 
		{ 
			method : (NullPo ? "post" : "get"), 
			postBody : $H(NullPo).toQueryString(),
			onLoading : function(){ if(Loading){ $(Loading).innerHTML = "<DIV class=\"moco_loading\">読み込み中...</div>\n"; } },
			onFailure : function(){ $(ChangeID).innerHTML = "<DIV class=\"moco_status\">読み込みに失敗しました。"+FileURL+"</div>\n"; }
		}
	); 

	sdprid = 0;
	return false;
}
