{
# $Id: query.egw,v 1.5 1995/10/31 10:03:51 adam Exp $
proc fail-response {} {
global sessionWait
set sessionWait -1
}
proc init-response {} {
global sessionWait
set sessionWait 1
}
set t $sessionParms
set databases [lindex $targets($t) 1]
catch {z39 disconnect}
set sessionWait 0
ir z39
z39 failback fail-response
if {[catch {z39 connect $t}]} {
htmlr "Cannot connect to target $t
"
htmlr "