{
# $Id: query.egw,v 1.6 1995/10/31 16:56:23 adam Exp $
proc fail-response {} {
global sessionWait
set sessionWait -1
}
proc ok-response {} {
global sessionWait
set sessionWait 1
}
global host
set host $sessionParms
set databases [lindex $targets($host) 1]
catch {z39 disconnect}
set sessionWait 0
ir z39
z39 failback fail-response
z39 callback ok-response
if {[catch {z39 connect $host}]} {
htmlr "Cannot connect to target ${host}
"
htmlr "