function contactlink(first, last, showname) {
var linkhost = "zodos.com";
var linkname = first + " " + last;
var linktext = first + last.charAt(0);
linktext = linktext.toLowerCase();

if (showname) {
	document.write("<a href=" + "mail" + "to:" + linktext + "@" + linkhost + ">" + linkname + "</a>")
	}
	else {
	document.write("<a href=" + "mail" + "to:" + linktext + "@" + linkhost + ">" + linktext + "@" + linkhost + "</a>")
	}
}

function popup(url){
  var zodoPopup = null;
  var leftPos = 0;
  var topPos = 0;

  if (screen) {
  leftPos = (screen.availWidth-600) / 2;
  topPos = (screen.availHeight-450) / 2;
  }
  zodoPopup = window.open(url, 'Zodos', 'location=no,width=600,height=450,left='+leftPos+',top='+topPos+',scrollbars=no,resizable=no,directories=no,location=no,menubar=no,status=no,toolbar=no'); 
	if (window.focus) {zodoPopup.focus()}
}

function popupMenu(url){
  var zodoPopup = null;
  var leftPos = 0;
  var topPos = 0;

  if (screen) {
  leftPos = (screen.availWidth-800) / 2;
  topPos = (screen.availHeight-450) / 2;
  }
  zodoPopup = window.open(url, 'Zodos', 'location=no,width=800,height=450,left='+leftPos+',top='+topPos+',scrollbars=yes,directories=no,location=no,menubar=no,status=no,toolbar=no'); 
	if (window.focus) {zodoPopup.focus()}
}

function popupStats(url){
  var zodoPopup = null;
  var leftPos = 0;
  var topPos = 0;

  if (screen) {
  leftPos = (screen.availWidth-900) / 2;
  topPos = (screen.availHeight-600) / 2;
  }
  zodoPopup = window.open(url, 'Zodos', 'location=no,width=900,height=600,left='+leftPos+',top='+topPos+',scrollbars=yes,directories=no,location=no,menubar=no,status=no,toolbar=no'); 
	if (window.focus) {zodoPopup.focus()}
}

