var fieldstocheck = new Array(); fieldnames = new Array(); function checkform() { for (i=0;i