firstReal=4; // first visible field in form // in radio buttons, only the last button needs an ID function submitForm(){ errorList = new Array; allFields = document.forms[0].length; for (x=firstReal; x 0) { var expdate = new Date(); expdate.setTime (expdate.getTime() + (expiry * 24 * 60 * 60 * 1000)); expstring = '; expires=' + expdate.toGMTString() ; } else expstring = ''; contents = cookiename + '=' + escape (cookievalue) + expstring + '; path=/'; document.cookie = contents} writecookie ('test','worked', 0); if (readcookie ('test') == '') alert('You must enable cookies on your browser to proceed.');