var maxlimit = 151; var total = 0; var subtotal = 0; function textCounter(x) { total = document.emailtogo.message.value.length + document.emailtogo.from.value.length; (total >= maxlimit) ? document.emailtogo.remLen.style.color = "#F00" : document.emailtogo.remLen.style.color = "#000"; if (total > maxlimit) { if(x) { document.emailtogo.from.value = document.emailtogo.from.value.substring(0, document.emailtogo.from.value.length-1); } else { document.emailtogo.message.value = document.emailtogo.message.value.substring(0, document.emailtogo.message.value.length-1); } } else { document.emailtogo.remLen.value = (maxlimit - total) + " characters remaining."; } document.emailtogo.messageTotal.value = total; } function resizeDays() { var m = document.emailtogo.month.options[document.emailtogo.month.selectedIndex].value; if (m == "02") { if (document.emailtogo.day.selectedIndex > 28) { document.emailtogo.day.selectedIndex = 1; } document.emailtogo.day.options.length = 29; } else if (m == "09" || m == "04" || m == "06" || m == "11") { if (document.emailtogo.day.selectedIndex > 30) { document.emailtogo.day.selectedIndex = 1; } if (document.emailtogo.day.options.length == 29) { document.emailtogo.day.options.length = 31; var no = new Option("29", "29", false, false); document.emailtogo.day.options[29] = no; no = new Option("30", "30", false, false); document.emailtogo.day.options[30] = no; } else if (document.emailtogo.day.options.length == 32) { document.emailtogo.day.options.length = 31; } } else { if (document.emailtogo.day.options.length == 29) { document.emailtogo.day.options.length = 32; var no = new Option("29", "29", false, false); document.emailtogo.day.options[29] = no; no = new Option("30", "30", false, false); document.emailtogo.day.options[30] = no; no = new Option("31", "31", false, false); document.emailtogo.day.options[31] = no; } if (document.emailtogo.day.options.length == 31) { document.emailtogo.day.options.length = 32; no = new Option("30", "30", false, false); document.emailtogo.day.options[30] = no; no = new Option("31", "31", false, false); document.emailtogo.day.options[31] = no; } } } function land(ref, target) { lowtarget=target.toLowerCase(); if (lowtarget=="_self") { window.location=loc; } else { if (lowtarget=="_top") { top.location=loc; } else { if (lowtarget=="_blank") { window.open(loc); } else { if (lowtarget=="_parent") { parent.location=loc; } else { parent.frames[target].location=loc; }; } } } } function jump(menu) { ref=menu.choice.options[menu.choice.selectedIndex].value; splitc=ref.lastIndexOf("*"); target=""; if (splitc!=-1) { loc=ref.substring(0,splitc); target=ref.substring(splitc+1,1000); } else { loc=ref; target="_self"; }; if (ref != "") { land(loc,target); } } function openWin(url) { mailList = window.open(url,"Signup","toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizeable=0,width=450,height=350,target=_blank"); } function formHandler(form) { var URL = document.form.site.options[document.form.site.selectedIndex].value; window.location.href = URL; }