
/* ************************************************** */
/* モバイルURL送信 */
/* ************************************************** */
function qr_sendmail(){
	myWin = window.open('about:blank' , 'mail' , 'width=400, height=300, scrollbars=yes, resizable=yes, status=yes , alwaysRaised=yes');
	document.qr.target = 'mail';
	return true;
}


/* ************************************************** */
/*  */
/* ************************************************** */
function chk_ask(){
	//name
	if(document.f.name.value == ""){
		alert('お名前を入力して下さい。');
		document.f.name.focus();
		return false;
	}
	
	//tel
	if(document.f.tel.value != ""){
		if(!document.f.tel.value.match(/^[0-9]{2,4}\-[0-9]{2,4}\-[0-9]{3,4}$/)){
			alert('連絡先電話番号の形式が正しくありません。'+"\n"+'「0120-333-444」の形式で半角で入力して下さい。');
			document.f.tel.focus();
			return false;
		}
	}
	
	//mail
	if(document.f.mail.value == ""){
		alert('連絡先メールアドレスを入力してください。');
		document.f.mail.focus();
		return false;
	}
	
	//comm
	if(document.f.comm.value == ""){
		alert('問い合わせ内容を入力してください。');
		document.f.comm.focus();
		return false;
	}
	
	return true;
}


/* ************************************************** */
/*  */
/* ************************************************** */
function chk_kure(){
	//name
	if(document.f.name.value == ""){
		alert('お名前を入力して下さい。');
		document.f.name.focus();
		return false;
	}
	
	//tel
	if(document.f.tel.value != ""){
		if(!document.f.tel.value.match(/^[0-9]{2,4}\-[0-9]{2,4}\-[0-9]{3,4}$/)){
			alert('連絡先電話番号の形式が正しくありません。'+"\n"+'「0120-333-444」の形式で半角で入力して下さい。');
			document.f.tel.focus();
			return false;
		}
	}
	
	//mail
	if(document.f.mail.value == ""){
		alert('連絡先メールアドレスを入力してください。');
		document.f.mail.focus();
		return false;
	}
	
	//comm
	if(document.f.comm.value == ""){
		alert('クチコミ希望店名入力を入力してください。');
		document.f.comm.focus();
		return false;
	}
	
	return true;
}


/* ************************************************** */
/*  */
/* ************************************************** */
function chk_reqest(){
	//subj
	if(document.f.subj.value == ""){
		alert('ご用件を選択してください。');
		document.f.subj.focus();
		return false;
	}
	
	//comm
	if(document.f.comm.value == ""){
		alert('問い合わせ内容を入力してください。');
		document.f.comm.focus();
		return false;
	}
	
	
	return true;
}

/* ************************************************** */
/* 申し込みフォームページ（モアポ） */
/* ************************************************** */
function chk_join1(){
	//nickname
	str_byte = Math.round(getByteCount( document.f.nickname.value ) / 2 );
	if(document.f.nickname.value == ""){
		alert('ニックネームを入力してください。');
		document.f.nickname.focus();
		return false;
	}else if(str_byte > 10){
		alert('ニックネームは全角10文字以内で入力して下さい');
		document.f.nickname.focus();
		return false;
	}
	
	//birth
	document.f.b_year.value = toHankaku(document.f.b_year.value);
	if(document.f.b_year.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_year.focus();
		return false;
	}else if(document.f.b_year.value.match(/[^\d]/)){
		alert('生年月日は、半角数字で入力して下さい。');
		document.f.b_year.focus();
		return false;
	}else if(document.f.b_year.value.length != 4){
		alert('生年月日は、半角数字で4桁入力して下さい。');
		document.f.b_year.focus();
		return false;
	}
	if(document.f.b_month.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_month.focus();
		return false;
	}
	if(document.f.b_day.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_day.focus();
		return false;
	}
	
	//mno,mpw
	if(document.f.mno.value == ""){
		alert("モアポ会員番号を入力してください。");
		document.f.mno.focus();
		return false;
	}
	if(document.f.mpw.value == ""){
		alert("モアポパスワードを入力してください。");
		document.f.mpw.focus();
		return false;
	}
	
	//mail
	document.f.mail.value = toHankaku(document.f.mail.value);
	if(document.f.mail.value == ""){
		alert('情報配信先メールアドレスを入力してください。');
		document.f.mail.focus();
		return false;
	}else if(!document.f.mail.value.match(/.+@.+\..+/)){
		alert('情報配信先メールアドレスの形式が正しくありません。');
		document.f.mail.focus();
		return false;
	}
	
	//job
	if(document.f.job.value == ""){
		alert('職業を入力してください。');
		document.f.job.focus();
		return false;
	}
	
	//comm
	if(document.f.comm.value == ""){
		alert('コメント（性癖・趣味志向）を入力してください。');
		document.f.comm.focus();
		return false;
	}
	
	
	
//	if(document.f.agree.checked == false){
//		alert('利用規約をお読みになり、「上記事項に同意いたします」に\nチェックを入れ送信ボタンをクリックしください。');
//		document.f.agree.focus();
//		return false;
//	}
	
	
//	if(window.confirm("この内容で送信致します。\n送信してよろしいですか？") == false){
//		return false;
//	}
	
	
	return true;
}


/* ************************************************** */
/* 申し込みフォームページ（現金） */
/* ************************************************** */
function chk_join2(){
	//name
	str_byte = Math.round(getByteCount( document.f.name.value ) / 2 );
	if(document.f.name.value == ""){
		alert('お振込みの際の名前を入力して下さい。');
		document.f.name.focus();
		return false;
	}else if(str_byte > 25){
		alert('お振込みの際の名前は全角25文字以内で入力して下さい');
		document.f.name.focus();
		return false;
	}
	
	//nickname
	str_byte = Math.round(getByteCount( document.f.nickname.value ) / 2 );
	if(document.f.nickname.value == ""){
		alert('ニックネームを入力してください。');
		document.f.nickname.focus();
		return false;
	}else if(str_byte > 10){
		alert('ニックネームは全角10文字以内で入力して下さい');
		document.f.nickname.focus();
		return false;
	}
	
	//birth
	document.f.b_year.value = toHankaku(document.f.b_year.value);
	if(document.f.b_year.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_year.focus();
		return false;
	}else if(document.f.b_year.value.match(/[^\d]/)){
		alert('生年月日は、半角数字で入力して下さい。');
		document.f.b_year.focus();
		return false;
	}else if(document.f.b_year.value.length != 4){
		alert('生年月日は、半角数字で4桁入力して下さい。');
		document.f.b_year.focus();
		return false;
	}
	if(document.f.b_month.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_month.focus();
		return false;
	}
	if(document.f.b_day.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_day.focus();
		return false;
	}
	
	//mail
	document.f.mail.value = toHankaku(document.f.mail.value);
	if(document.f.mail.value == ""){
		alert('情報配信先メールアドレスを入力してください。');
		document.f.mail.focus();
		return false;
	}else if(!document.f.mail.value.match(/.+@.+\..+/)){
		alert('情報配信先メールアドレスの形式が正しくありません。');
		document.f.mail.focus();
		return false;
	}
	
	//job
	if(document.f.job.value == ""){
		alert('職業を入力してください。');
		document.f.job.focus();
		return false;
	}
	
	//comm
	if(document.f.comm.value == ""){
		alert('コメント（性癖・趣味志向）を入力してください。');
		document.f.comm.focus();
		return false;
	}
	
	
	
//	if(document.f.agree.checked == false){
//		alert('利用規約をお読みになり、「上記事項に同意いたします」に\nチェックを入れ送信ボタンをクリックしください。');
//		document.f.agree.focus();
//		return false;
//	}
	
	
	if(window.confirm("この内容で送信致します。\n送信してよろしいですか？") == false){
		return false;
	}
	
	
	return true;
}


/* ************************************************** */
/* 申し込みフォームページ（モアポ） */
/* ************************************************** */
function chk_update_acount1(){
	//mno,mpw
	if(document.f.mno.value == ""){
		alert("モアポ会員番号を入力してください。");
		document.f.mno.focus();
		return false;
	}
	if(document.f.mpw.value == ""){
		alert("モアポパスワードを入力してください。");
		document.f.mpw.focus();
		return false;
	}
	
	
	
//	if(document.f.agree.checked == false){
//		alert('利用規約をお読みになり、「上記事項に同意いたします」に\nチェックを入れ送信ボタンをクリックしください。');
//		document.f.agree.focus();
//		return false;
//	}
	
	
	if(window.confirm("この内容で送信致します。\n送信してよろしいですか？") == false){
		return false;
	}
	
	
	return true;
}


/* ************************************************** */
/* 申し込みフォームページ（現金） */
/* ************************************************** */
/*
function chk_join2(){
	//name
	str_byte = Math.round(getByteCount( document.f.name.value ) / 2 );
	if(document.f.name.value == ""){
		alert('お振込みの際の名前を入力して下さい。');
		document.f.name.focus();
		return false;
	}else if(str_byte > 25){
		alert('お振込みの際の名前は全角25文字以内で入力して下さい');
		document.f.name.focus();
		return false;
	}
	
	
	
	if(document.f.agree.checked == false){
		alert('利用規約をお読みになり、「上記事項に同意いたします」に\nチェックを入れ送信ボタンをクリックしください。');
		document.f.agree.focus();
		return false;
	}
	
	
	if(window.confirm("この内容で送信致します。\n送信してよろしいですか？") == false){
		return false;
	}
	
	
	return true;
}*/


/* ************************************************** */
/* 報告フォームページ（入会用） */
/* ************************************************** */
function chk_join_report(){
	//nickname
	str_byte = Math.round(getByteCount( document.f.nickname.value ) / 2 );
	if(document.f.nickname.value == ""){
		alert('ニックネームを入力してください。');
		document.f.nickname.focus();
		return false;
	}else if(str_byte > 10){
		alert('ニックネームは全角10文字以内で入力して下さい');
		document.f.nickname.focus();
		return false;
	}
	
	//birth
	document.f.b_year.value = toHankaku(document.f.b_year.value);
	if(document.f.b_year.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_year.focus();
		return false;
	}else if(document.f.b_year.value.match(/[^\d]/)){
		alert('生年月日は、半角数字で入力して下さい。');
		document.f.b_year.focus();
		return false;
	}else if(document.f.b_year.value.length != 4){
		alert('生年月日は、半角数字で4桁入力して下さい。');
		document.f.b_year.focus();
		return false;
	}
	if(document.f.b_month.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_month.focus();
		return false;
	}
	if(document.f.b_day.value == ""){
		alert('生年月日を入力してください。');
		document.f.b_day.focus();
		return false;
	}
	
	//mail
	document.f.mail.value = toHankaku(document.f.mail.value);
	if(document.f.mail.value == ""){
		alert('情報配信先メールアドレスを入力してください。');
		document.f.mail.focus();
		return false;
	}else if(!document.f.mail.value.match(/.+@.+\..+/)){
		alert('情報配信先メールアドレスの形式が正しくありません。');
		document.f.mail.focus();
		return false;
	}
	
	//job
	if(document.f.job.value == ""){
		alert('ご職業を入力して下さい。');
		document.f.job.focus();
		return false;
	}
	
	//usr_comm
	if(document.f.usr_comm.value == ""){
		alert('コメントを入力して下さい。');
		document.f.usr_comm.focus();
		return false;
	}
	
	
	
	
	
	//shop_name
	if(document.f.shop_name.value == ""){
		alert('店舗名が入力されていません。');
		document.f.shop_name.focus();
		return false;
	}
	
	//shop_tel
	document.f.shop_tel.value = toHankaku(document.f.shop_tel.value);
	if(document.f.shop_tel.value == ""){
		alert('店舗電話番号が入力されていません。');
		document.f.shop_tel.focus();
		return false;
	}
	
	if(!document.f.shop_tel.value.match(/^[0-9]{2,4}\-[0-9]{2,4}\-[0-9]{3,4}$/)){
		alert('店舗電話番号の形式が正しくありません。'+"\n"+'「0120-333-444」の形式で半角で入力して下さい。');
		document.f.shop_tel.focus();
		return false;
	}
	
	//shop_url
	document.f.shop_url.value = toHankaku(document.f.shop_url.value);
	if(document.f.shop_url.value == ""){
		alert('店舗URLが入力されていません。');
		document.f.shop_url.focus();
		return false;
	}
	
	//type
	if(document.f.type.selectedIndex == 0){
		alert('業種が選択されていません。');
		document.f.type.focus();
		return false;
	}
	
	//cp_name
	if(document.f.cp_name.value == ""){
		alert('コンパニオン名が入力されていません。');
		document.f.cp_name.focus();
		return false;
	}
	
	//place
	str_byte = Math.round(getByteCount( document.f.place.value ) / 2 );
	if(document.f.place.value == ""){
		alert('利用エリアが入力されていません。');
		document.f.place.focus();
		return false;
	}else  if(str_byte > 50){
		alert('利用エリアは全角50文字以内で入力して下さい。');
		document.f.place.focus();
		return false;
	}
	
	//price
	if(document.f.price.value != ""){
		document.f.price.value = toHankaku(document.f.price.value);
		if(document.f.price.value.match(/[^\d|\,]/)){
			alert('利用総額は、半角数字とカンマで入力して下さい。');
			document.f.price.focus();
			return false;
		}
	}
	
	//times
	if(document.f.times.value != ""){
		if(document.f.times.value.match(/[^\d]/)){
			alert('利用時間は、半角数字で入力して下さい。');
			document.f.times.focus();
			return false;
		}
	}
	
	//star
	if(document.f.star.selectedIndex == 0){
		alert('オススメ度が選択されていません。');
		document.f.star.focus();
		return false;
	}
	
	//comm
	if(document.f.comm.value == ""){
		alert('体験記が入力されていません。');
		document.f.comm.focus();
		return false;
	}
//	if(document.f.agree.checked == false){
//		alert('利用規約をお読みになり、「上記事項に同意いたします」に\nチェックを入れ送信ボタンをクリックしください。');
//		document.f.agree.focus();
//		return false;
//	}
	//
	
	
	//
	arr_base_no =  Array (
				1,2,3,4,7,8,9,10,11,12,13,14,15,16,19,
				23,24,25,27,28,29,30
				);
	arr_base_str = Array (
				'ルックスの@綺麗系','ルックスのA可愛い系','ルックスのBプロポーション','ルックスのC胸の大きさ','ルックスのF化粧のセンス',
				'ルックスのG服装のセンス','ルックスのH髪型のセンス','ルックスのI写真とのギャップ',
				'キャラクターの@お色気度','キャラクターのA優しさ度','キャラクターのB恥じらい度',
				'キャラクターのC話しやすさ','キャラクターのD癒し度','キャラクターのE愛想のよさ',
				'マナーのB香り','マナーのFタバコ',
				'プレイの@敏感度','プレイのAあえぎ声','プレイのC淫乱度',
				'プレイのD攻め度','プレイのE受身度','プレイのF舌ワザ'
				);
	for(i=0;i<22;i++){
		result = eval('document.f.q'+arr_base_no[i]+'_base.selectedIndex');
		if(result == 0){
			alert(arr_base_str[i]+'の基本情報が選択されていません。');
			eval('document.f.q'+arr_base_no[i]+'_base.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@綺麗系','A可愛い系','Bプロポーション','C胸の大きさ','Dおしゃれさ',
		'E清潔感','F化粧のセンス','G服装のセンス','H髪型のセンス','I写真とのギャップ'
	);
	for(i=0;i<10;i++){
		tmp = i+1;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('ルックスの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@お色気度','A優しさ度','B恥じらい度','C話しやすさ','D癒し度','E愛想のよさ'
	);
	for(i=0;i<6;i++){
		tmp = i+11;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('キャラクターの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@気配り度','A言葉遣い','B香り','Cプレイまでの段取り','D時間の配慮','E丁寧な接客','Fタバコ'
	);
	for(i=0;i<7;i++){
		tmp = i+17;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('マナーの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@敏感度','Aあえぎ声','Bよがり顔','C淫乱度','D攻め度','E受身度','F舌ワザ','Gプレイや肌の相性度'
	);
	for(i=0;i<8;i++){
		tmp = i+24;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('プレイの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@電話の対応','A女の子のレベルと在籍数','B個人情報、性病対策などの安心面','Cプレイデータやコンパニオン情報の信憑性'
	);
	for(i=0;i<4;i++){
		tmp = i+32;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('店評価の'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	if(getByteCount(document.f.comm.value) < 200){
		alert('体験記は最低全角100文字以上入力して下さい。');
		document.f.comm.focus();
		return false;
	}
	
	
	if(document.f.is_cou[0].checked == false && document.f.is_cou[1].checked == false){
		alert('『クーポンを利用しましたか？』にお答え下さい。');
		document.f.is_cou[0].focus();
		return false;
	}
	
	
	set_total('looks');
	set_total('char');
	set_total('mana');
	set_total('play');
	set_total('shop');
	
	return true;
}
function join_report_end(){
if(window.confirm("この内容で送信します。\nよろしいですか？") == false){
		return false;
	}
}
function set_total(val){
	cnt = 0;
	if(val == 'looks'){
		for(i=1;i<=10;i++){
			cnt += eval('document.f.q'+i+'.selectedIndex');
		}
	}else if(val == 'char'){
		for(i=11;i<=16;i++){
			cnt += eval('document.f.q'+i+'.selectedIndex');
		}
	}else if(val == 'mana'){
		for(i=17;i<=23;i++){
			cnt += eval('document.f.q'+i+'.selectedIndex');
		}
	}else if(val == 'play'){
		for(i=24;i<=31;i++){
			cnt += eval('document.f.q'+i+'.selectedIndex');
		}
	}else if(val == 'shop'){
		for(i=32;i<=35;i++){
			cnt += eval('document.f.q'+i+'.selectedIndex');
		}
	}
//	document.getElementById( val ).innerHTML = cnt;
	document.getElementById( val+'_hid' ).value = cnt;
	
	//alert(val+'_hid'+'/'+cnt);
}


/* ************************************************** */
/* 報告フォームページ（延長用） */
/* ************************************************** */
function chk_member_report(){
//	//morepo
//	if(document.f.bonus[1].checked == true){
//		if(document.f.mno.value == ""){
//			alert('モアポの会員番号が入力されていません。');
//			document.f.mno.focus();
//			return false;
//		}
//		if(document.f.mpw.value == ""){
//			alert('モアポのパスワードが入力されていません。');
//			document.f.mpw.focus();
//			return false;
//		}
//	}
	
	//shop_name
	if(document.f.shop_name.value == ""){
		alert('店舗名が入力されていません。');
		document.f.shop_name.focus();
		return false;
	}
	
	//shop_tel
	document.f.shop_tel.value = toHankaku(document.f.shop_tel.value);
	if(document.f.shop_tel.value == ""){
		alert('店舗電話番号が入力されていません。');
		document.f.shop_tel.focus();
		return false;
	}
	
	if(!document.f.shop_tel.value.match(/^[0-9]{2,4}\-[0-9]{2,4}\-[0-9]{3,4}$/)){
		alert('店舗電話番号の形式が正しくありません。'+"\n"+'「0120-333-444」の形式で半角で入力して下さい。');
		document.f.shop_tel.focus();
		return false;
	}
	
	//shop_url
	document.f.shop_url.value = toHankaku(document.f.shop_url.value);
	if(document.f.shop_url.value == ""){
		alert('店舗URLが入力されていません。');
		document.f.shop_url.focus();
		return false;
	}
	
	//type
	if(document.f.type.selectedIndex == 0){
		alert('業種が選択されていません。');
		document.f.type.focus();
		return false;
	}
	
	//cp_name
	if(document.f.cp_name.value == ""){
		alert('コンパニオン名が入力されていません。');
		document.f.cp_name.focus();
		return false;
	}
	
	//place
	str_byte = Math.round(getByteCount( document.f.place.value ) / 2 );
	if(document.f.place.value == ""){
		alert('利用エリアが入力されていません。');
		document.f.place.focus();
		return false;
	}else  if(str_byte > 50){
		alert('利用エリアは全角50文字以内で入力して下さい。');
		document.f.place.focus();
		return false;
	}
	
	//price
	if(document.f.price.value != ""){
		document.f.price.value = toHankaku(document.f.price.value);
		if(document.f.price.value.match(/[^\d|\,]/)){
			alert('利用総額は、半角数字とカンマで入力して下さい。');
			document.f.price.focus();
			return false;
		}
	}
	
	//times
	if(document.f.times.value != ""){
		if(document.f.times.value.match(/[^\d]/)){
			alert('利用時間は、半角数字で入力して下さい。');
			document.f.times.focus();
			return false;
		}
	}
	
	//star
	if(document.f.star.selectedIndex == 0){
		alert('オススメ度が選択されていません。');
		document.f.star.focus();
		return false;
	}
	
	//comm
	if(document.f.comm.value == ""){
		alert('体験記が入力されていません。');
		document.f.comm.focus();
		return false;
	}
//	if(document.f.agree.checked == false){
//		alert('利用規約をお読みになり、「上記事項に同意いたします」に\nチェックを入れ送信ボタンをクリックしください。');
//		document.f.agree.focus();
//		return false;
//	}
	//
	
	
	//
	arr_base_no =  Array (
				1,2,3,4,7,8,9,10,11,12,13,14,15,16,19,
				23,24,25,27,28,29,30
				);
	arr_base_str = Array (
				'ルックスの@綺麗系','ルックスのA可愛い系','ルックスのBプロポーション','ルックスのC胸の大きさ','ルックスのF化粧のセンス',
				'ルックスのG服装のセンス','ルックスのH髪型のセンス','ルックスのI写真とのギャップ',
				'キャラクターの@お色気度','キャラクターのA優しさ度','キャラクターのB恥じらい度',
				'キャラクターのC話しやすさ','キャラクターのD癒し度','キャラクターのE愛想のよさ',
				'マナーのB香り','マナーのFタバコ',
				'プレイの@敏感度','プレイのAあえぎ声','プレイのC淫乱度',
				'プレイのD攻め度','プレイのE受身度','プレイのF舌ワザ'
				);
	for(i=0;i<22;i++){
		result = eval('document.f.q'+arr_base_no[i]+'_base.selectedIndex');
		if(result == 0){
			alert(arr_base_str[i]+'の基本情報が選択されていません。');
			eval('document.f.q'+arr_base_no[i]+'_base.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@綺麗系','A可愛い系','Bプロポーション','C胸の大きさ','Dおしゃれさ',
		'E清潔感','F化粧のセンス','G服装のセンス','H髪型のセンス','I写真とのギャップ'
	);
	for(i=0;i<10;i++){
		tmp = i+1;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('ルックスの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@お色気度','A優しさ度','B恥じらい度','C話しやすさ','D癒し度','E愛想のよさ'
	);
	for(i=0;i<6;i++){
		tmp = i+11;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('キャラクターの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@気配り度','A言葉遣い','B香り','Cプレイまでの段取り','D時間の配慮','E丁寧な接客','Fタバコ'
	);
	for(i=0;i<7;i++){
		tmp = i+17;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('マナーの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@敏感度','Aあえぎ声','Bよがり顔','C淫乱度','D攻め度','E受身度','F舌ワザ','Gプレイや肌の相性度'
	);
	for(i=0;i<8;i++){
		tmp = i+24;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('プレイの'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	arr_no = Array(
		'@電話の対応','A女の子のレベルと在籍数','B個人情報、性病対策などの安心面','Cプレイデータやコンパニオン情報の信憑性'
	);
	for(i=0;i<4;i++){
		tmp = i+32;
		result = eval('document.f.q'+tmp+'_txt.value;');
		if(result == ""){
			alert('店評価の'+arr_no[i]+'の一言コメント記入欄が入力されていません。');
			eval('document.f.q'+tmp+'_txt.focus();');
			return false;
		}
	}
	
	//
	if(getByteCount(document.f.comm.value) < 200){
		alert('体験記は最低全角100文字以上入力して下さい。');
		document.f.comm.focus();
		return false;
	}
	
	if(document.f.is_cou[0].checked == false && document.f.is_cou[1].checked == false){
		alert('『クーポンを利用しましたか？』にお答え下さい。');
		document.f.is_cou[0].focus();
		return false;
	}
	
	//enq
	/*if(document.f.enq[0].checked == false && document.f.enq[1].checked == false){
		alert('お手数ですがアンケートにお答え下さい。');
		document.f.enq[0].focus();
		return false;
	}*/
	
	
	
	set_total('looks');
	set_total('char');
	set_total('mana');
	set_total('play');
	set_total('shop');
	
	return true;
}


/* ************************************************** */
/* レビュー投稿ページ */
/* ************************************************** */
function chk_review(){
/*
	//mark
	if(document.f.mark[0].checked == false && document.f.mark[1].checked == false){
		alert('採点を選択して下さい。');
		document.f.mark[0].focus();
		return false;
	}
*/
	//comm
	if(document.f.comm.value == ""){
		alert('コメントを入力して下さい。');
		document.f.comm.focus();
		return false;
	}
	
	
	if(window.confirm("この内容で送信します。\nよろしいですか？") == false){
		return false;
	}
	
	return true;
}
function chk_review_auto(){

	//comm
	if(document.f.comm.value == ""){
		alert('コメントを入力して下さい。');
		document.f.comm.focus();
		return false;
	}
	
	
	if(window.confirm("この内容でカキコミします。\n実行してよろしいですか？") == false){
		return false;
	}
	
	return true;
}


/* ************************************************** */
/* パスワード再発行ページ */
/* ************************************************** */
function chk_renew_pass(){
	//mail
	if(document.f.mail.value == ""){
		alert('携帯メールアドレスを入力してください。');
		document.f.mail.focus();
		return false;
	}
	
	document.f.year.value = toHankaku(document.f.year.value);
	if(document.f.year.value == ""){
		alert('生年月日を入力してください。');
		document.f.year.focus();
		return false;
	}else if(document.f.year.value.match(/[^\d]/)){
		alert('生年月日は、半角数字で入力して下さい。');
		document.f.year.focus();
		return false;
	}else if(document.f.year.value.length != 4){
		alert('生年月日は、半角数字で4桁入力して下さい。');
		document.f.year.focus();
		return false;
	}
	if(document.f.month.value == ""){
		alert('生年月日を入力してください。');
		document.f.month.focus();
		return false;
	}
	if(document.f.day.value == ""){
		alert('生年月日を入力してください。');
		document.f.day.focus();
		return false;
	}
	
	
	return true;
}


/* ************************************************** */
/* クチコミページ、画像処理 */
/* ************************************************** */
function Desc_On(val) { 
      document.images['ph'].src = val; 
} 







//----------------------------------------------------------------------------------------------
// 汎用関数
//----------------------------------------------------------------------------------------------
function urlcheck(txt){ //	URLチェック用
	data = txt.match(/^(https?|ftp)(:\/\/[-_.!~*\'()a-zA-Z0-9;\/?:\@&=+\$,%#]+)$/);
	if (!data){
		return false;
	}
	
	return true;
}

//全角英数記号→半角英数記号
han  = "= 0123456789()@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ;:,.+-_/*&#\\";
zen  = "＝　０１２３４５６７８９（）＠ａｂｃｄｅｆｇｈｉｊｋｌｍｎｏｐｑｒｓｔｕｖｗｘｙｚＡＢＣＤＥＦＧＨＩＪＫＬＭＮＯＰＱＲＳＴＵＶＷＸＹＺ；：，．＋−＿／＊＆＃￥";


function toHankaku(motoText){
	str = "";
	for(i=0;i<motoText.length; i++){
		c = motoText.charAt(i);
		n = zen.indexOf(c,0);
		if(n >= 0) c = han.charAt(n);
		str += c;
	}
	return str;
}


//カタカナ半角→全角変換
khan  = " ｱｲｳｴｵｶｷｸｹｺｻｼｽｾｿﾀﾁﾂﾃﾄﾅﾆﾇﾈﾉﾊﾋﾌﾍﾎﾏﾐﾑﾒﾓﾔﾕﾖﾗﾘﾙﾚﾛﾜｦﾝｧｨｩｪｫｬｭｮｯｰ;:･,.､｡｢｣()ﾞﾟ";
kzen  = "　アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヲンァィゥェォャュョッー；：・，．、。「」（）゛゜";

function tokZenkaku(motoText){
	str = "";
	for(i=0;i<motoText.length; i++){
		c = motoText.charAt(i);
		n = khan.indexOf(c,0);
		if(n >= 0) c = kzen.charAt(n);
		str += c;
		str = str.replace("カ゛","ガ");
		str = str.replace("キ゛","ギ");
		str = str.replace("ク゛","グ");
		str = str.replace("ケ゛","ゲ");
		str = str.replace("コ゛","ゴ");
		str = str.replace("サ゛","ザ");
		str = str.replace("シ゛","ジ");
		str = str.replace("ス゛","ズ");
		str = str.replace("セ゛","ゼ");
		str = str.replace("ソ゛","ゾ");
		str = str.replace("タ゛","ダ");
		str = str.replace("チ゛","ヂ");
		str = str.replace("ツ゛","ヅ");
		str = str.replace("テ゛","デ");
		str = str.replace("ト゛","ド");
		str = str.replace("ハ゛","バ");
		str = str.replace("ヒ゛","ビ");
		str = str.replace("フ゛","ブ");
		str = str.replace("ヘ゛","ベ");
		str = str.replace("ホ゛","ボ");
		str = str.replace("ハ゜","パ");
		str = str.replace("ヒ゜","ピ");
		str = str.replace("フ゜","プ");
		str = str.replace("ヘ゜","ペ");
		str = str.replace("ホ゜","ポ");
	}
	return str;
}


//文字数表示
//半角英数字記号　→　全角英数字記号
//半角カナ　→　全角カナ
//変換後
//全角文字を1文字としてカウント
function count_char( count_id , disp_id ){
		document.getElementById( count_id ).value = toHankaku( document.getElementById( count_id ).value );
		document.getElementById( count_id ).value = tokZenkaku( document.getElementById( count_id ).value );

	document.getElementById( disp_id ).innerHTML = 
	Math.round( getByteCount( document.getElementById( count_id ).value ) / 2 );
}


//文字数表示
//全角英数字記号　→　半角英数字記号
//全角カナ　→　半角カナ
//変換後
//半角文字を1文字としてカウント
function count_char_han( count_id , disp_id ){
	document.getElementById( count_id ).value = toHankaku( document.getElementById( count_id ).value );
	
	document.getElementById( disp_id ).innerHTML = getByteCount( document.getElementById( count_id ).value );
}



/**
* 文字列のバイト数を取得する。
* 全角を2バイト、半角を1バイトとしてカウントします。
* 
* @param バイトを取得する値
* @return 取得したバイト数
*/
function getByteCount(value) {
	var count = 0;
	for ( var i = 0; i < value.length; ++i ) {
		var sub = value.substring(i, i + 1);
		//全角の場合２バイト追加。
		if( checkIsZenkaku(sub) ){
			count += 2;
		}else {
			count += 1;
		}
	}
	return count;
}


/**
* 全角であるかをチェックします。
* 
* @param チェックする値
* @return ture : 全角 / flase : 全角以外
*/
function checkIsZenkaku(value) {
	for (var i = 0; i < value.length; ++i) {
		var c = value.charCodeAt(i);
		//  半角カタカナは不許可
		if (c < 256 || (c >= 0xff61 && c <= 0xff9f)) 
			return false;
	}
	return true;
}
