lgPicWindow = new Object;
picWindow = new Object;
textWindow = new Object;

lgPicWindow.closed = true;
picWindow.closed = true;
textWindow.closed = true;


function openLgPicWindow() {
	if ( lgPicWindow.closed ) 
		lgPicWindow = window.open("lgpicwin.html","lgPicWindow","height=500,width=660");
	else	
		lgPicWindow.focus ();
}

function openPicWindow() {
	if ( picWindow.closed ) 
		picWindow = window.open("picwin.html","picWindow","height=260,width=340");
	else	
		picWindow.focus ();
}

function openTextWindow() {
	if ( textWindow.closed ) 
		textWindow = window.open("textwin.html","textWindow","height=600,width=800,scrollbars=yes");
	else	
		textWindow.focus ();
}


function closeWindow() {	
	if ( ! lgPicWindow.closed )
		lgPicWindow.close ();
	if ( ! picWindow.closed )
		picWindow.close ();
	if ( ! textWindow.closed )
		textWindow.close ();

}
