
function V_Butt(V_0,V_1,V_2,V_3,V_4) {if (!V_4) {V_4=""}
if (V_4!="") {V_4=' onMouseOver="'+V_4+'"'} 
V_5=""; if (V_3!=";") {V_5=' style="cursor:hand"'}
J_Inse('<input'+V_5+' class="'+V_0+'" name="'+V_1+'" type="button" value="'+V_2+'" onClick="'+V_3+'"'+V_4+'><br>')}

function V_Butts() {J_Inse('<td width=150><form name="Butts">');V_0=0
if (V_Base) {V_Butt("jx","Base",V_Base,";"); V_0=1}; 
if (window.print) {V_Butt("j","Print","Print this Page","V_Prnt("+V_0+")")}
V_Butt("j","GoBack","Go Back","J_Back()","");
J_Inse('</td>')}

function V_Inde(J_1,J_2) {J_1="<p><a name="+J_1+"></a><table width=100%><tr>"
J_1=J_1+"<th colspan=2>"+J_2+"</th><td width=100 class=a><a href=#VILLAGE>Top of Page</a>"
J_1=J_1+"</td></tr></table>"; J_Inse(J_1)}

function V_Prnt(V_1) {document.forms[0].elements[V_1].value=J_Date(); J_Prnt()}

function V_Row(J_1) { if (J_1!="") {J_Row(J_1)} }

function V_Send(V_1) {J_Inse(J_Wrap(V_1,'Email: <a href="mailto:'+V_1+'?Subject=A%20Message%20from%20Alnmouth.org.uk">','</a><br>'))}

function V_SendHH(V_1) {J_Inse(J_Wrap(V_1,'Email: <a href="mailto:'+V_1+'?Subject=A%20Message%20re%20the%20Hindmarsh%20Hall">','</a><br>'))}

function Diary() {J_Inse('<table width="100%">')
J_Inse('<tr><th>Date</th><th>Time</th><th>What</th><th>Where</th><th>More Details</th></tr>')
var K_=new Date(), D_=K_.setHours(0,0,0,0), E_, J_, L_1, L_2, L_3, M_
for (var J_=0; J_<A_Events.length; J_=J_+1) {
if (A_Events[J_][4]==0) {A_Events[J_][4]="00"}
var M_=new Date(A_Events[J_][0],A_Events[J_][1]-1,A_Events[J_][2],0,0,0,0); E_=M_.setHours(0,0,0,0)
L_1="&nbsp;"; if (A_Events[J_][3]!=0) {L_1=A_Events[J_][3]+':'+A_Events[J_][4]}  // what
L_2=A_Events[J_][6]; if (L_2=="") {L_2="&nbsp;"} // Where
L_4=A_Events[J_][5]; if (L_4=="BD") {L_4="Barn Dance"}
if (L_4=="AF") {L_4='<a href="http://www.AlnmouthArtsFestival.com">Alnmouth Arts Festival</a>'}
if (L_4=="FN") {L_4='<a href="http://www.Alnmouth.org.uk/Craven/Poster.htm">Friendly Nite</a>'}
if (L_4=="HG1") {L_4='<a href="http://www.Alnmouth.org.uk/HistoryGrp/Poster1.pdf">Alnmouth Local History Group Coffee Morning and Railway Exhibition</a>'}
if (L_4.substr(0,4)=="WFA:") {L_4='<a href="http://www.westernfrontassociation.com/northumberland-north.html">WFA:</a>'+L_4.slice(4)}
if (L_4.substr(0,3)=="WI:") {L_4='<a href="http://www.wi.alnmouth.org.uk/">WI:</a>'+L_4.slice(3)}
if (L_4.substr(0,3)=="AHG") {L_4='<a href="http://www.alnmouth.org.uk/HistoryGrp/History Group.htm">Alnmouth History Group</a>'+L_4.slice(3)}
if (L_4.substr(0,5)=="AVRS:") {L_4='<a href="http://alnvalleyrailway.co.uk/wpmu/indoor-meetings-2008-9/">Aln Valley Railway Society:</a>'+L_4.slice(5)
 L_2="Alnwick Station Waiting Room"}
if (L_2=="HH") {L_2='<a href="http://www.HindmarshHall.org.uk">Hindmarsh Hall</a>'}
if (L_2=="CC") {L_2='<a href="http://www.alnmouthandlesburycc.co.uk/index.php">Cricket Ground</a>'}
if (L_2=="LC") {L_2="<a href='http://www.btinternet.com/~styring/StMarysChurch.htm'>St. Mary's Church, Lesbury"}
if (L_2=="JB") {L_2='<a href="Church/2a.htm">St. Johns Church, Alnmouth</a>'}
if (L_2=="AP") {L_2='<a href="http://www.AlnwickPlayhouse.co.uk">Alnwick Playhouse</a>'}
if (L_2=="AC") {L_2='<a href="http://www.AlnmouthArt.co.uk">The Old School Arts Centre</a>'}
if (L_2=="AVGC") {L_2='<a href="AVGC/2.htm">Alnmouth Village Golf Club</a>'}
if (L_2=="VH") {L_2="Lesbury Village Hall"}
if (L_2=="SP") {L_2='<a href="http://www.StPaulsAlnwick.co.uk">St. Pauls Church, Alnwick</a>'}
L_3=A_Events[J_][7]; if (L_3=="") {L_3="&nbsp;"} // Contact
if (L_3=="HS") {L_3="Helen Stuart (830 446)"}
if (L_3=="BH") {L_3="Bill Howey (830 746)"}
if (L_3=="CS") {L_3='<a href="http://www.AlnwickChoralSociety.org.uk">Alnwick Choral Society</a>'}
if (E_>=D_) {J_Inse('<tr><td>'+J_Date1(M_)+'</td><td>'+L_1+'</td><td>'+L_4+'</td>')
 J_Inse('<td>'+L_2+'</td><td>'+L_3+'</td></tr>')} }
J_Inse('</table>')}

function J_Q(J_1) {document.VA.q.value=J_1; VA.submit()}

function J_V(J_1) {J_0='<a href="javascript: J_Q([Visit ?])">?</a>'
J_0=J_0.replace("?",J_1); J_0=J_0.replace("?",J_1)
J_0=J_0.replace("[","'"); J_0=J_0.replace("]","'"); J_Inse(J_0)}

function J_A(J_1) {J_0='<a href="javascript: J_Q([Alnmouth Lesbury ?])">More</a>'
J_0=J_0.replace("?",J_1); J_0=J_0.replace("[","'"); J_0=J_0.replace("]","'")
J_Inse(J_0)}



