function checkrequired(which){ var pass=true if (document.images){ for (i=0;i