function smartRollover() {  
    if(document.getElementsByTagName) {  
        var images = document.getElementsByTagName("img");  
        for(var i=0; i < images.length; i++) {  
            if(images[i].getAttribute("src").match("_off."))  
            {  
                images[i].onmouseover = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("_off.", "_on."));  
                }  
                images[i].onmouseout = function() {  
                    this.setAttribute("src", this.getAttribute("src").replace("_on.", "_off."));  
                }  
            }  
        }  
    }  
}  
if(window.addEventListener) {  
    window.addEventListener("load", smartRollover, false);  
}  
else if(window.attachEvent) {  
    window.attachEvent("onload", smartRollover);  
}


//お問い合わせフォーム用
function chkorder_inquiry090108()
{
	chk = 0;

	Title        = document.thisForm_inquiry.title.value;
	FamilyName         = document.thisForm_inquiry.familyName.value;
	FirstName         = document.thisForm_inquiry.firstName.value;
	// NameSpeaking = document.forms[0].namespeaking.value;
	// PostalCode1  = document.forms[0].postalcode1.value;
	// PostalCode2  = document.forms[0].postalcode2.value;
	// Prefacture   = document.forms[0].Prefacture.value;

	MailAddress  = document.thisForm_inquiry.mailaddress.value;
	MailAddress2  = document.thisForm_inquiry.mailaddress2.value;
	// Address1     = document.forms[0].address1.value;
	// Address2     = document.forms[0].address2.value;
	// Telephone1   = document.thisForm_inquiry.telephone1.value;
	// Telephone2   = document.thisForm_inquiry.telephone2.value;
	// Telephone3   = document.thisForm_inquiry.telephone3.value;
	Comment      = document.thisForm_inquiry.comment.value;


	// チェック
	
	if (Title == "") {
		alert("「件名」が入力されていません。");
		return false;
	}

	if (FamilyName == "") {
		alert("「氏名（姓）」が入力されていません。");
		return false;
	}

	if (FirstName == "") {
		alert("「氏名（名）」が入力されていません。");
		return false;
	}

	/*
	if (NameSpeaking == "") {
		alert("「ふりがな」が入力されていません。");
		return false;
	}


	if (Telephone1 == "") {
		alert("「電話番号」が入力されていません。");
		return false;
	}
	if (Telephone2 == "") {
		alert("「電話番号」が入力されていません。");
		return false;
	}
	if (Telephone3 == "") {
		alert("「電話番号」が入力されていません。");
		return false;
	}
	*/
		
	if (MailAddress.indexOf("@") < 0)
	{
		alert("「メールアドレス」が入力されていないか、間違っています。");
		return false;
	}
	if (MailAddress.indexOf(".") < 0)
	{
		alert("「メールアドレス」が入力されていないか、間違っています。");
		return false;
	}
	if (MailAddress.length < 5)
	{
		alert("「メールアドレス」が入力されていないか、間違っています。");
		return false;
	}
	// 2007.10.23 チェック２重化
	if (MailAddress != MailAddress2)
	{
		alert("「メールアドレス」と「メールアドレス確認」は同じ内容を記入してください。");
		return false;
	}
	if (Comment == "") {
		alert("「お問い合わせ内容」が入力されていません。");
		return false;
	}
	if (Comment.length > 1000)
	{
		alert("「お問い合わせ内容」は、1000文字以内でお願いいたします。");
		return false;
	}
	document.thisForm_inquiry.submit();
	return true;
}