## Script (Python) "get_owl_relation"
##bind container=container
##bind context=context
##bind namespace=
##bind script=script
##bind subpath=traverse_subpath
##parameters=related_key = ''
##title=
##
# get_owl_relation
#
# get_owl_relation - generate onclick javascript 
#
# (C) 2003-2004 by CC Open Computer Systems for the "Neuroinfo" project
# This is free software avaiable under the GPL license, see:
#   LICENSE.txt, README.txt for details.
# ==================================================================
from Products.PythonScripts.standard import html_quote
request = container.REQUEST
RESPONSE =  request.RESPONSE

onclick = "document.owl_search.search_type.value='1';document.owl_search.pattern.value='%s'" % (related_key)

return onclick

