function checkInputs(){
	var input = document.getElementsByTagName("input");
	var text1 = document.getElementById("q01");
	var text2 = document.getElementById("q02");
	var text3 = document.getElementById("q03");
	var text4 = document.getElementById("q04");
	var addressCheck = /.+@.+\..+/;
	var str ="";
	var alertArea = document.getElementById('container-alert');
	
	if(text1.value == ""){
		str += "お名前は必須項目です。<br />";
	}
	
	if(text2.value == ""){
		str += "メールアドレスは必須項目です。<br />";
	}
	
	if(!text2.value.match(addressCheck)){
		str += "メールアドレスが正しくありません。<br />";
	}
	
	if(text3.value == ""){
		str += "確認のためメールアドレスを再入力してください。<br />";
	}
	
	if(text3.value != "" && text3.value != text2.value){
		str += "確認用のメールアドレスが一致しません。<br />";
	}
	
	if(text4.value == ""){
		str += "ご質問内容は必須項目です。<br />";
	}
	
	if(str){
		alertArea.style.display = "block";
		alertArea.innerHTML = str;
		if(text1.value == ""){
			text1.focus();
		}else if(text2.value == ""){
			text2.focus();
		}else if(!text2.value.match(addressCheck)){
			text2.focus();
		}else if(text3.value != text2.value){
			text3.focus();
		}else{
			text4.focus();
		}
		return false; //送信を中止
	}
	return true; //送信を実行
	
}