';
div = document.getElementById("widget_sample");
// div.innerHTML = html;
var script1 = document.createElement("script");
script1.src = "/js/r500m_blog_widget.php?wid=rae31fc5-aaea-44e7-8c1b-3f22505fe7e2&st=" + st;
// script1.src = "http://r500m.com/js/r500m_blog_widget.php?wid=rae31fc5-aaea-44e7-8c1b-3f22505fe7e2&st=" + st;
document.body.appendChild(script1);
}
function getPrefs_area(){
jah("/lib/area/prefs.php?date=9882","area_prefs");
}
function reDrawCities(pref){
if(pref.value){
reDrawWidget_cw(document);
jah("/lib/area/cities.php?date=6986&pref=" + encodeURIComponent(pref.value) ,"area_prefs" );
}
}
function getPrefs(){
jah("/lib/station/prefs.php?date=8654","station_prefs");
tgt = document.getElementById("post_topic_");
tgt.style.display="none";
tgt = document.getElementById("reset_pref");
tgt.style.display="none";
}
function reDrawLines(pref){
if(pref){
jah("/lib/station/lines.php?date=961&pref=" + pref.value ,"station_prefs" );
tgt = document.getElementById("reset_pref");
tgt.style.display="block";
}
}
function reDrawStations(line){
selected = encodeURIComponent(document.getElementById("station_selected").value);
if(line){
// alert("/lib/station/stations.php?date=18285&line=" + line.value + "&selected=" + selected);
jah("/lib/station/stations.php?date=12038&line=" + line.value + "&selected=" + selected,"station_prefs" );
tgt = document.getElementById("post_topic_");
tgt.style.display="block";
}
}
function reDrawWidget_cw(obj){
// alert("#");
reDrawWidget(obj);
return null;
var elm = document.getElementById("STATION_SELECT");
if(elm){
val = elm.value;
//alert(val);
if(val){
reDrawWidget(elm);
}
}
}
function reDrawWidget(station){
// alert (station.value);
//alert("test");
var st = null;
var px = null;
var site_title = encodeURIComponent("最新地域情報・街ネタの一覧・検索 R500m");
// 駅名・地名の判定
var elm = document.getElementsByName("center_radio");
elm_val = "";
for(var i=0; i