function hyouji(v){
    nth0=v['nth'];
    url='http://www.raku-yah.com/dataget.php?nth='+v['nth']+'&sort='+v['sort']+'&keyWord='+v['keyWord']+'&minPrice='+v['minPrice']+'&maxPrice='+v['maxPrice']+'&rast='+v['rast']+'&yast='+v['yast']+'&acst='+v['acst']+'&bist='+v['bist']+'&most='+v['most']+'&valst='+v['valst']+'&pnrakuten='+v['pnrakuten']+'&pnyahoo='+v['pnyahoo']+'&pnaccess='+v['pnaccess']+'&pnbidders='+v['pnbidders']+'&pnmoshimo='+v['pnmoshimo']+'&pnvalue='+v['pnvalue']+'&category='+v['category']+'&catr='+v['catr']+'&catv='+v['catv']+'&callback=rakuya';
    jsondata=new JSONscriptRequest(url);
    jsondata.buildScriptTag();
    jsondata.addScriptTag();
    document.getElementById('list2'+nth0).innerHTML='<div id="indi"><img src="http://www.raku-yah.com/images/load.gif"></div>';
}

function rakuya(data) {
    document.getElementById('list'+nth0).innerHTML='';
    rd=data.value;
    document.getElementById('list'+nth0).innerHTML=rd;
    jsondata.removeScriptTag();
}

function submit(){
    searchurl='http://www.raku-yah.com/search';
    if(document.getElementById('keyWord').value){
        key=document.getElementById('keyWord').value.replace("/","_");
        searchurl+='/k_'+key;
    }
    if(document.getElementById('sort').value){
        searchurl+='/s_'+document.getElementById('sort').value;
    }
    if(document.getElementById('minPrice').value){
        searchurl+='/l_'+document.getElementById('minPrice').value;
    }

    if(document.getElementById('maxPrice').value){
        searchurl+='/h_'+document.getElementById('maxPrice').value;
    }

    document.location=searchurl;
}

