
function changeIFrame ( fileName) {
	window.desc.location = fileName;
}

function openWindow (page, title) {
	// the following html will be written to the new window
	var html = "<html><head> <title> " + title + " </title> <script language=\"javascript\">"
			+ "function resizeWindow() { "
			+ "window.resizeTo(document.theHorse.width+9, document.theHorse.height+29); } \n"
			+ "</script> <link href=\"cwf.css\" rel=\"stylesheet\" type=\"text/css\"></head> "
			+ "<body class=\"body\"  onload=\"javascript:resizeWindow();\"> "
			+ "<div align=\"center\">"
			+ "<img name=\"theHorse\" alt=\"" + title +"\" src=\"" + page +"\"> "
			+ "</div></body></html>";
	// remove any spaces from title to create window name (no spaces allowed)
	// if winNane is the same as another displayed photo the original window is re-created
	var winName = "";
	string = '' + title;
	splitstring = string.split(" ");
	for (i = 0; i < splitstring.length; i++) winName += splitstring[i];
	//alert ("winName is " + winName);
	// open a new window with no content
    var newWindow = window.open("", winName, "width=0,height=0");
	newWindow.document.open();
	// write the html created above to the window and close
	newWindow.document.write(html);
	newWindow.document.close();
	newWindow.focus();
}

function MM_jumpMenu (targ, selObj, restore) { //v3.0
  eval (targ + ".location='" + selObj.options[selObj.selectedIndex].value + "'");
  if (restore) selObj.selectedIndex = 0;
}
