function getFile(fName)
{
xmlHttp.open("GET",fName);
xmlHttp.onreadystatechange = function() {
if(xmlHttp.readyState == 4 && xmlHttp.status == 200) {　 
document.getElementById("images").innerHTML = xmlHttp.responseText;
}else{
document.getElementById("images").innerHTML = "Loading...";　 
}
}
xmlHttp.send(null);
}

function getWord(fName)
{
xmlHttp.open("GET",fName);
xmlHttp.onreadystatechange = function() {
if(xmlHttp.readyState == 4 && xmlHttp.status == 200) {　 
document.getElementById("burst").innerHTML = xmlHttp.responseText;
}else{
document.getElementById("burst").innerHTML = "Loading...";　 
}
}
xmlHttp.send(null);
}


function next_pg(pass){
	str = document.soushin.key.value.replace(/^(\s|　)+|(\s|　)+$/g, "").replace(/ +/g,' ').replace(/　+/g,' ');
	if(str == "" || str == " " || str == "　"){
		window.alert("検索キーワードを入力して下さい。");
		document.soushin.key.focus();
		return false;
	}

	document.soushin.key.value = str;
	document.soushin.target = "_self";
	document.soushin.method = "get";
	document.soushin.action = pass + "php/dynamic/search.php";
	document.forms['soushin'].submit();
}

