function MM_findObj(n, d) { var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i var submitcount=0; function checkFields() { if (document.nameform.email.value=="") { alert("Please enter your email then re-submit this form."); return false; } else { if (submitcount == 0) { submitcount++; return true; } else { alert("This form has already been submitted. Thanks!"); return false; } } } function CloseDownWindow() { if (!document.all) { setTimeout("closeWindow()",1000); } else { closeWindow(); } } function closeWindow() { parent.close(); } function closePopRefreshParent(url) { self.parent.window.location=url; opener.location.reload(); self.close() } function getLineCount(charPerLine,srcLine) { return parseInt((srcLine.length/charPerLine) + 1); } function allowPollSubmit(theForm) { if (verifyQuizInput(theForm)) { popupPollWin(); return true; } return false; } function SubmitPoll() { theForm = document.forms.pollform; if (allowPollSubmit(theForm)) { theForm.target = "popuppoll"; theForm.submit(); } } function verifyQuizInput(theForm) { for (i=0; i < theForm.elements.length; i++) { if ((theForm.elements[i].type == "radio") || (theForm.elements[i].type == "checkbox")) { if (theForm.elements[i].checked) { return true; } } } alert("You forgot to make a selection."); return false; } var _totalVoteXLines = 0; function setVoteXLineTotal(charPerLine,srcLine) { var lc = getLineCount(charPerLine,srcLine); if (lc > 1) { _totalVoteXLines += (lc - 1); } } //generic submit function - works on all browsers function submitForm(formname){ formsub = eval("document." + formname); formsub.submit(); } function SubmitTerms() { returnToReg=false; submitForm('loginForm'); } function openWinFlexible(urlLink,winName,properties) { newScrollWin = window.open(urlLink,winName,properties); if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4)) { newScrollWin.focus(); } } function popupWin(urlLink,winName,winWidth,winHeight) { newWin = window.open(urlLink,winName,'toolbar=no,location=no,directories=no,status=no,scrollbars=0,menubar=no,resizable=no,width='+winWidth+',height='+winHeight); if ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4)) { newWin.focus(); } }