    function createEmail(recipient)
     {
       //alert (recipient);
	   url = "sendEmail.htm?open&sendto=" + recipient;
	   window.location.href = url;       
     }

	function sendEmail()
     {
       emailaddress = "";
       if (document.forms[0].sendto.value = "President")emailaddress = "nnorland@earthlink.net";
       document.forms[0].action = "mailto:" +emailaddress  +"?subject=" +document.forms[0].subject.value;
       alert ("emailaddress = " +  emailaddress + "action = " + document.forms[0].action );
       
     }
     
//show the next photo in the array
function showNextPhoto(thisNum) {
	//alert ("get next from " + thisNum);
	if (thisNum < (Photos2.length-1))
	{
		var newNum = thisNum + 1;
		currPos = newNum;
		showArrayLargePhotoandText(newNum , 'photo500','text500','text500','');
	}
	else  alert("No more photos to show.");
}

//show the previous photo in the array
function showPrevPhoto(thisNum) {
	if (thisNum > 1 )
	{
		//alert ("get prev from " + thisNum);
		var newNum = thisNum - 1;
		currPos = newNum;
		showArrayLargePhotoandText(newNum , 'photo500','text500','text500','');
	}
	else  alert("No more photos to show.");
	
}

//show a larger version of an image
function showArrayLargePhotoandText(thisPos, photoID, textID, titleID, priceID) {
	if (thisPos > Photos2.length-1) return false;
	//alert ("starting showArray for " + thisPos + ", " + photoID + ", " + textID);
	//alert ("src = " + Captions[thisPos]);

	//thisPhoto = Photos[thisPos];
	//alert ("photo src = " + thisPhoto);
	//alert ("currPos = " + currPos);
	if (document.images) {
  		  //alert ("change photo for " + thisPos);
		  var tph = document.getElementById(photoID);
		  //alert ("tph.src= " + tph.src.value );
		  tph.setAttribute('src', Photos2[thisPos]); 
   	      var newtext = Captions[thisPos];
 	      var anglepos = newtext.indexOf("<");
          if (anglepos > 0)
           {tph.setAttribute('title', newtext.substring(0,anglepos));}
          else
	       {tph.setAttribute('title', newtext);}
		  var tpha = document.getElementById('lgimgahref');	
	  }
	currPos = thisPos;
	//alert ("new currPos = " + currPos);
	var ta = document.getElementById(textID).firstChild;
	//ta.data = "[" + thisPos + " of " + (Photos2.length - 1) + "] " + Captions[thisPos];
	//ta.data = Captions[thisPos];
	document.getElementById(textID).innerHTML = newtext;
	var sta = document.getElementById("status500").firstChild;
	sta.data = "showing [" + thisPos + " of " + (Photos2.length - 1) + "]";

    //var ti = document.getElementById(titleID).firstChild; 
    //alert (Titles[thisPos]);
	//ti.data = Titles[thisPos];
    //var tp = document.getElementById(priceID).firstChild;
	//tp.data = Prices[thisPos];
	
}

     

