/*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

初期化関数

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
//プロフィールカード
function initCard(cardIdNum,Xn,Yn,Zn,avtImg,imgPath){
	gMemberId = cardIdNum;
/*////////
新パス
/////////*/
var _tmp_sequserid = cardIdNum.substring(2, cardIdNum.length);
var p1 = _tmp_sequserid.substring(0, 2);
var p2 = _tmp_sequserid;
if(cardIdNum.length >= 3){
	p2 = Number(_tmp_sequserid.substring(_tmp_sequserid.length-3, _tmp_sequserid.length));
}
var newImgPathStr = gCachePath+'/sw_resource/umimg/' + p1 + '/' + p2 + '/' + cardIdNum + '/' + cardIdNum +'_w140.jpg';
//イメージ設定の画像パス+キャッシュ対応乱数
imgPath = newImgPathStr+"?"+rndNum;
	cardAvt(gMemberId,Xn,Yn,Zn,avtImg,imgPath);
}

/*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



CallBack関数



::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/

/*============================================
// information
============================================*/
function setInfoLoad(oj){
	res_Infomationlist = oj.responseXML
	checkLogin(res_Infomationlist);
	writeTags_Infolist();
}
//onAbortで実行
function writeTags_Infolist(){
	var resHTML = infolistTag(res_Infomationlist);
	document.getElementById("resultXML").innerHTML = resHTML;
	//ページャー上下
	document.getElementById("resultPager1").innerHTML = resultInfo_pagerhtml;
	document.getElementById("resultPager2").innerHTML = resultInfo_pagerhtml_UP;
	//件数上下
	document.getElementById("resultCount1").innerHTML = resultInfo_count;
	document.getElementById("resultCount2").innerHTML = resultInfo_count;
}

/*============================================
// フォト閲覧（他人）
============================================*/
function othersphotoViewLoad(oj){
	res_CardPhotoView = oj.responseXML
	checkLogin(res_CardPhotoView);
	writeTags_CardPhotoView();
}
//onAbortで実行
function writeTags_CardPhotoView(){
	var resHTML = othersphotoViewTag(res_CardPhotoView);
	document.getElementById("photoViewXML").innerHTML = resHTML;
	document.getElementById("photoViewPager").innerHTML = photoview_pagerhtml;
}

/*============================================
// フォト一覧（他人）
============================================*/
function othersphotoListLoad(oj){
	res_CardPhoto = oj.responseXML
	checkLogin(res_CardPhoto);
	writeTags_CardPhoto();
}
//onAbortで実行
function writeTags_CardPhoto(){
	var resHTML = othersphotoListTag(res_CardPhoto);
	document.getElementById("photoListXML").innerHTML = resHTML;
	//ページャー上下
	document.getElementById("photoListPager1").innerHTML = photolist_pagerhtml;
	document.getElementById("photoListPager2").innerHTML = photolist_pagerhtml;
	//件数上下
	document.getElementById("photoListCount1").innerHTML = photolist_count;
	document.getElementById("photoListCount2").innerHTML = photolist_count;
}
	
	
/*============================================
// アルバム一覧（他人）
============================================*/
function othersalbumListLoad(oj){
	res_CardAlbum = oj.responseXML
	checkLogin(res_CardAlbum);
	writeTags_CardAlbum();
}
//onAbortで実行
function writeTags_CardAlbum(){
	var resHTML = othersalbumListTag(res_CardAlbum);
	document.getElementById("albumlistXML").innerHTML = resHTML;
	//ページャー上下
	document.getElementById("albumlistPager1").innerHTML = albumlist_pagerhtml;
	document.getElementById("albumlistPager2").innerHTML = albumlist_pagerhtml;
	//件数上下
	document.getElementById("albumlistCount1").innerHTML = albumlist_count;
	document.getElementById("albumlistCount2").innerHTML = albumlist_count;
}


/*============================================
// メンバー検索結果
============================================*/
function resultMemberLoad(oj){
	res_SEARCHuser  =  oj.responseXML
	checkLogin(res_SEARCHuser);
	writeTags_SEARCHuser();
}
//onAbortで実行
function writeTags_SEARCHuser(){
	var resHTML =resultMemberTag(res_SEARCHuser);
	document.getElementById("resultUserXML").innerHTML = resHTML;
	//ページャー上下
	document.getElementById("resultUserPager1").innerHTML = resultmember_pagerhtml;
	document.getElementById("resultUserPager2").innerHTML = resultmember_pagerhtml_UP;
	//件数上下
	document.getElementById("resultUserCount1").innerHTML = resultmember_count;
	document.getElementById("resultUserCount2").innerHTML = resultmember_count;
}


/*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



sendRequest送信用関数



::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
/*====  他人のフォト  =====*/
// フォト閲覧XML取得（他人）
function getOthersPhotoViewXML(num,albumNum,userid){
	globalalbumid = albumNum;
	var data = '&sT=ajax_photolist_view&xmllength=5&albumid=' + albumNum + '&pno='+num+'&imgtype=0&id=' + userid+'&r_num='+rndNum;
	sendRequest(othersphotoViewLoad,data,'POST','/sw/s/room/photoalbum',true,true);
}

// フォト一覧XML取得（他人）
function getOthersPhotoListXML(num,albumNum,userid){
	var data = '&sT=ajax_photolist&xmllength=9&albumid=' + albumNum + '&pno='+num+'&imgtype=1&id='+userid;
	sendRequest(othersphotoListLoad,data,'GET','/sw/s/room/photoalbum',true,true);
}

//ALBUM（他人）
function getOthersAlbumListXML(num,userid){
	var data = '&sT=ajax_albumlist&xmllength=6&pno='+num+'&id='+userid+'&imgtype=1';
	sendRequest(othersalbumListLoad,data,'GET','/sw/s/room/photoalbum',true,true);
}


//メンバー検索
function getResultMemberXML(num,category,searchkeyword){
	var data = '&sT=ajax_search&category='+category+'&searchkeyword='+searchkeyword+'&xmllength=20&pno='+num+'&r_num='+rndNum;
	sendRequest(resultMemberLoad,data,'POST','/sw/s/room/search',true,true);
}


/*::: Information :::*/
function getInfo(num){
	var data = '&sT=ajax_info&xmllength=20&pno='+num;
	sendRequest(setInfoLoad,data,'GET','/sw/s/information',true,true);
}

/*::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



HTML生成リターン関数



::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::*/
/*=============【フォト閲覧】 =============*/
function othersphotoViewTag(xdoc) {
	//XML内のタグ(要素)の配列を作る
	var pagelength =	 xdoc.getElementsByTagName("pagelength");
	var pno =					 xdoc.getElementsByTagName("pno");
	var total_count =	 xdoc.getElementsByTagName("total_count");
	var lengthpage =	 xdoc.getElementsByTagName("lengthpage");
	var pno =					 Number(pno[0].firstChild.nodeValue);
	var total_count =	 Number(total_count[0].firstChild.nodeValue);
	var lengthpage =	 Number(lengthpage[0].firstChild.nodeValue);
	//ページ数
	var pagelength =	 Number(pagelength[0].firstChild.nodeValue);
	//ページング表示数
	var linkLength =	5;
	var albumid = xdoc.getElementsByTagName("albumid");
	var albumid =	 albumid[0].firstChild.nodeValue;
	var sequserid = xdoc.getElementsByTagName("sequserid");
	var sequserid =	 sequserid[0].firstChild.nodeValue;
	//Prev/Next
	var prev =				eval(pno)-1;
	var next =				eval(pno)+1;
	var prevBtn;
	var nextBtn;
	if(pno==0){
		var prevBtn = '<img src="/sw_resource/images/btns/pagerPrev_.gif" border="0">';
	}else{
		var prevBtn = vSlideR(11,11,'/sw_resource/images/btns/pagerPrev.gif','javascript:getOthersPhotoViewXML('+prev+','+albumid+',\''+sequserid+'\')','');
	}

	if(pno==pagelength-1){
		var nextBtn = '<img src="/sw_resource/images/btns/pagerNext_.gif" border="0">';
	}else{
		var nextBtn = vSlideR(11,11,'/sw_resource/images/btns/pagerNext.gif','javascript:getOthersPhotoViewXML('+next+','+albumid+',\''+sequserid+'\')','');
	}

	var item = xdoc.getElementsByTagName("item");
	var href_path = xdoc.getElementsByTagName("href_path");
	var img_path = xdoc.getElementsByTagName("img_path");
	var phototitle = xdoc.getElementsByTagName("phototitle");

	//タグを生成
	var buff = new StringBuffer();
	buff.append('<table border="0" cellspacing="0" cellpadding="0" align="center"><tr><td align="left">');
		for( i = 0 ; i < item.length ; i++ ){
		buff.append('<div class="box_100" align="center">');
		buff.append('<div class="thumb_100GRP" align="center">');
		buff.append('<a href="'+ href_path[i].firstChild.nodeValue +'">');
		buff.append('<img src="'+gCachePath+ img_path[i].firstChild.nodeValue +'" onAbort="imgReload(1,\'writeTags_CardPhotoView\');" border="0" /></a>');
		buff.append('</div>');
		buff.append('</div>');
		}
	buff.append('</td></tr></table>');
	/*///////////////////
	// ページング部分
	///////////////////*/
	/*=== 1ページしかない。（ページング不要） ===*/
	if(pagelength <= 1){
		document.getElementById("photoPrev").style.display = "none";
		document.getElementById("photoNext").style.display = "none";
	}else{
		document.getElementById("photoPrev").innerHTML = prevBtn;
		document.getElementById("photoNext").innerHTML = nextBtn;
		photoview_pagerhtml = createPager(pno,pagelength,lengthpage,linkLength,'getOthersPhotoViewXML',albumid);
	}
	var returnHtml = buff.toString();
	return returnHtml;
}

/*=============【フォト一覧】 =============*/
function othersphotoListTag(xdoc) {

	//XML内のタグ(要素)の配列を作る
	var pagelength =	 xdoc.getElementsByTagName("pagelength");
	var pno =					 xdoc.getElementsByTagName("pno");
	var total_count =	 xdoc.getElementsByTagName("total_count");
	var lengthpage =	 xdoc.getElementsByTagName("lengthpage");
	var pno =					 Number(pno[0].firstChild.nodeValue);
	var total_count =	 Number(total_count[0].firstChild.nodeValue);
	var lengthpage =	 Number(lengthpage[0].firstChild.nodeValue);
	//ページ数
	var pagelength =	 Number(pagelength[0].firstChild.nodeValue);
	//ページング表示数
	var linkLength =	9;

	var albumid = xdoc.getElementsByTagName("albumid");
	var albumid =	 albumid[0].firstChild.nodeValue;
	var sequserid = xdoc.getElementsByTagName("sequserid");
	var sequserid =	 sequserid[0].firstChild.nodeValue;

	var item = xdoc.getElementsByTagName("item");
	var href_path = xdoc.getElementsByTagName("href_path");
	var img_path = xdoc.getElementsByTagName("img_path");
	var phototitle = xdoc.getElementsByTagName("phototitle");
	var photoword = xdoc.getElementsByTagName("photoword");
	var createtime = xdoc.getElementsByTagName("createtime");
	var width = xdoc.getElementsByTagName("width");
	var height = xdoc.getElementsByTagName("height");

	//タグを生成
	var buff = new StringBuffer();
	
	if(item.length==0){
		buff.append('<div class="floatEnd"></div><div class="height3"></div>');
		buff.append('<table border="0" cellspacing="4" cellpadding="0" align="center"><tr><td align="left"><span class="s3nol">');
		buff.append('このメンバーのフォトはありません。</span></td></tr>');
		buff.append('</table>');
		buff.append('<div class="floatEnd"></div><div class="height8"></div>');
		document.getElementById("photoListPagerArea1").style.display = "none";
		document.getElementById("photoListPagerArea2").style.display = "none";
		var returnHtml = buff.toString();
		return returnHtml;
	}

	buff.append('<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%"><tr><td align="left">');
for( i = 0 ; i < item.length ; i++ ){
	buff.append('<div align="center" class="box_175">');
		
		buff.append('<table width="150" border="0" cellspacing="0" cellpadding="0" align="center">');
		buff.append('<tr><td align="left" valign="top">');
		
		buff.append('<div class="thumb_150" align="center">');
		buff.append('<a href="'+ href_path[i].firstChild.nodeValue +'">');
		buff.append('<img src="'+gCachePath+ img_path[i].firstChild.nodeValue +'" onAbort="imgReload(1,\'writeTags_CardPhoto\');" border="0" /></a>');
		buff.append('</div>');
		buff.append('</td></tr>');
		
		buff.append('<tr><td align="left">');
		buff.append('<span class="s3p"><span class="colorSlctCate">');
		buff.append(phototitle[i].firstChild.nodeValue);
		buff.append('</span></span><br>');
		buff.append('<span class="s2p">[投稿日] ');
		buff.append(createtime[i].firstChild.nodeValue);
		buff.append('</span></td></tr>');
		buff.append('</table>');
		buff.append('</div>');
	if(i!=0 && (i+1)%3==0){
	buff.append('</td></tr><tr><td>');
	}

	}
	buff.append('</td></tr></table>');
	/*///////////////////
	// ページング部分
	///////////////////*/
	photolist_count = createCount(pno,pagelength,lengthpage,total_count);
	/*=== 1ページしかない。（ページング不要） ===*/
	if(pagelength <= 1){
		document.getElementById("photoListPagerArea1").style.display = "none";
		document.getElementById("photoListPagerArea2").style.display = "none";
	}else{
		photolist_pagerhtml = createPagerR(pno,pagelength,lengthpage,linkLength,'getOthersPhotoListXML',albumid,sequserid);
	}
	var returnHtml = buff.toString();
	
	return returnHtml;
}

/*=============【アルバム一覧】　 =============*/
function othersalbumListTag(xdoc) {
	//XML内のタグ(要素)の配列を作る
	var pagelength =	 xdoc.getElementsByTagName("pagelength");
	var pno =					 xdoc.getElementsByTagName("pno");
	var total_count =	 xdoc.getElementsByTagName("total_count");
	var lengthpage =	 xdoc.getElementsByTagName("lengthpage");
	var pno =					 Number(pno[0].firstChild.nodeValue);
	var total_count =	 Number(total_count[0].firstChild.nodeValue);
	var lengthpage =	 Number(lengthpage[0].firstChild.nodeValue);
	//ページ数
	var pagelength =	 Number(pagelength[0].firstChild.nodeValue);
	//ページング表示数
	var linkLength =	9;
	
	var sequserid = xdoc.getElementsByTagName("sequserid");
	var sequserid =	 sequserid[0].firstChild.nodeValue;

	var item = xdoc.getElementsByTagName("item");
	var href_path = xdoc.getElementsByTagName("href_path");
	var img_path = xdoc.getElementsByTagName("img_path");
	var albumtitle = xdoc.getElementsByTagName("albumtitle");
	var albumword = xdoc.getElementsByTagName("albumword");
	var count = xdoc.getElementsByTagName("count");
	var createtime = xdoc.getElementsByTagName("createtime");

	var buff = new StringBuffer();
	if(item.length==0){
		buff.append('<div class="floatEnd"></div><div class="height3"></div>');
		buff.append('<table border="0" cellspacing="4" cellpadding="0" align="center"><tr><td align="left"><span class="s3nol">');
		buff.append('このメンバーのフォトはありません。</span></td></tr>');
		buff.append('</table>');
		buff.append('<div class="floatEnd"></div><div class="height8"></div>');
		document.getElementById("albumlistPagerArea1").style.display = "none";
		document.getElementById("albumlistPagerArea2").style.display = "none";
		var returnHtml = buff.toString();
		return returnHtml;
	}

//タグを生成
	buff.append('<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%"><tr><td align="left">');
	for( i = 0 ; i < item.length ; i++ ){
	buff.append('<div align="center" class="box_175">');
		
		buff.append('<table width="174" height="164" border="0" cellspacing="0" cellpadding="0">');
		buff.append('<tr><td>');
		buff.append('<img src="/sw_resource/images/mainArea/setting/albumBg1.gif" onAbort="imgReload(3,\'writeTags_CardAlbum\');" border="0" alt="" width="10" height="164" />');
		buff.append('</td><td class="albumListBg" align="center" valign="middle">');
		buff.append('<a href="'+ href_path[i].firstChild.nodeValue +'">');
		buff.append('<img src="'+gCachePath+ img_path[i].firstChild.nodeValue +'" onAbort="imgReload(3,\'writeTags_CardAlbum\');" border="0" /></a>');
		buff.append('</td></tr>');
		
		buff.append('<tr><td align="left" valign="top" colspan="2">');
		buff.append('<div class="overflow_174">');
		buff.append('<div class="height5"></div>');
		buff.append('<span class="s3p"><a href="'+ href_path[i].firstChild.nodeValue +'" class="itemLink">');
		buff.append(albumtitle[i].firstChild.nodeValue);
		buff.append('</a></span><br>');
		buff.append('<span class="s10">[枚数] ');
		buff.append(count[i].firstChild.nodeValue);
		buff.append('枚<br>[作成日] ');
		buff.append(createtime[i].firstChild.nodeValue);
		buff.append('<br>');
		buff.append(albumword[i].firstChild.nodeValue + '</span>');
		buff.append('</div>');
		buff.append('<div class="height5"></div>');
		buff.append('</td></tr></table>');

	buff.append('</div>');
		if(i==2){
		buff.append('</td></tr><tr><td>');
		}
	}
	buff.append('</td></tr></table>');
	/*///////////////////
	// ページング部分
	///////////////////*/
	albumlist_count = createCount(pno,pagelength,lengthpage,total_count);
	/*=== 1ページしかない。（ページング不要） ===*/
	if(pagelength <= 1){
	document.getElementById("albumlistPagerArea1").style.display = "none";
	document.getElementById("albumlistPagerArea2").style.display = "none";
	}else{
		albumlist_pagerhtml = createPagerR(pno,pagelength,lengthpage,linkLength,'getOthersAlbumListXML',sequserid);
	}
	var returnHtml = buff.toString();
	
	return returnHtml;
}


/*=============【メンバー検索結果】=============*/
function resultMemberTag(xdoc) {
	//XML内のタグ(要素)の配列を作る
	var pagelength =	 xdoc.getElementsByTagName("pagelength");
	var pno =					 xdoc.getElementsByTagName("pno");
	var total_count =	 xdoc.getElementsByTagName("total_count");
	var lengthpage =	 xdoc.getElementsByTagName("lengthpage");
	var pno =					 Number(pno[0].firstChild.nodeValue);
	var total_count =	 Number(total_count[0].firstChild.nodeValue);
	var lengthpage =	 Number(lengthpage[0].firstChild.nodeValue);
	//ページ数
	var pagelength =	 Number(pagelength[0].firstChild.nodeValue);
	//ページング表示数
	var linkLength =	9;

	var searchcategoryid =	xdoc.getElementsByTagName("searchcategoryid");
	var searchcategoryid =	searchcategoryid[0].firstChild.nodeValue;
	var searchkeyword =	xdoc.getElementsByTagName("searchkeyword");
	var searchkeyword =	searchkeyword[0].firstChild.nodeValue;
	if(searchkeyword == '&nbsp;'){
		searchkeyword = "";
	}
	if(searchcategoryid == '&nbsp;'){
		searchcategoryid = "";
	}

	var item = xdoc.getElementsByTagName("item");
	var href_path = xdoc.getElementsByTagName("href_path");
	var img_path = xdoc.getElementsByTagName("img_path");
	var nickname = xdoc.getElementsByTagName("nickname");
	var myintroduction = xdoc.getElementsByTagName("myintroduction");

	if(item.length==0){
		var nonehtml = '<div class="floatEnd"></div><div class="height3"></div><table border="0" cellspacing="4" cellpadding="0" align="center">'
		nonehtml += '<tr><td align="left"><span class="s3nol">申し訳ありません。検索結果は0件です。</span></td></tr>'
		nonehtml += '</table>'
		nonehtml += '<div class="floatEnd"></div><div class="height8"></div>'
	document.getElementById("resultUserPagerArea1").style.display = "none";
	document.getElementById("resultUserPagerArea2").style.display = "none";
		return nonehtml;
	}
	//タグを生成
	var buff = new StringBuffer();
		for( i = 0 ; i < item.length ; i++ ){
			buff.append('<div class="floatEnd"></div><div class="height5"></div>');
			
			buff.append('<table width="566" border="0" cellspacing="0" cellpadding="0">');
			buff.append('<tr><td width="70" align="left" valign="top">');
			buff.append('<div class="thumb_54" align="center"><a href="'+ href_path[i].firstChild.nodeValue +'">');
			buff.append('<img src="'+gCachePath+ img_path[i].firstChild.nodeValue +'" border="0" onAbort="imgReload(0,\'writeTags_SEARCHuser\');" /></a></div>');
			buff.append('</td>');
			
			buff.append('<td width="485" align="left" valign="top"><div class="overflow_485">');
			buff.append('<a href="'+ href_path[i].firstChild.nodeValue +'" class="itemLink"><span class="s3">');
			buff.append(nickname[i].firstChild.nodeValue +'</span></a><br>');
			buff.append('<span class="s3">');
			buff.append(myintroduction[i].firstChild.nodeValue);
			buff.append('</span></div></td></tr></table>');
			
			buff.append('<div class="floatEnd"></div><div class="height3"></div>');
			if(i==item.length-1){
			buff.append('');
			}else{
			buff.append('<div class="dotLine"></div>');
			}
		}
	/*///////////////////
	// ページング部分
	///////////////////*/
	resultmember_count = createCount(pno,pagelength,lengthpage,total_count);
	/*=== 1ページしかない。（ページング不要） ===*/
	if(pagelength <= 1){
		document.getElementById("resultUserPagerArea1").style.display = "none";
		document.getElementById("resultUserPagerArea2").style.display = "none";
		resultmember_pagerhtml='';
	}else{
		resultmember_pagerhtml = createPagerR(pno,pagelength,lengthpage,linkLength,'getResultMemberXML',searchcategoryid,searchkeyword);
		resultmember_pagerhtml_UP = createPagerR_UP(pno,pagelength,lengthpage,linkLength,'getResultMemberXML',searchcategoryid,searchkeyword);
	}
	var returnHtml = buff.toString();
	return returnHtml;
}




/*=============【information】 =============*/
function infolistTag(xdoc) {
	//XML内のタグ(要素)の配列を作る
	var pagelength =	 xdoc.getElementsByTagName("pagelength");
	var pno =					 xdoc.getElementsByTagName("pno");
	var total_count =	 xdoc.getElementsByTagName("total_count");
	var lengthpage =	 xdoc.getElementsByTagName("lengthpage");
	var pno =					 Number(pno[0].firstChild.nodeValue);
	var total_count =	 Number(total_count[0].firstChild.nodeValue);
	var lengthpage =	 Number(lengthpage[0].firstChild.nodeValue);
	//ページ数
	var pagelength =	 Number(pagelength[0].firstChild.nodeValue);
	//ページング表示数
	var linkLength =	9;


	var item = xdoc.getElementsByTagName("item");
	var kind = xdoc.getElementsByTagName("kind");
	var title = xdoc.getElementsByTagName("title");
	var href_path = xdoc.getElementsByTagName("href_path");
	var createtime = xdoc.getElementsByTagName("createtime");
	
if(item.length==0){
	var nonehtml = '<div class="floatEnd"></div><div class="height3"></div>';
	nonehtml += '<table border="0" cellspacing="4" cellpadding="0" align="center"><tr><td align="left"><span class="s3nol">現在インフォメーションは0件です。</span></td></tr>';
	nonehtml += '</table>';
	nonehtml += '<div class="floatEnd"></div><div class="height8"></div>';
	document.getElementById("resultPagerArea1").style.display = "none";
	document.getElementById("resultPagerArea2").style.display = "none";
	return nonehtml
}

	//タグを生成
	var buff = new StringBuffer();
	buff.append('<table border="0" cellspacing="0" cellpadding="2" align="left" width="570">');
		for( i = 0 ; i < item.length ; i++ ){
buff.append('<tr><td align="right" width="18">');
buff.append('<a href="'+ href_path[i].firstChild.nodeValue +'">');
buff.append('<img src="/sw_resource/images/mainArea/info/icon_'+ kind[i].firstChild.nodeValue +'.gif" onAbort="imgReload(0,\'writeTags_Infolist\');" border="0" />');
buff.append('</a></td>');

buff.append('<td width="445" align="left"><span class="s3nol">');
buff.append('<a href="' + href_path[i].firstChild.nodeValue + '" class="class="infoLink">' +  title[i].firstChild.nodeValue + '</a><br />');

buff.append('</td>');
		
buff.append('<td align="right" width="80" class="s2nol">');
buff.append(createtime[i].firstChild.nodeValue);
buff.append('&nbsp;</td></tr>');

if(i < item.length-1){
buff.append('<tr><td align="left" colspan="3">');
buff.append('<div class="floatEnd"></div><div class="dotLine"></div>');
buff.append('</td></tr>');
}

	}
	buff.append('</table>');

	/*///////////////////
	// ページング部分
	///////////////////*/
	resultInfo_count = createCount(pno,pagelength,lengthpage,total_count);
	/*=== 1ページしかない。（ページング不要） ===*/
	if(pagelength <= 1){
	document.getElementById("resultPagerArea1").style.display = "none";
	document.getElementById("resultPagerArea2").style.display = "none";
	}else{
	document.getElementById("resultPagerArea1").style.display = "block";
	document.getElementById("resultPagerArea2").style.display = "block";
		resultInfo_pagerhtml = createPagerR(pno,pagelength,lengthpage,linkLength,'getInfo');
		resultInfo_pagerhtml_UP = createPagerR_UP(pno,pagelength,lengthpage,linkLength,'getInfo');
	}
	var returnHtml = buff.toString();
	return returnHtml;
}

