// start largeIt fxn
function largeIt(theImg,h1,w1,msg) {

/******************************************************************************
So that all options do not have to be specified every time, here are defaults:
******************************************************************************/

// Window (image) height and width are user specified; if non existent, then force size to 300x200.  
// Otherwise, h & w plus 50 padding each side.
	var h;
	var w;

	if ((h1 == undefined) || (w1 == undefined)) {
		h = 300;
		w = 200;
	} else {
		h = h1+50;
		w = w1+50;
	}

// If the "msg" field (final field in the input area) is nonexistent, 
// it defaults to '' or blank rather than displaying "undefined".
	if (msg == undefined) {
	msg = '';
	}		
	
	var openLg = window.open('', '', 'height=' +h+ ',width=' +w+ ',scrollbars,resizable');
	
	openLg.document.write("<html>");
	openLg.document.write("<head>");
	openLg.document.write("<title>Athena Designs</title>");
	openLg.document.write("<link rel='STYLESHEET' type='text/css' href='" +dir+ "athenadesigns.css'>");
	openLg.document.write("</head>");
	openLg.document.write("<body>");
	openLg.document.write("<table border=0 width=100%>");
	openLg.document.write("<tr><td align='center' class='text'>");
	openLg.document.write("<a href=\"javascript\" onClick=\"window.close();\">Close Window</a>");
	openLg.document.write("</td></tr>");
	openLg.document.write("<tr><td align='center' class='text'>");
	openLg.document.write("<img src='" +theImg+ "' border='0'><p>");
	openLg.document.write("" +msg+ "");
	openLg.document.write("</td></tr>");
	openLg.document.write("<tr><td align='center' class='text'>");
	openLg.document.write("<a href=\"javascript\" onClick=\"window.close();\">Close Window</a>");
	openLg.document.write("</td></tr>");
	openLg.document.write("</table>");
	openLg.document.write("</body>");
	openLg.document.write("</html>");
}

/* 
EXAMPLE LINK:
<a href="javascript://" onClick="largeIt('images/ai_lg.gif',100,110,'This is pretty.');"><img src="images/ai.gif"></a>

Note: everything after theImg value can be left blank for defaults (see code above).  Leave out commas.
*/