/* var CookieName = "CookieTest"; var Value = "xxx"; var Today = new Date(); var Expires = new Date(); Expires.setTime(Today.getTime() + 1000*60*60*24) document.cookie=CookieName+"="+Value+"; expires=" + Expires.toGMTString(); function TestCookie() { if (document.cookie && document.cookie.indexOf(CookieName) != -1) { return false; } else { return true; } } */ function validate() { if (!blnValidSubmit){ ErrorText = "Please allow a minimum of seconds to respond to this survey. \n" alert(ErrorText); //return false } ErrorText="" ErrorText=chk1() if (ErrorText.length>0) { alert("You have not answered all the questions on this page.\n\n" + ErrorText) return false } else { if (!blnValidSubmit){ return false } return TestMultipleSubmit() v1771117676074217v184(); return true } } function TestMultipleSubmit(){ CookieName = "MultipleSubmit0" if (readCookie(CookieName) == null){ createCookie(CookieName,"yes",1); return true } else{ alert('Your survey is being submitted, please wait.'); return false } } function createCookie(name,value,days) { if (days) { var date = new Date(); date.setTime(date.getTime()+(days*24*60*60*1000)); var expires = "; expires="+date.toGMTString(); } else var expires = ""; document.cookie = name+"="+value+expires+"; path=/"; } function readCookie(name) { var nameEQ = name + "="; var ca = document.cookie.split(';'); for(var i=0;i < ca.length;i++) { var c = ca[i]; while (c.charAt(0)==' ') c = c.substring(1,c.length); if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length); } return null; } function eraseCookie(name) { createCookie(name,"",-1); } function chk() { return "" } /* if (TestCookie()) { document.location='EnableCookies.asp?SI=0'; } */