// Copyright(c) CyberMap Japan Corp. All rights reserved

function MapionWDListParam(mwd,hV,sV,s_index,e_index,page){
	this.mm=mwd;
	this.hit=hV;
	this.start=sV;
	this.eIndex=e_index;
	this.sIndex=(this.eIndex>0)? s_index : 0;
	this.page=page;
	this.num=_poiNums;
	this.currentPOI=null;
};



MapionWDListParam.prototype.parse=function(){
	var mwdlp=this;
/*
	document.getElementById("start_value").firstChild.data=mwdlp.sIndex;
	document.getElementById("end_value").firstChild.data=mwdlp.eIndex;
	document.getElementById("total_value").firstChild.data=mwdlp.hit;
*/
	if(mwdlp.mm.sIndex) mwdlp.mm.sIndex.firstChild.nodeValue=mwdlp.sIndex;
	if(mwdlp.mm.eIndex) mwdlp.mm.eIndex.firstChild.nodeValue=mwdlp.eIndex;
	if(mwdlp.mm.hit) mwdlp.mm.hit.firstChild.nodeValue=mwdlp.hit;

	if(!mwdlp.mm.next && !mwdlp.mm.back) return;
	if(parseInt(mwdlp.eIndex) < parseInt(mwdlp.hit) ){
		mwdlp.mm.next.style.visibility="visible";
		mwdlp.mm.next.onclick=function(e){/*mwdlp.mm.makeQuery(mwdlp.start+1);
			mwdlp.mm.getLBSPoi();
*/		};
	}
	else{
		mwdlp.mm.next.style.visibility="hidden";
	}
	if(parseInt(mwdlp.start)>1){
		mwdlp.mm.back.style.visibility="visible";
		mwdlp.mm.back.onclick=function(e){
/*			mwdlp.mm.makeQuery(mwdlp.start-1);
			mwdlp.mm.getLBSPoi();
*/		};
	}
	else{
		mwdlp.mm.back.style.visibility="hidden";
	}
};
