
	function checkData(flag){
		if( flag == "new" && document.form1.pref.selectedIndex == 0 ){ alert("地区名を選択してください。"); return false;}

		if( document.form1.address.value == "" ){ alert("所在地をご入力してください。"); return false;}
		if( (document.form1.price != null && document.form1.price.value == "") || (document.form1.rental_price != null && document.form1.rental_price.value == "") ){ alert("売却希望価格又は賃料をご入力してください。"); return false;}

		if( confirm("データを登録してもよろしいですか？") ){ return true; }
		else{ return false; }
	}

	function isReady(){ 
		return confirm("注意事項をご覧いただけましたか？"); 
	}

	function checkItem(){

		if( document.form1.name.value == "" || !(/[^ 　]+/.test(document.form1.name.value)) ){ alert("お名前をご入力してください。"); return false;}
		else if( document.form1.address1.value == ""  || !(/[^ 　]+/.test(document.form1.address1.value)) ){ alert("住所をご入力してください。"); return false;}
		else if( document.form1.tel.value == ""  || !(/[^ 　]+/.test(document.form1.tel.value)) ){ alert("電話番号をご入力してください。"); return false;}
		else if( document.form1.mail.value == ""  || !(/[^ 　]+/.test(document.form1.mail.value)) ){ alert("メールアドレスをご入力してください。"); return false;}
		else if( document.form1.contents.value == ""  || !(/[^ 　\r\n]+/.test(document.form1.contents.value)) ){ alert("内容をご入力してください。"); return false;}

		if( confirm("データを送信してもよろしいですか？") ){ return true; }
		else{ return false; }
	}

	function checkItem2(){
		if( document.form1.name.value == "" || !(/[^ 　]+/.test(document.form1.name.value)) ){ alert("お名前をご入力してください。"); return false;}
		else if( document.form1.address1.value == "" || !(/[^ 　]+/.test(document.form1.address1.value)) ){ alert("住所をご入力してください。"); return false;}
		else if( document.form1.tel.value == "" || !(/[^ 　]+/.test(document.form1.tel.value)) ){ alert("電話番号をご入力してください。"); return false;}
		else if( document.form1.mail.value == "" || !(/[^ 　]+/.test(document.form1.mail.value)) ){ alert("メールアドレスをご入力してください。"); return false;}

		if( confirm("データを送信してもよろしいですか？") ){ return true; }
		else{ return false; }
	}

	function checkItem3(){
		if( document.form1.name.value == "" || !(/[^ 　]+/.test(document.form1.name.value)) ){ alert("お名前（ハンドルネーム）をご入力してください。"); return false;}
		else if( document.form1.mail.value == "" || !(/[^ 　]+/.test(document.form1.mail.value)) ){ alert("メールアドレスをご入力してください。"); return false;}

		if( confirm("データを送信してもよろしいですか？") ){ return true; }
		else{ return false; }
	}


