function email(email)
{
	var newemail = email
	
	for (var i=1; i<10; i++)
	{
		newemail = newemail.replace('AT', '@').replace(' ', '').replace('DOT', '.')
	}
	
	var confirmation = confirm ("Click OK to mail: "+ newemail)
	if (confirmation)
		window.location = "mailto:"+ newemail
}

// image is a URL
function openImage(image, prefix)
{
var newwindow = window.open("","","width=640, height=480, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, directories=no, status=no")
newwindow.document.write("<HTML>")
newwindow.document.write("<TITLE>Image Viewer</TITLE>")
newwindow.document.write("<BODY style='margin:0px'>")

if (prefix == 1)
	newwindow.document.write("<img src='../gfx/photos/large/"+image+".jpg' alt='"+image+"' width='640' height='480'>")	
else
	newwindow.document.write("<img src='gfx/photos/large/"+image+".jpg' alt='"+image+"' width='640' height='480'>")

newwindow.document.write("</BODY>")
newwindow.document.write("</HTML>")
}