
function show_gallery()
{
	var index = document.frm_gallery.sel_gallery.selectedIndex;
	var selection = document.frm_gallery.sel_gallery.options[index].value;
	if(selection != "selection") {
	   document.location = selection;
	}
}

function show_window(x)
{
	//Movie_window: no spaces allowed in this!
	//The title of new window is in the <TITLE> of subject.html
	//Include this fxn for future use.

	window.top.open(x,"Movie_window", "width=200,height=100,scrollbars=yes,toolbar=no");

}

function show_it(URL)
{
	opener.location.href= URL;


}

function create_gallery()
{

	document.write("<form name='frm_gallery'>\n");

	document.write("<select name='sel_gallery' onChange='show_gallery()'>\n");

	document.write("<option value='selection'>Select a gallery\n");
		
		for(var i=1; i< 23; i++)
		{
			document.write("<option value=gallery"+i+".html>Gallery "+i+"\n");
		}

	document.write("</select>\n");
	document.write("</form>\n");

}


function create_header()
{
	
	document.write ("<table border=0>\n<tr>\n<td width='100%' class='left'>");
	document.write ("<img src='logo.jpg' border=0></td>\n");
	document.write ("<td align=right width='100%'>");
	create_gallery();
	document.write ("</td>\n</tr>\n</table>\n<hr>");

}

function search(URL)
{
 opener.location = URL;
}
