function openWindow()  {
	newWindow = window.open('', 'newWin', 'toolbar=no, location=no, scrollbars=yes, resize=yes, width 300, height=200')
	
}

function closeWindow()  {
	if (newWindow && !neWindow.closed) {
		newWindow.close()
		
	}
}


var newwin;

     function launchwin(winurl,winname,winfeatures)
     {
             //This launches a new window and then
             //focuses it if window.focus() is supported.
             newwin = window.open(winurl,winname,winfeatures);
             
             {
                     //delay a bit here because IE4 encounters errors
                     //when trying to focus a recently opened window
                     setTimeout('newwin.focus();',250);
             }
     }