function make_frame(){
	var _send_str = '';
	//_fp0 緯度
	_send_str = _send_str + _fp0;
	//_fp1 タイトル
	_send_str = _send_str + ',';
	_send_str = _send_str + _fp1;
	//id fpoint指定	緯度/経度/倍率
	_send_str = _send_str + ',';
	if(document.getElementById("fpoint")){
		_send_str = _send_str + document.getElementById("fpoint").innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//id ftitle指定	名前
	_send_str = _send_str + ',';
	if(document.getElementById("ftitle")){
		_send_str = _send_str + document.getElementById("ftitle").innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//id fphoto指定	緯度/経度/倍率
	_send_str = _send_str + ',';
	if(document.getElementById("fphoto")){
		_photo_str=document.getElementById("fphoto").innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
		if(!(_photo_str.match(/:/))){
			if(_photo_str.match(/^\//)){
				_photo_str=location.protocol + "//" + location.host + _photo_str;
			}else{
				_now_url=location.href.replace(/:\/\/\//g, ":@@@").replace(/:\/\//g, ":@@").replace(/\/[^\/]+$/g, "/").replace(/:@@@/g, ":///").replace(/:@@/g, "://")
				_photo_str=_now_url + _photo_str;
			}
		}
		_send_str = _send_str + _photo_str;
	}
	//id focus指定
	if(document.getElementById("focus")){
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementById("focus").innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//_fp2 タグ指定
	if(_fp2!=""){
		_fp2=_fp2.replace(/</g, "").replace(/>/g, "");
		for (_icount = 0; _icount < document.getElementsByTagName(_fp2).length; _icount++) {
			_send_str = _send_str + ',';
			_send_str = _send_str + document.getElementsByTagName(_fp2)[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
		}
	}
	//_fp3 タグ指定
	if(_fp3!=""){
		_fp3=_fp3.replace(/</g, "").replace(/>/g, "");
		for (_icount = 0; _icount < document.getElementsByTagName(_fp3).length; _icount++) {
			_send_str = _send_str + ',';
			_send_str = _send_str + document.getElementsByTagName(_fp3)[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
		}
	}
	//_fp4 タグ指定
	if(_fp4!=""){
		_fp4=_fp4.replace(/</g, "").replace(/>/g, "");
		for (_icount = 0; _icount < document.getElementsByTagName(_fp4).length; _icount++) {
			_send_str = _send_str + ',';
			_send_str = _send_str + document.getElementsByTagName(_fp4)[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
		}
	}
	//タイトル
	_send_str = _send_str + ',';
	_send_str = _send_str + document.title.replace(/<[^>]+>/g, "").replace(/"/g, "");
	//h1
	for (_icount = 0; _icount < document.getElementsByTagName("h1").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("h1")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//h2
	for (_icount = 0; _icount < document.getElementsByTagName("h2").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("h2")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//h3
	for (_icount = 0; _icount < document.getElementsByTagName("h3").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("h3")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//h4
	for (_icount = 0; _icount < document.getElementsByTagName("h4").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("h4")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//h5
	for (_icount = 0; _icount < document.getElementsByTagName("h5").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("h5")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//h6
	for (_icount = 0; _icount < document.getElementsByTagName("h6").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("h6")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//
	//strong
	for (_icount = 0; _icount < document.getElementsByTagName("strong").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("strong")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	//
	//b
	for (_icount = 0; _icount < document.getElementsByTagName("b").length; _icount++) {
		_send_str = _send_str + ',';
		_send_str = _send_str + document.getElementsByTagName("b")[_icount].innerHTML.replace(/<[^>]+>/g, "").replace(/"/g, "");
	}
	if (window.navigator.userAgent.match(/Firefox/)) {
		_send_str=encodeURI(_send_str);
	}else{
		_send_str=_send_str.substring(0 ,500)
	}
	_send_str='<iframe src="http://prog47.blogdns.org/focusmap/focus-l.html?' + _send_str + '" height="292" width="270" scrolling="no" frameborder="no"></iframe>';
	//alert(_send_str);
	//
	document.getElementById("FocusMap").innerHTML=_send_str;
}

var _interval_id;
var _load = 0;
window.onload = function(){ _load = 1; }
var _wait = 0;
//document.getElementById("FocusMap").innerHTML='<small>'+_wait+'</small>';

function check_load(){
	if((_load == 1)||(_wait > 10)){
		make_frame();
		clearInterval(_interval_id);
	}else{
		_wait = _wait + 1;
		//document.getElementById("FocusMap").innerHTML='<small>'+_wait+'</small>';
	}
}
_interval_id=setInterval("check_load();", 1000);
//setTimeout("make_frame();", 1000);
