<!--
function StringChange(txtCD){

	if (txtCD == 1) {var str = document.form.company.value;}
	if (txtCD == 2) {var str = document.form.name.value;}
	if (txtCD == 3) {var str = document.form.addr.value;}
	if (txtCD == 4) {var str = document.form.tel.value;}
	if (txtCD == 5) {var str = document.form.email.value;}
	if (txtCD == 6) {var str = document.form.naiyo.value;}

		//検索文字列を変換するための変換文字列配列
	var Kana1 = new Array("ｶﾞ","ｷﾞ","ｸﾞ","ｹﾞ","ｺﾞ","ｻﾞ","ｼﾞ","ｽﾞ","ｾﾞ","ｿﾞ","ﾀﾞ","ﾁﾞ",
		"ﾂﾞ","ﾃﾞ","ﾄﾞ","ﾊﾞ","ﾋﾞ","ﾌﾞ","ﾍﾞ","ﾎﾞ","ﾊﾟ","ﾋﾟ","ﾌﾟ","ﾍﾟ","ﾎﾟ","ｦ","ｧ",
		"ｨ","ｩ","ｪ","ｫ","ｬ","ｭ","ｮ","ｯ","ｰ","ｱ","ｲ","ｳ","ｴ","ｵ","ｶ","ｷ","ｸ","ｹ",
		"ｺ","ｻ","ｼ","ｽ","ｾ","ｿ","ﾀ","ﾁ","ﾂ","ﾃ","ﾄ","ﾅ","ﾆ","ﾇ","ﾈ","ﾉ","ﾊ","ﾋ",
		"ﾌ","ﾍ","ﾎ","ﾏ","ﾐ","ﾑ","ﾒ","ﾓ","ﾔ","ﾕ","ﾖ","ﾗ","ﾘ","ﾙ","ﾚ","ﾛ","ﾜ","ﾝ");
	var Kana2 = new Array("ガ","ギ","グ","ゲ","ゴ","ザ","ジ","ズ","ゼ","ゾ","ダ","ヂ",
		"ヅ","デ","ド","バ","ビ","ブ","ベ","ボ","パ","ピ","プ","ペ","ポ","ヲ","ァ",
		"ィ","ゥ","ェ","ォ","ャ","ュ","ョ","ッ","ー","ア","イ","ウ","エ","オ","カ",
		"キ","ク","ケ","コ","サ","シ","ス","セ","ソ","タ","チ","ツ","テ","ト","ナ",
		"ニ","ヌ","ネ","ノ","ハ","ヒ","フ","ヘ","ホ","マ","ミ","ム","メ","モ","ヤ",
		"ユ","ヨ","ラ","リ","ル","レ","ロ","ワ","ン");
	while(str.match(/[ｦ-ﾝ]/)){                              //半角カタカナがある場合
		for(var i = 0; i < Kana1.length; i++){
			str = str.replace(Kana1[i], Kana2[i]);  //文字列置換
		}
	}
	while (str.match([''])) {str = str.replace('','(株)')}
	while (str.match([''])) {str = str.replace('','(有)')}


	if (txtCD == 1) {document.form.company.value = str;}
	if (txtCD == 2) {document.form.name.value = str;}
	if (txtCD == 3) {document.form.addr.value = str;}
	if (txtCD == 4) {document.form.tel.value = str;}
	if (txtCD == 5) {document.form.email.value = str;}
	if (txtCD == 6) {document.form.naiyo.value = str;}

}
function myKeyPress( name ){
	// Enterキーかどうか
	if ( event.keyCode == 0x0d ) {
		var oNext;
		// どのテキストボックスか特定
		if ( name == "company" ) {
			document.form.name.focus();
		} else if ( name == "name" ) {
			document.form.zip.focus();
		} else if ( name == "zip") {
			document.form.pref.focus();
		} else if ( name == "pref" ) {
			document.form.addr.focus();
		} else if ( name == "addr" ) {
			document.form.tel.focus();
		} else if ( name == "tel" ) {
			document.form.email.focus();
		} else if ( name == "email" ) {
			document.form.kibo[0].focus();
		} else if ( name == "kibo" ) {
			document.form.naiyo.focus();
		} else if ( name == "naiyo" ) {
			document.form.company.focus();
		}
		event.Returnvalue = false;
		return false;
	}
	return true;
}
function mySubmit(){
	var mail_at, mail_dot;
	mail_at = document.form.email.value.indexOf("@", 0);
	mail_dot = document.form.email.value.indexOf(".", mail_at);
	if (document.form.company.value.length == 0) {
		alert('会社名は必ず入力して下さい。');
	} else if (document.form.name.value.length == 0) {
		alert('お名前は必ず入力して下さい。');
	} else if (document.form.pref.value < 1) {
		alert('都道府県は必ず選択して下さい。');
	} else if (document.form.tel.value.length == 0) {
		alert('電話番号は必ず入力して下さい。');
	} else if (document.form.email.value.length == 0) {
		alert('メールアドレスは必ず入力して下さい。');
	} else if ((mail_at < 1) || (mail_dot <= mail_at)) {
//	} else if (mail_at < 1) {
		alert('メールアドレスが間違っています。');
	} else {
		document.form.submit();
	}
}
//-->