function display_image(recin) {  // open a browser window and display an album's image and/or promotional text

	if (recin.rec_img[img_nm] != null) {
   		with (recin) {
            nh = Math.round(rec_img[img_h] + rec_img[img_h]*.5);
            nw = Math.round(rec_img[img_w]  + 30);
            if (nh==0) { 
            	nh=200;
            	nw=300; 
        	}
        }
     }
     else {			// no image, so use defaults
     	nh = 310;
     	nw = 310;
     }

 	with (recin) {
    	var windowparms="toolbar=yes,location=no,directories=no,status=yes," + "menubar=yes,scrollbars=yes,resizable=yes,width="+nw+",height="+nh;
        LittleWindow = window.open("", index_name, windowparms);

    	if (recin.rec_img[img_nm] != null) {
	        LittleWindow.document.write("<HTML><HEAD>");
    	    LittleWindow.document.write("<TITLE>" + title + "</TITLE></HEAD> ");
    	    LittleWindow.document.write("<BODY BGCOLOR='ffffff' TEXT=000000><CENTER>");
    	    LittleWindow.document.write("<font size=+1>"+title+"</font><br><hr>");

           if (rec_img[img_nm] != null) {
            	if (myenv == 'file') {
               		LittleWindow.document.write("<IMG SRC='Images/Albums/" + rec_img[img_nm] + "' width="+rec_img[img_w] + " height=" + rec_img[img_h] + "'><BR CLEAR=ALL>");
        	    }
            	else {
            	    LittleWindow.document.write("<IMG SRC='Images/Albums/" + rec_img[img_nm] + "' width="+rec_img[img_w] + " height=" + rec_img[img_h] + "'><BR CLEAR=ALL>");
            	}
            	
            	LittleWindow.document.write("<br><center><font color='green' size=-1>artistic credit: "+rec_img[img_crd]+"</font></center>");
	 	       	if (description) {
	    	        LittleWindow.document.write('<br><a href=onesheets/' + index_name + '.html>-- more information --</a>');
	    	   	}
          }
	       else if (description) {
    	        LittleWindow.document.write('<a href=onesheets/' + index_name + '.html>For more information -- description and notes</a>');
    	   }
    	   
	       LittleWindow.document.write("</center></body></html>");
    	   LittleWindow.document.close();
       }
       else {						// no image, check to see if there's a description
           	if (description) {
           		LittleWindow.location='onesheets/' + index_name + '.html';		// changes the LittleWindow's location to the onesheet
           	}
       }
    }	// with recin
    
}	// display_image(recin)


