function SearchSubmit(obj) {
	var sValue;

	if(inputCheck(obj.keyword.value)) {
		alert('Please enter single-byte English characters only.');
		return;
	}

	sValue = escape(obj.keyword.value);
	if(obj.target[0].checked) {
		window.location.href = "http://www.nni.nikkei.co.jp/search?NS-search-page=results&NS-tocstart-pat=/nk/start.pat&NS-tocrec-pat=/nk/rec.pat&NS-tocend-pat=/nk/end.pat&NS-max-records=20&NS-search-type=NS-boolean-query&NS-sort-by=-PubDate&NS-collection=TNKS&NS-collection=TNW&NS-query=" + sValue;
	}
	else if(obj.target[1].checked) {
		window.location.href ="http://www.nni.nikkei.co.jp/CF/AC/CW/selectr.cfm?nmcd="+sValue+"&X01=1";
	}
	else {
		return;
	}
}
// input ok
function inputCheck(str){
	okstr = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-^\\@[;:],./!"#$%&\'()=~|`{+*}<>?_ ';
	for (i=0;i<str.length;i++){
		if (okstr.indexOf(str.charAt(i)) == -1) return true;;
	}
	return false;
}

