function form1_check(target){

	if ( target.namekanji.value === "" ){

		alert("氏名が入力されていません");
		target.namekanji.focus() ;
		return (false);

	}
	
	if ( target.namekana.value === "" ){

		alert("フリガナが入力されていません");
		target.namekana.focus() ;
		return (false);

	}
	
	if ( target.tel.value === "" ){

		alert("TEL番号が入力されていません");
		target.tel.focus() ;
		return (false);

	}

	if ( target.fax.value === "" ){

		alert("FAX番号が入力されていません");
		target.fax.focus() ;
		return (false);

	}

	if ( target.hzip.value === "" ){

		alert("郵便番号が入力されていません");
		target.hzip.focus() ;
		return (false);

	}
	
	if ( target.haddress2.value === "" ){

		alert("ご住所が入力されていません");
		target.haddress2.focus() ;
		return (false);

	}
	
	if ( target.email.value === "" ){

		alert("メールアドレスが入力されていません");
		target.email.focus() ;
		return (false);

	}
	
	if (target.email.value.length < 5){

		alert("入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
		target.email.focus();
		return (false);
	}

//バリデート[Email]
		var newstr = "";
		var at = false;
		var dot = false;
	
		
		 if (target.email.value.indexOf("@") != -1)
		  { at = true; } 
		 else if (target.email.value.indexOf(".") != -1) 
		  { dot = true; }
		
		 for (var i = 0; i < target.email.value.length; i++) 
		  {
				ch = target.email.value.substring(i, i + 1)
				if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
					|| (ch == "@") || (ch == ".") || (ch == "_")
					|| (ch == "-") || (ch >= "0" && ch <= "9")) {
					newstr += ch;
					if (ch == "@") {
						at=true;
					}
					if (ch == ".") {
						dot=true;
					}
				}
		  }
		  
		 if ((at != true) || (dot != true)) 
		  {
			alert ("入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
			target.email.focus();
			return (false);
		  }
//バリデート[Email]

		  
	if ( target.email2.value === "" ){

		alert("確認用メールアドレスが入力されていません");
		target.email2.focus() ;
		return (false);

	}
	
	if (target.email2.value.length < 5){

		alert("確認用に入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
		target.email2.focus();
		return (false);
	}

//バリデート[Email]
		var newstr = "";
		var at = false;
		var dot = false;
	
		
		 if (target.email2.value.indexOf("@") != -1)
		  { at = true; } 
		 else if (target.email2.value.indexOf(".") != -1) 
		  { dot = true; }
		
		 for (var i = 0; i < target.email2.value.length; i++) 
		  {
				ch = target.email2.value.substring(i, i + 1)
				if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
					|| (ch == "@") || (ch == ".") || (ch == "_")
					|| (ch == "-") || (ch >= "0" && ch <= "9")) {
					newstr += ch;
					if (ch == "@") {
						at=true;
					}
					if (ch == ".") {
						dot=true;
					}
				}
		  }
		  
		 if ((at != true) || (dot != true)) 
		  {
			alert ("確認用に入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
			target.email2.focus();
			return (false);
		  }
//バリデート[Email]  



	if ( target.email.value != target.email2.value ){
			alert("確認用メールアドレスが一致しません。メールアドレスをご確認下さい。")
			target.email2.focus();
			return (false);
	}



return(true);
}









//----------------------------------------------


function form2_check(target){
	
		if ( target.namekanji.value === "" ){

		alert("お名前が入力されていません");
		target.namekanji.focus() ;
		return (false);

		}
	

		
		if ( target.cnamekanji.value === "" ){

		alert("業者様または会社名が入力されていません");
		target.cnamekanji.focus() ;
		return (false);

		}
		
		if ( target.haddress2.value === "" ){

		alert("お住まいの地域が入力されていません");
		target.haddress2.focus() ;
		return (false);

		}
	
		if ( target.email.value === "" ){

		alert("メールアドレスが入力されていません");
		target.email.focus() ;
		return (false);

		}
	
		if (target.email.value.length < 5){

		alert("入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
		target.email.focus();
		return (false);
		}

//バリデート[Email]
		var newstr = "";
		var at = false;
		var dot = false;
	
		
		 if (target.email.value.indexOf("@") != -1)
		  { at = true; } 
		 else if (target.email.value.indexOf(".") != -1) 
		  { dot = true; }
		
		 for (var i = 0; i < target.email.value.length; i++) 
		  {
				ch = target.email.value.substring(i, i + 1)
				if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
					|| (ch == "@") || (ch == ".") || (ch == "_")
					|| (ch == "-") || (ch >= "0" && ch <= "9")) {
					newstr += ch;
					if (ch == "@") {
						at=true;
					}
					if (ch == ".") {
						dot=true;
					}
				}
		  }
		  
		 if ((at != true) || (dot != true)) 
		  {
			alert ("入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
			target.email.focus();
			return (false);
		  }
//バリデート[Email]

		  
	if ( target.email2.value === "" ){

		alert("確認用メールアドレスが入力されていません");
		target.email2.focus() ;
		return (false);

	}
	
	if (target.email2.value.length < 5){

		alert("確認用に入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
		target.email2.focus();
		return (false);
	}

//バリデート[Email]
		var newstr = "";
		var at = false;
		var dot = false;
	
		
		 if (target.email2.value.indexOf("@") != -1)
		  { at = true; } 
		 else if (target.email2.value.indexOf(".") != -1) 
		  { dot = true; }
		
		 for (var i = 0; i < target.email2.value.length; i++) 
		  {
				ch = target.email2.value.substring(i, i + 1)
				if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
					|| (ch == "@") || (ch == ".") || (ch == "_")
					|| (ch == "-") || (ch >= "0" && ch <= "9")) {
					newstr += ch;
					if (ch == "@") {
						at=true;
					}
					if (ch == ".") {
						dot=true;
					}
				}
		  }
		  
		 if ((at != true) || (dot != true)) 
		  {
			alert ("確認用に入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
			target.email2.focus();
			return (false);
		  }
//バリデート[Email]  



	if ( target.email.value != target.email2.value ){
			alert("確認用メールアドレスが一致しません。メールアドレスをご確認下さい。")
			target.email2.focus();
			return (false);
	}
	
	if ( target.tel.value === "" ){

		alert("TEL番号が入力されていません");
		target.tel.focus() ;
		return (false);

	}
	
		if ( target.comment5.value === "" ){

		alert("ご相談内容が入力されていません");
		target.comment5.focus() ;
		return (false);

	}
	
	return(true);
	
}


//-------------------------------------------------------------

function form_c_check(target){


		
		if ( target.cnamekanji.value === "" ){

		alert("会社名が入力されていません");
		target.cnamekanji.focus() ;
		return (false);

		}
		
		if ( target.namekanji.value === "" ){

		alert("担当者氏名が入力されていません");
		target.namekanji.focus() ;
		return (false);

		}
			
		if ( target.namekana.value === "" ){

		alert("フリガナが入力されていません");
		target.namekana.focus() ;
		return (false);

		}
	
		if ( target.tel.value === "" ){

		alert("TEL番号が入力されていません");
		target.tel.focus() ;
		return (false);

		}
		
		if ( target.zip.value === "" ){

		alert("郵便番号が入力されていません");
		target.zip.focus() ;
		return (false);

		}
		
		if ( target.address2.value === "" ){

		alert("ご住所が入力されていません");
		target.address2.focus() ;
		return (false);

		}
		
		if ( target.email.value === "" ){

		alert("メールアドレスが入力されていません");
		target.email.focus() ;
		return (false);

		}
	
		if (target.email.value.length < 5){

		alert("入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
		target.email.focus();
		return (false);
		}

//バリデート[Email]
		var newstr = "";
		var at = false;
		var dot = false;
	
		
		 if (target.email.value.indexOf("@") != -1)
		  { at = true; } 
		 else if (target.email.value.indexOf(".") != -1) 
		  { dot = true; }
		
		 for (var i = 0; i < target.email.value.length; i++) 
		  {
				ch = target.email.value.substring(i, i + 1)
				if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
					|| (ch == "@") || (ch == ".") || (ch == "_")
					|| (ch == "-") || (ch >= "0" && ch <= "9")) {
					newstr += ch;
					if (ch == "@") {
						at=true;
					}
					if (ch == ".") {
						dot=true;
					}
				}
		  }
		  
		 if ((at != true) || (dot != true)) 
		  {
			alert ("入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
			target.email.focus();
			return (false);
		  }
//バリデート[Email]

		  
	if ( target.email2.value === "" ){

		alert("確認用メールアドレスが入力されていません");
		target.email2.focus() ;
		return (false);

	}
	
	if (target.email2.value.length < 5){

		alert("確認用に入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
		target.email2.focus();
		return (false);
	}

//バリデート[Email]
		var newstr = "";
		var at = false;
		var dot = false;
	
		
		 if (target.email2.value.indexOf("@") != -1)
		  { at = true; } 
		 else if (target.email2.value.indexOf(".") != -1) 
		  { dot = true; }
		
		 for (var i = 0; i < target.email2.value.length; i++) 
		  {
				ch = target.email2.value.substring(i, i + 1)
				if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
					|| (ch == "@") || (ch == ".") || (ch == "_")
					|| (ch == "-") || (ch >= "0" && ch <= "9")) {
					newstr += ch;
					if (ch == "@") {
						at=true;
					}
					if (ch == ".") {
						dot=true;
					}
				}
		  }
		  
		 if ((at != true) || (dot != true)) 
		  {
			alert ("確認用に入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
			target.email2.focus();
			return (false);
		  }
//バリデート[Email]  



	if ( target.email.value != target.email2.value ){
			alert("確認用メールアドレスが一致しません。メールアドレスをご確認下さい。")
			target.email2.focus();
			return (false);
	}
	

	
	return(true);
	
}