// JavaScript Document

<!--
function submit_chk(){	

//2009/07/30 hamamatsu 左右両側スペースを削除
var W_str = document.getElementById('WORD').value;
var trimstr =W_str.replace(/^[ 　]+/,"").replace(/[ 　]+$/,"");

//	if(document.getElementById('WORD').value == "" || document.getElementById('WORD').value == "　" || document.getElementById('WORD').value == " "){
	if(trimstr == ""){
		return false;
	}	
//2009/07/30 hamamatsu 左右両側スペースを削除

	//2009/07/24 hamamatsu htmlﾀｸﾞ文字チェック---start---
	if(!Java_CheckHtmlText(document.getElementById('WORD').value)){
		alert("Error: 不正文字が入力されています！");
		document.MyForm.WORD.focus();
		return false;
	}
	//2009/07/24 hamamatsu htmlﾀｸﾞ文字チェック---end---	
	
	//2009/07/27 hamamatsu ラジオボタンへと仕様変更--start--
	var objRadio = document.getElementsByName("Mode");
	for(i=0;i<3;i++){
		if(objRadio[i].checked==true){
			if(i==1){
				document.MyForm.action = "ten_list.php";
				return true;
			}else{
				document.MyForm.action = "ten_kensaku_list.php";
				return true;
			}
		}
	}
//	if(eval(document.MyForm.Mode.value)===1){
//		document.MyForm.action = "ten_list.php";
//		document.MyForm.submit();
//	}else{	
//		document.MyForm.action = "ten_kensaku_list.php";	
//		document.MyForm.submit();
//	}
	//2009/07/27 hamamatsu ラジオボタンへと仕様変更-- end --
}
//20090716 検索押下時、検索modeで呼ぶphpの切り替え hamamatsu --start--
function php_change(){	

//2009/07/30 hamamatsu 左右両側スペースを削除
var W_str = document.getElementById('WORD').value;
var trimstr =W_str.replace(/^[ 　]+/,"").replace(/[ 　]+$/,"");

//	if(document.getElementById('WORD').value == "" || document.getElementById('WORD').value == "　" || document.getElementById('WORD').value == " "){
	if(trimstr == ""){
		return false;
	}	
//2009/07/30 hamamatsu 左右両側スペースを削除
	
	//2009/07/24 hamamatsu htmlﾀｸﾞ文字チェック---start---
	if(!Java_CheckHtmlText(document.getElementById('WORD').value)){
		alert("Error: 不正文字が入力されています！");
		document.MyForm.WORD.focus();
		return false;
	}
	//2009/07/24 hamamatsu htmlﾀｸﾞ文字チェック---end---
	
	//2009/07/27 hamamatsu ラジオボタンへと仕様変更--start--
	var objRadio = document.getElementsByName("Mode");
	for(i=0;i<3;i++){
		if(objRadio[i].checked==true){
			if(i==1){
				document.MyForm.action = "ten_list.php";
				document.MyForm.submit();
			}else{
				document.MyForm.action = "ten_kensaku_list.php";
				document.MyForm.submit();
			}
		}
	}	
//	if(eval(document.MyForm.Mode.value)===1){
//		document.MyForm.action = "ten_list.php";
//		document.MyForm.submit();
//	}else{	
//		document.MyForm.action = "ten_kensaku_list.php";	
//		document.MyForm.submit();
//	}
	//2009/07/27 hamamatsu ラジオボタンへと仕様変更-- end --
}
//20090716 検索押下時、検索modeで呼ぶphpの切り替え hamamatsu ---end---
-->
