// Called when user clicks submit for mail list
function mailsubmit()
{
  document.formjoin.submit.disabled = true;
  document.formjoin.submit.value = "Working...";
  document.formjoin.submit.style.cursor = 'wait';
  document.formjoin.email.style.cursor = 'wait';
  return true;
}
// pop & closepop based on JavaScript provided by Peter Curtis at www.pcurtis.com
var newwindow;
function pop(url) {
  if (newwindow && !newwindow.closed) {
    newwindow.focus();
    newwindow.document.clear();
  } else {
    newwindow=window.open('','','width=598,height=610,resizable=1');
  }
  newwindow.document.writeln('<html><head><title>DJ Achilles Photos</title>');
  newwindow.document.writeln('<link rel=\"stylesheet\" type=\"text/css\" ' +
                             'href=\"achilles.css\">');

  newwindow.document.writeln('</head>\n<body bgcolor=\"black\"> <center>');
  newwindow.document.writeln('<img src=\"' + url + '\">');
  newwindow.document.writeln('<a href=\"javascript:window.close()\">Close</a>');
  newwindow.document.writeln('</center></body></html>');
  newwindow.document.close();
  return false;
}
function closepop() {
	if (newwindow && !newwindow.closed) {
		newwindow.close();
	} 
}
function imgopen(event)
{
	// W3C uses the passed in event, IE uses window.event
	var ev = event ? event : window.event;
	var srcurl = ev.target? ev.target.src : window.event.srcElement.src;

	var targeturl = srcurl.replace(/thumb/, "pic");
	pop(targeturl);
	return false;
}
