<!--
function blogbook_check(theForm)
{
  if (theForm.cnamekanji.value == "")
  {
    alert("\"会社名\" フィールドに値を入力してください。");
    theForm.cnamekanji.focus();
    return (false);
  }

  if (theForm.namekanji.value == "")
  {
    alert("\"お名前\" フィールドに値を入力してください。");
    theForm.namekanji.focus();
    return (false);
  }
  
    if (theForm.yakushoku.value == "")
  {
    alert("\"お役職\" フィールドに値を入力してください。");
    theForm.yakushoku.focus();
    return (false);
  }

  var theEmail  = theForm.email.value;

 if (theEmail == "")
  {
    alert("メールアドレスを入力してください。");
    theForm.email.focus();
    return (false);
  }

	var newstr = "";
	var at = false;
	var dot = false;

 if (theEmail.indexOf("@") != -1)
  {
		at = true;
  } 
 else if (theEmail.indexOf(".") != -1) 
  {
		dot = true;
  }

 for (var i = 0; i < theEmail.length; i++) 
  {
		ch = theEmail.substring(i, i + 1)
		if ((ch >= "A" && ch <= "Z") || (ch >= "a" && ch <= "z")
			|| (ch == "@") || (ch == ".") || (ch == "_")
			|| (ch == "-") || (ch >= "0" && ch <= "9")) {
			newstr += ch;
			if (ch == "@") {
				at=true;
			}
			if (ch == ".") {
				dot=true;
			}
		}
  }
 if ((at != true) || (dot != true)) 
  {
    alert ("入力されたメールアドレスは\n不正なアドレスのようです。\n再度入力し直してください。");
    theForm.email.focus();
    return (false);
  }

  return (true);
}
//-->