// Javascript functions common across websites


// JavaScript to display bottom of page block

function bottomofpageblock()
{
document.write('Disclaimer:');
document.write('<div class="spacer0px"></div>');
document.write('<a target=_blank href="http://xinbox.com/2ipzrl?subject=GayNorfolk%2Dnet%20support">' + "John A. Harnick" +  '</a>' +' does not endorse the content of external websites and');
document.write('<div class="spacer0px"></div>');
document.write('is not responsible for the content of external websites');
document.write('<div class="spacer5px"></div>');
document.write('<a target=_blank href="http://xinbox.com/2ipzrl?subject=GayNorfolk%2Dnet%20support">' + '<img src="http://gaynorfolk-net.norfolk.on.ca/heart.jpg" width="53" height="50">' + '</a>');
document.write('<div class="spacer5px"></div>');
document.write('John A. Harnick is a member in good standing of');
document.write('<div class="spacer0px"></div>');
document.write('<a href="http://www.cira.ca/" target="_new">' + " CIRA" + '</a>' + " and " + '<a href="http://www.icann.org/" target="_new">' + "ICANN" + '</a>');
document.write('<div class="spacer5px"></div>');
document.write('<img src="http://gaynorfolk-net.norfolk.on.ca/valid-xhtml.png" width="88" height="31">');
document.write('&nbsp;&nbsp;&nbsp;&nbsp;');
document.write('<img src="http://gaynorfolk-net.norfolk.on.ca/valid-css.png" width="88" height="31">');
document.write('<div class="spacer5px"></div>');
document.write('Copyright &#169 2004&mdash;2010 John A. Harnick | All Rights Reserved')
document.write('<div class="spacer10px"></div>');
document.write('Document last modified: ');
document.write(document.lastModified);
}


// Javascript for dropdown-type display box (from flooble.com)

var ie4 = false; if(document.all) { ie4 = true; }
function getObject(id) { if (ie4) { return document.all[id]; } else { return document.getElementById(id); } }
function toggle(link, divId) { var lText = link.innerHTML; var d = getObject(divId);
 if (lText == '+') { link.innerHTML = '-'; d.style.display = 'block'; }
 else { link.innerHTML = '+'; d.style.display = 'none'; } }


// JavaScript to prevent spammers from grabbing email addresses
function mailto(domain,user,other) 
{ 
document.location.href = "mailto:" + user + "@" + domain + other;
}


 