<!-- Begin

function displaycontact(emailarray){
if (typeof emailarray[0]=="object"){ //if array passed consists of multiple elements
document.write('<table border="0" width="100%" height="100%" cellpadding="4" cellspacing="0">') //create a table

for (i=0; i<emailarray.length; i++){
if(emailarray[i][2]==" "){
document.write('<tr><td width="50%" height="16" style="border-bottom-style: solid; border-bottom-width: 1px"><font class="MainText">' + emailarray[i][0] +'</font></td><td width="50%" height="16" style="border-bottom-style: solid; border-bottom-width: 1px"><font class="MainText">' + emailarray[i][1] + '</font></td></tr>')
}
else{
document.write('<tr><td width="50%" height="16" style="border-bottom-style: solid; border-bottom-width: 1px"><font class="MainText">' + emailarray[i][0] +'</font></td><td width="50%" height="16" style="border-bottom-style: solid; border-bottom-width: 1px"><a href="mailto:' + modifyemail(emailarray[i][2])+ '">'+ emailarray[i][1] + '</a></td></tr>')
}
}
document.write('</table>')
}

else //else if it is a single array element
document.write('<a href="mailto:' + modifyemail(emailarray[2])+ '">' + emailarray[1] + '</a>') //else, just write text
}

function modifyemail(emailitem){
var modified=emailitem.replace(/\[at]/gi, "@")
modified=modified.replace(/\[dot]/gi, ".")
return modified
}

//  End -->
