function c1showAll(){
	//document.getElementById('c1link').style.display = "none";
	//document.getElementById('c1hidden').style.display = "block";
    $("#c1link").hide();
    $("#c1hidden").show('fast',function(){
        new ElementMaxHeight();
    });
}

function c2showAll(){
	//document.getElementById('c2link').style.display = "none";
	//document.getElementById('c2hidden').style.display = "block";
    $("#c2link").hide();
    $("#c2hidden").show('fast',function(){
        new ElementMaxHeight();
    });
}

function playYouTube(doc,hsobj) {
    return hsobj.htmlExpand(doc, { objectType:'iframe', width: 640, height:390, objectWidth: 640, objectHeight: 390, preserveContent:false,objectLoadTime:'after'});
}

function check_inq()
{
	if(document.form_inq.name.value.length<1)
	{
		alert("お名前を入力してください");
		document.form_inq.name.focus();
		return false;
	}

	if(document.form_inq.tele.value.length<1)
	{
		alert("電話番号を入力してください");
		document.form_inq.tele.focus();
		return false;
	}
	
	if(document.form_inq.email.value.length<1)
	{
		alert("Eメールアドレスを入力してください");
		document.form_inq.email.focus();
		return false;
	}
		
	if(document.form_inq.email.value != "")
    {
		apos=form_inq.email.value.indexOf("@");
		dotpos=form_inq.email.value.lastIndexOf(".");
		lastpos=form_inq.email.value.length-1;
		if (apos<1 || dotpos-apos<2 || lastpos-dotpos>3 || lastpos-dotpos<2) 
		{
		  	alert("正しいEメールアドレスを入力してください");
			document.form_inq.email.focus();
			return false;
	    } 
	}

	if(document.form_inq.matter.value.length<1)
	{
		alert("お問い合わせ内容を記入して下さい");
		document.form_inq.matter.focus();
		return false;
	}
}

function abc()
{
	document.form_inq.name.value="";
	document.form_inq.belonging.value="";
	document.form_inq.tele.value="";
	document.form_inq.email.value="";
	document.form_inq.matter.value="";
	
	return false;
}
