// declare new window 
var minwin 
var x // variable to pass to the function
		// in this case the URL or name of the file to open in that window
// function to open or focus small window
function winfun(x)
		{
	if (!minwin || minwin.closed){
	minwin = window.open(x,"minwindow","toolbar=no, location=no, directories=no, status=no, menubar=yes, scrollbars=no, resizable=no, copyhistory=no, width=200, height=400");
		}
else
	{
	minwin.focus();
	}
}


// close window
function closewin()
	{
	window.self.close();
	}


