
function exp(link){
document.write('<a href=\"mailto:' + link[1] + '@' + link[2] +'" title ="'+ link[3]+'">');
document.write(link[0] + '</a>');
}
function popdisp(link){
//var myOptions = 'scrollbars,resizable,height =200,width =350,resizable';
var newwin = window.open('','ContactDetails','width=100,height=270,scrollbars=no,resizable,width=350,left = 100,top=200');
newwin.document.writeln(link[0]+'<br>')
newwin.document.writeln(link[4])
if (link[2]=="NoAddress") {
newwin.document.writeln('<br><br>No email address available');}
else{
var w = "ai"
var x = "o: "
var y = "lt"
var z = "m"
newwin.document.writeln('<br><br><a href=\"'+z+w+y+x + link[1] + '@' + link[2]+'">');
newwin.document.writeln(link[0] + '</a>');}
newwin.document.writeln('<p align="right"><input type=BUTTON  value="Close"')
newwin.document.writeln(' onClick="window.close()">')
newwin.document.close()
newwin.focus();
return false
}
function contact(person){
document.write ('<A HREF="error.htm" onClick="return popdisp('+person[5]+')">'+person[0]+'</A>');
}

function popdispx(link){
//var myOptions = 'scrollbars,resizable,height =200,width =350,resizable';
var ckey = 13
var newwin = window.open('','ContactDetails','width=200,height=285,innerheight=285,innerwidth=200,scrollbars=no,resizable,width=350,left = 100,top=200');
var w = "ai"
var x = "o: "
var y = "lt"
var z = "m"

newwin.document.writeln('<a href=\"'+z+w+y+x + xcode(link[1],ckey) + '@' + xcode(link[2],ckey)+'">'+'<br>')
newwin.document.writeln(xcode(link[0],ckey) + '</a><BR>');
newwin.document.writeln(xcode(link[4],ckey))
if (xcode(link[2],ckey)=="NoAddress") {
newwin.document.writeln('<br><br>No email address available');}
else{
newwin.document.writeln('<br><br><span style="font-family: Times New Roman; background-color: #00FF00" lang="EN-GB"><b>Click on name to email</b></span>'  );
}
newwin.document.writeln('<p align="right"><input type=BUTTON  value="Close"')
newwin.document.writeln(' onClick="window.close()">')
newwin.document.close()
newwin.focus();
return false
}
function fpage(xtarget, fname){
loc = "'"+xtarget+"'"
document.write ('<A HREF="javascript:void(0)" onClick="return linkf('+loc+')">'+fname +'</A>');
}

function linkf (target){
parent.main.document.location = target+'.htm'
return false
}


function hpage(xtarget, fname){
loc = "'"+xtarget+"'"
document.write ('<A HREF="javascript:void(0)" onClick="return linkp('+loc+')">'+fname +'</A>');
}

function linkp (target){
document.location = target+'.htm'
return false
}

function contactx(person){
var ckey =13
document.write ('<A HREF="javascript:void(0)" onClick="return popdispx(clubs.'+xcode(person[5],ckey)+')">'+xcode(person[0],ckey)+'</A>');
}

function contact2(person){
document.write ('<A HREF="javascript:void(0)" onClick="return popdispx(clubs.'+person[5]+')">'+person[0]+'</A>');
}
function expgc(gc){
var person = eval("clubs."+gc[0])

document.write ('<A HREF="javascript:void(0)" onClick="return popdispx(clubs.'+xcode(person[5],13)+')">'+xcode(person[0],13)+'</A>');

}
function expfs(gc){
var person = eval("clubs."+gc[1])

document.write ('<A HREF="javascript:void(0)" onClick="return popdispx(clubs.'+xcode(person[5],13)+')">'+xcode(person[0],13)+'</A>');

}
function expdate(club)
{
if (club[4]=="G") {document.write('<font color="#00FF00">'+club[3]+'</font>')}
else {document.write('<font color="#FF0000">'+club[3]+'</font>')}
}

function update(date, status)
{
if (status=="G") {document.write('<font color="#008000"><B>'+date+'</B></font>')}
else {document.write('<font color="#FF0000"><B>'+date+'</B></font>')}
}



function expdate2(club)
{
if (club[4]=="G") {document.write('<B><font color="#008000">'+club[3]+'</font></B>')}
else {document.write('<B><font color="#FF0000">'+club[3]+'</font></B>')}
}



function stddispx (link){
var ckey = 13
if (xcode(link[2],ckey)=="NoAddress") {
document.writeln(xcode(link[0],ckey)+'&nbsp;&nbsp;&nbsp;'+xcode(link[3],ckey));}
else{document.write ('<A HREF="javascript:void(0)" onClick="return xeadd(clubs.'+xcode(link[5],ckey)+')'+'">'+ xcode(link[0],ckey) + '</a>&nbsp;&nbsp;&nbsp;'+xcode(link[3],ckey))
}
}



function expx (link){
var ckey = 13

document.write ('<A HREF="javascript:void(0)" onClick="return xeadd(clubs.'+xcode(link[5],ckey)+')"'+' title ="'+ xcode(link[3],ckey)+'">');
document.write(xcode(link[0],ckey) + '</a>');

}

function xeadd (person){
var ckey =13
var v = "l ad"
var w = "ai"
var x = "o: "
var y = "lt"
var z = "m"
var u = "dress"
if (xcode(person[2],ckey)=="NoAddress") {
alert( "No E"+ z+w+v+u +" available")}
else{
location.href=z+w+y+x + xcode(person[1],ckey) + '@' + xcode(person[2],ckey)}
return false
}



function fulldispx (link){
var ckey = 13
if (xcode(link[2],ckey)=="NoAddress") {
document.writeln('<B>'+xcode(link[0],ckey)+'</B>&nbsp;&nbsp;&nbsp;'+xcode(link[3],ckey));}
else{document.writeln('<B>'+xcode(link[0],ckey) + '</B>&nbsp;<I>'+xcode(link[1],ckey) + '@' + xcode(link[2],ckey)+ '</I>&nbsp;&nbsp;'+xcode(link[3],ckey))
}
}
function NameOnlyx(link){
var ckey =13
document.write(xcode(link[0],ckey) + '</a>');
}

function namex (link){
var ckey = 13

document.writeln(xcode(link[0],ckey));}

function emailx(link){
var ckey = 13
if (xcode(link[2],ckey)=="NoAddress") {
document.writeln(xcode(link[0],ckey));}
else{document.write ('<A HREF="javascript:void(0)" onClick="return xeadd(clubs.'+xcode(link[5],ckey)+')'+'">'+ xcode(link[0],ckey)+ '</a>')
}
}


function linkclub(numb) {
if (WM_acceptsCookies) {
Set_Cookie ("clubid", numb,"","/")}
else{
parent.clubid = numb}
document.location = "displayinfo.htm" 
}


