if (parent.frames.length > 0) { parent.location.href = location.href; } function textCounter(field, countfield, maxlimit) { if (field.value.length > maxlimit) // if too long...trim it! field.value = field.value.substring(0, maxlimit); // otherwise, update 'characters left' counter else countfield.value = maxlimit - field.value.length; } function disableForm(theform) { if (document.all || document.getElementById) { for (i = 0; i < theform.length; i++) { var tempobj = theform.elements[i]; if (tempobj.type.toLowerCase() == "submit" || tempobj.type.toLowerCase() == "reset") tempobj.disabled = true; } return true; } } function cmstartdate() { myDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] $try= document.form1.editend_day.options[document.form1.editend_day.options.selectedIndex].text + ' ' + document.form1.editend_month.options[document.form1.editend_month.options.selectedIndex].text + ', ' +document.form1.editend_year.options[document.form1.editend_year.options.selectedIndex].text myDate=new Date(eval('"'+$try+'"')) document.form1.startbox.value=myDays[myDate.getDay()] } function cmenddate() { myDays=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"] $try= document.form1.editend_day.options[document.form1.editend_day.options.selectedIndex].text + ' ' + document.form1.editend_month.options[document.form1.editend_month.options.selectedIndex].text + ', ' +document.form1.editend_year.options[document.form1.editend_year.options.selectedIndex].text myDate=new Date(eval('"'+$try+'"')) document.form1.endbox.value=myDays[myDate.getDay()] }