set_form_variables
# url_stub fpx_filename width height jpeg_front
set referer [ns_set get [ns_conn headers $conn] Referer]
set complete_backlink ""
if { $referer != "" } {
set complete_backlink "
You can go back to what you were reading by using the Back button on your browser. Or you can try clicking here to go back"
}
# big images don't work well with Java
if { $width > 256 && $height > 256 } {
set new_width [expr $width / 2 ]
set new_height [expr $height / 2]
} else {
# not all that big an image
set new_width $width
set new_height $height
}
ns_return $conn 200 text/html "