function popup(url,wid,hei){
	newwindow=window.open(url,"photo","width=" + wid +",height=" + hei +",resizable,location=no,scrollbars=yes,status=no,screenX=150,screenY=150,top=150,left=150");
	newwindow.focus();
}
function changeImage(filename){
   document.mainimage.src = filename;
}
function changeZoom(filename){
   document.getElementById("zoomimage").href = filename;
}
function changeImageM(filename){
   document.mainimage.src = filename;
   document.getElementById("zoomimage").href = filename;
}
var bigWin = window.opener;
function mainWin(target){
	if ( bigWin && !bigWin.closed )
	{
		window.opener.location.href = target;
		window.opener.focus();
	}
	else
	{
		bigWin = window.open('','bigWin','');
		window.bigWin.location.href = target;
		window.bigWin.focus();
	}
	self.close();
}
function pass(){
   return;
}
//begin newsletter sign up script
function checkWholeForm(theForm) {
  var why = "";
  why += checkEmail(theForm);
  if (why != "") {
    alert(why);
    return false;
  }
  return true;
}	
function checkEmail (strng) {
  var error="";
  if (strng == "") {
    error = "You didn't enter an email address.\n";
  }
  var emailFilter=/^.+@.+$/;
  if (!(emailFilter.test(strng))) { 
    error = "Please enter a valid email address.\n";
  } else {
    //test email for illegal characters
    var illegalChars= /[\(\)\,\;\:\\\"\[\]]/
    if (strng.match(illegalChars)) {
      error = "The email address contains illegal characters.\n";
    }
  }
  return error;
}
//end newsletter sign up script
