dayofweek=new Array("Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday");dayofmonth=new Array("","1st","2nd","3rd","4th","5th","6th","7th","8th","9th","10th","11th","12th","13th","14th","15th","16th","17th","18th","19th","20th","21st","22nd","23rd","24th","25th","26th","27th","28th","29th","30th","31st");months=new Array("January","February","March","April","May","June","July","August","September","October","November","December");function theDate(){var D=new Date();var C=D.getYear();if(C<1000){C+=1900}var A=D.getDay();var E=D.getMonth();var B=D.getDate();todaysDate="  "+dayofweek[A]+" "+dayofmonth[B]+" "+months[E]+" "+C;return todaysDate}function searchpagevalidate(A){if(A.keyword.value!=""){return true}else{alert("Need a keyword to \nsearch on!");return false}}function gotoarticle(A){artID=A.options[A.selectedIndex].value;if(artID.length>0){aURL="index.cfm?articleid="+artID;window.location.href=aURL}}function _forum_checkThreadForm(A){if(A.forum_topic.value.length==0){alert("You must enter a Title.");return false}if(A.forum_username.value.length==0){alert("You must enter your name to post to the forum.");return false}if(A.forum_body.value.length==0){alert("In order to post you need to enter text into the message.");return false}return true}var Days_in_Month=new Array(31,28,31,30,31,30,31,31,30,31,30,31);function monthchange(A){mnth=A.options[A.selectedIndex].value;aform=A.form;if(aform.aday!=null){if(mnth=="2"){theYear=aform.ayear.options[aform.ayear.selectedIndex].value;Days_in_Month[1]=((theYear%400==0)||((theYear%4==0)&&(theYear%100!=0)))?29:28}for(i=27;i<Days_in_Month[mnth-1];i++){aform.aday.options[i].text=i+1}for(i=Days_in_Month[mnth-1];i<31;i++){aform.aday.options[i].text=""}checkday(aform)}changer(A)}function checkday(aform){if(aform.aday.options[aform.aday.selectedIndex].text==""){aform.aday.options[eval(Days_in_Month[aform.amonth.selectedIndex]-1)].selected=true;aform.aday.focus()}}function changer(A){aform=A.form;dy=(aform.aday!=null)?aform.aday.options[aform.aday.selectedIndex].value:1;mnth=aform.amonth.options[aform.amonth.selectedIndex].value;yer=aform.ayear.options[aform.ayear.selectedIndex].value;aid=aform.articleid.value;aURL="index.cfm?articleid="+aid+"&ayear="+yer+"&amonth="+mnth+"&aday="+dy;window.location.href=aURL}function newwindow(){window.open("http://archive.tewkesbury.gov.uk/billpayments/payments_step1.asp","payments","width=800, height=600, resizable=yes, status=yes, scrollbars=yes")};

