 function FormCheck(Form) {
  Error = new Array();
  i = 0;
  
  if (Form["agrees"]) {
   if (Form["agrees"].length) {
    j = 0;
    k = 0;
    while (j < Form["agrees"].length) {
     if (Form["agrees"][j].checked == true) {
      k++;
     }
     j++;
    }
    if (k == 0) {
     Error[i] = "agrees is an indispensable item.";
     i++;
    }
   } else {
    if (Form["agrees"].checked == false) {
     Error[i] = "agrees is an indispensable item.";
     i++;
    }
   }
  }

if (Form["agrees"]) {
   if (Form["agrees1"].length) {
    j = 0;
    k = 0;
    while (j < Form["agrees"].length) {
     if (Form["agrees1"][j].checked == true) {
      k++;
     }
     j++;
    }
    if (k == 0) {
     Error[i] = "There is a misentry in the item of 1.";
     i++;
    }
   } else {
    if (Form["agrees1"].checked == false) {
     Error[i] = "There is a misentry in the item of 1.";
     i++;
    }
   }
  }
  
if (Form["agrees"]) {
   if (Form["agrees2"].length) {
    j = 0;
    k = 0;
    while (j < Form["agrees"].length) {
     if (Form["agrees2"][j].checked == true) {
      k++;
     }
     j++;
    }
    if (k == 0) {
     Error[i] = "There is a misentry in the item of 2.";
     i++;
    }
   } else {
    if (Form["agrees2"].checked == false) {
     Error[i] = "There is a misentry in the item of 2.";
     i++;
    }
   }
  }
  
if (Form["agrees"]) {
   if (Form["agrees3"].length) {
    j = 0;
    k = 0;
    while (j < Form["agrees"].length) {
     if (Form["agrees3"][j].checked == true) {
      k++;
     }
     j++;
    }
    if (k == 0) {
     Error[i] = "There is a misentry in the item of 3.";
     i++;
    }
   } else {
    if (Form["agrees3"].checked == false) {
     Error[i] = "There is a misentry in the item of 3.";
     i++;
    }
   }
  }

if (Form["agrees"]) {
   if (Form["agrees4"].length) {
    j = 0;
    k = 0;
    while (j < Form["agrees"].length) {
     if (Form["agrees4"][j].checked == true) {
      k++;
     }
     j++;
    }
    if (k == 0) {
     Error[i] = "There is a misentry in the item of 4.";
     i++;
    }
   } else {
    if (Form["agrees4"].checked == false) {
     Error[i] = "There is a misentry in the item of 4.";
     i++;
    }
   }
  }

if (Form["agrees"]) {
   if (Form["agrees5"].length) {
    j = 0;
    k = 0;
    while (j < Form["agrees"].length) {
     if (Form["agrees5"][j].checked == true) {
      k++;
     }
     j++;
    }
    if (k == 0) {
     Error[i] = "There is a misentry in the item of 5.";
     i++;
    }
   } else {
    if (Form["agrees5"].checked == false) {
     Error[i] = "There is a misentry in the item of 5.";
     i++;
    }
   }
  }

  if (Error.length > 0) {
   ErrorText = Error.join("\n");
   alert ("Agrees no check!\n\n"+ErrorText);
   return false;
  }
 }

