function strcheck(){
	var str="";
	str = replaceText(document.getElementsByName("customer[l_name]")[0].value);
	document.getElementsByName("customer[l_name]")[0].value = str;
	str = replaceText(document.getElementsByName("customer[f_name]")[0].value);
	document.getElementsByName("customer[f_name]")[0].value = str;
	str = replaceText(document.getElementsByName("customer[mailaddress]")[0].value);
	document.getElementsByName("customer[mailaddress]")[0].value = str;

	document.forms[0].submit();
	return true;
}
function replaceText(value){
	var ng_chars = new Array();
	ng_chars["9312"] = "1";		//?
	ng_chars["9313"] = "2";		//?
	ng_chars["9314"] = "3";		//?
	ng_chars["9315"] = "4";		//?
	ng_chars["9316"] = "5";		//?
	ng_chars["9317"] = "6";		//?
	ng_chars["9318"] = "7";		//?
	ng_chars["9319"] = "8";		//?
	ng_chars["9320"] = "9";		//?
	ng_chars["9321"] = "10";	//?
	ng_chars["8544"] = "1";		//?
	ng_chars["8545"] = "2";		//?
	ng_chars["8546"] = "3";		//?
	ng_chars["8547"] = "4";		//?
	ng_chars["8548"] = "5";		//?
	ng_chars["8549"] = "6";		//?
	ng_chars["8550"] = "7";		//?
	ng_chars["8551"] = "8";		//?
	ng_chars["8552"] = "9";		//?
	ng_chars["8553"] = "10";	//?
	ng_chars["12849"] = "（株）";	//?
	ng_chars["12850"] = "（有）";	//?
	
	var str="";
	for (iCount=0 ; iCount<value.length ; iCount++){
		var flg = true;
		iCode = value.charCodeAt(iCount);
		for(key in ng_chars){
			if ((String(iCode) == key)){
				str += ng_chars[key];
				flg = false;
				break;
			}
		}
		if(flg){
			str += value.substr(iCount, 1);
		}
	}
	return str;
}
