window.onload = function()
{
	document.sendmail_form.action=["./","toiawase_send.php"].join("");
}


function send_question(){
	var naiyou = document.getElementById('question').value;
	var mail = document.getElementById('mail').value;

	var check_naiyou_flg = false;
	var check_mail_flg = false;

	//check the question
	if(naiyou == ''){
		document.getElementById('question_h').value ='Input your question.';
		check_naiyou_flg = false;
	}else{
		document.getElementById('question_h').value ='';
		check_naiyou_flg = true;
	}


	//check the mail address
	if(mail == ""){
		document.getElementById('mail_h').value ='Input your E-mail address.';
		check_mail_flg = false;
	}else{
		document.getElementById('mail_h').value ='';
		check_mail_flg = true;
	}




	//Done send function
	if(check_naiyou_flg && check_mail_flg){
		if(confirm("Do you want to send this Question ?")){
			return true;
		}
		else{
			return false;
		}
	}else{
		return false;
	}

return false;
}
