function json_searchNearly( obj_jmap2, gmap_frame_id, gmap_obj_id, user_id_rec )
{
	this.obj_jmap2			= obj_jmap2;
	this.gmap_frame_id		= gmap_frame_id;
	this.gmap_obj_id		= gmap_obj_id;
	this.user_id_rec		= user_id_rec;

	this.containerBaseName	= 'search_nearly_container_base_' + user_id_rec;

	this.lang				= 'jp';

	this.document_main		= window.document;
	this.bool_init			= false;
	this.bool_setOpts		= false;
	this.bool_searching 	= false;

	this.iframeId			= 'container_nearly_search_iframe_' + user_id_rec;
	this.iframeInitHtml		= this.getIFrameHtml( '/null.htm' );

	this.containerBase = this.document_main.getElementById( this.containerBaseName );
	this.containerBase.style.display	= "none";
	this.containerBase.style.visibility	= "hidden";
	this.containerBase.style.overflow	= "hidden";
	xInnerHtml( this.containerBase, this.iframeInitHtml );
}

json_searchNearly.prototype.getIFrameHtml = function( src )
{
	return "<div><IFRAME id='" + this.iframeId + "' name='" + this.iframeId + "' src='" + src + "'></IFRAME></div>";
}

json_searchNearly.prototype.init = function()
{
	this.bool_init	= true;
}

// search Opts
json_searchNearly.prototype.setSearchOpts_circle = function( center, radius )
{
	this.bool_setOpts = true;
	this.type_search  = 'circle';
	this.center		  = center;
	this.radius		  = radius;
}

// Marker¤«¤é¤ÎCirlce¸¡º÷
json_searchNearly.prototype.search_circle = function( url, marker_user_id, marker_type_id, marker_uniq_id, radius )
{
	if( !this.obj_jmap2.boolReadyMap(this.gmap_frame_id, this.gmap_obj_id) ){ return; }
	if( this.bool_searching ){ return; }

	if( this.bool_setOpts == false){
		var obj_jmarker = this.obj_jmap2.getJMarker( this.gmap_frame_id, this.gmap_obj_id, marker_user_id, marker_type_id, marker_uniq_id);
		if( obj_jmarker ){
			this.init();
			this.setSearchOpts_circle( obj_jmarker.getPoint(), radius );
		}
	}

	if(		this.bool_init == false
		||	this.bool_setOpts == false
	){
		return;
	}

	this.url = url;

	{
		this.bool_searching = true;

		var url = this.url;

		url += "/gmap_frame_id-" + this.gmap_frame_id;
		url += "/gmap_obj_id-" + this.gmap_obj_id;
		url += "/user_id_rec-" + this.user_id_rec;
		url += "/search-clear";

		if( this.type_search == 'circle' ){
			url += "/req_search_circle-on";
			url += "/lat-" + this.center.lat();
			url += "/lng-" + this.center.lng();
			url += "/radius-" + this.radius;
		}

		xInnerHtml( this.containerBase, this.getIFrameHtml(url) );

		// div_searching
		this.div_searching = xGetElementById( 'nearly_' + this.user_id_rec );
		if( this.div_searching ){
			showDivBlock( this.div_searching );
			xInnerHtml( this.div_searching, "<img src='/img_pitt/loading/small.gif'> <font color=blue>Searching...</font><button onclick='obj_search_nearly_" + this.user_id_rec + ".cancel();'>Cancel</button>" );
		}

		// getAcc
//		var acc = new JKL.ParseXML.DOM( getAccUrl() );
//		acc.async( testacc );
//		acc.parse();
	}
}

json_searchNearly.prototype.cancel = function()
{
	this.bool_searching = false;

	if( this.div_searching ){
		hideDivBlock( this.div_searching );
	}

	xInnerHtml( this.containerBase, this.iframeInitHtml );
}

