/*
Email Obfuscator
JGB 02/05/02
*/

function emailob(email1, email2, linktext) {
	if (linktext=="")
		document.write("<a href=" + "mail" + "to:" + email1 + "@" + email2 + ">" + email1 + "@" + email2 + "</a>");
	else
		document.write("<a href=" + "mail" + "to:" + email1 + "@" + email2 + ">" + linktext + "</a>");
	return true
}


/*
Pop up image viewer script II
Source: JavaScript Kit (http://javascriptkit.com)
Modified by: JGB 12/03/02

Call this function with a link, as follows:

    <a href="test.htm" onClick="popimage('test.gif',120,31);return false">Test</a>

*/

function popimage(imagesrc,winwidth,winheight,wintitle){
  var look='width='+winwidth+',height='+winheight+','
  popwin=window.open("","",look)
  popwin.document.open()
  popwin.document.write('<title>'+wintitle+'</title><body style=\"background:#FFFFCC;padding:0px;margin:0px;\"><img src="'+imagesrc+'"></body>')
  popwin.document.close()
}
