function checkrequired(which) { var pass=true; for (i=0;i