function fncChForm(F)
{
	if(F.Name.value!="" && F.Email.value!="" && F.Email.value.indexOf("@")>-1 && F.Message.value!=""){
		var flgConfirm = confirm('以上の内容でメールを送信します。よろしいですか？');
		return flgConfirm;

	}else{
		var strERR = '';
		if(F.Name.value==""){
			strERR += (strERR!="") ? '、': '';
			strERR += 'お名前';
		}
		if(F.Email.value=="" || F.Email.value.indexOf("@")==-1){
			strERR += (strERR!="") ? '、': '';
			strERR += 'E-mail';
		}
		if(F.Message.value==""){
			strERR += (strERR!="") ? '、': '';
			strERR += 'お問い合わせ内容';
		}
		alert('※ ' + strERR + 'を正しくご記入ください');
		return false;
	}
}

$(function () {
	$('#btnpagetop').removeAttr('href');
    $('#btnpagetop').click(function () {
		var targetOffset = $('#pagetop').offset().top;
        $('html,body').animate({ scrollTop: targetOffset }
			,{ duration: 600, queue: true}
		);
    });
	$('#btnSubmit').click(function () {
		return fncChForm(document.formContact);
	});
});

