//2005.10.11に追加
function submit_check(){
ngwd = new Array("@" , "," , "?");
ngwd_len = ngwd.length;
str = document.form.query.value;

	for(i=0; i<ngwd_len; i++){
		if (str.indexOf(ngwd[i],0) != -1) {
		alert("There are one or more strings that cannot be searched in the keywords you typed in.Please check your keywords.");
		return false;
		}
	}

	if(str.length < 3){
		alert("\nPlease input three or more characters.");
		return false;
	}
	
	//2007.03.23 add
	// 2バイトであれば、漢字なのでエラーにする
	for (var i = 0; i < str.length; i++) {
		var c = str.charCodeAt(i);
		// Shift_JIS: 0x0 〜 0x80, 0xa0 , 0xa1 〜 0xdf , 0xfd 〜 0xff 
		// Unicode : 0x0 〜 0x80, 0xf8f0, 0xff61 〜 0xff9f, 0xf8f1 〜 0xf8f3 
		if (!(c >= 0x0 && c < 0x81) || (c == 0xf8f0) || (c >= 0xff61 && c < 0xffa0) || (c >= 0xf8f1 && c < 0xf8f4)){
			alert("\nPlease input alphabet characters.");
			return false;
		}
	}
return true;
}
