function CheckEmail(strTarget){
  if(strTarget.match(/[^a-zA-Z0-9_\.\-@]/)){ return false; }
  p=strTarget.indexOf("@",1);
  if(strTarget.length==p+1){ return false; }
  else{
    for(i=p+1;i<strTarget.length;i++){
    Charactor=strTarget.charAt(i);
      if(Charactor=="."){
        if(i==p+1 || i==strTarget.length-1){ return false; }
      }
      else if(Charactor=="@"){ return false; }
    }
  }

  atPos = strTarget.indexOf("@",1)
  if(atPos == -1) { return false; }

  if(strTarget.indexOf("@", atPos+1) != -1) { return false; }

  periodPos = strTarget.indexOf(".",atPos)
  if(periodPos == -1) { return false; }
}

function Check() {
  var error_string = "";
  var loop = "";

  var check_chk = "100";
  for (var loop = 0; loop < window.document.form.agree.length; loop++) {
    if (window.document.form.agree[loop].checked == true) {
      check_chk = 1;
    }
  }


  if(check_chk != 1) {
    error_string += "「個人情報の取扱について」\n";
  }


  if (document.form.agree[1].checked==true) {
      error_string += "\n個人情報の取扱について同意していただけない場合は\n承ることができません。\n";
  }

  if (error_string == "") {
    return true;
  } else {
    error_string = "以下の項目を入力してください。\n" + error_string;
    alert (error_string);
    return false;
  }
}