// JavaScript Document

function showAlert(){
	var _alert 		= document.getElementById("alert");
	_alert.style.visibility = "visible";
	_alert.style.margin = "1em 0";
}

function checkForm() {
	<!-- 
	var flag		= false;
	var outCheck	= false;
	var _name 		= document.getElementById("_name").value;
	var _birth 		= document.getElementById("_birth").value;
	var _address 	= document.getElementById("_address").value;
	var _tel 		= document.getElementById("_tel").value;
	var _fax 		= document.getElementById("_fax").value;
	var _mail 		= document.getElementById("_mail").value;
	var _ask 		= document.getElementById("_ask").value;
	var thName		= document.getElementById("thName");
	var thBirth		= document.getElementById("thBirth");
	var thAddress	= document.getElementById("thAddress");
	var thTel		= document.getElementById("thTel");
	var thAsk		= document.getElementById("thAsk");
	
	if(_name == ""){
		showAlert();
		thName.style.color = "#FF0000";
		outCheck = true;		
	}else{
		thName.style.color = "#663333";
	}
	
	if(_birth == ""){
		showAlert();
		thBirth.style.color = "#FF0000";
		outCheck = true;		
	}else{
		thBirth.style.color = "#663333";
	}	
	
	if(_address == ""){
		showAlert();
		thAddress.style.color = "#FF0000";
		outCheck = true;		
	}else{
		thAddress.style.color = "#663333";
	}
	
	if(_tel == ""){
		showAlert();
		thTel.style.color = "#FF0000";
		outCheck = true;	
	}else{
		thTel.style.color = "#663333";
	}
	
	if(_ask == ""){
		showAlert();
		thAsk.style.color = "#FF0000";
		outCheck = true;	
	}else{
		thAsk.style.color = "#663333";
	}
	
	if(!outCheck){
		var confirmTxt	= "以下の内容で送信します。 \n名前："+_name+"\n生年月日："+_birth+"\n住所："+_address+"\n電話："+_tel;
		confirmTxt		+= "\nFAX："+_fax+"\nメール："+_mail+"\n内容："+_ask;
		flag = confirm(confirmTxt);
		if(!flag)return false;
	}else{
		return false;	
	}
	//-->
}