/** * A random assortment of javascript utility routines * * @url $URL: http://cvs.mythtv.org/svn/branches/release-0-22-fixes/mythplugins/mythweb/js/utils.js $ * @date $Date: 2008-02-22 22:15:51 +0000 (Fri, 22 Feb 2008) $ * @version $Revision: 16207 $ * @author $Author: xris $ * @license LGPL * /**/ // For some reason, calling "value" from within onclick doesn't work // Seems to be a name conflict somewhere, but I can't find it. function set_field(id, val) { value(id, val); } // Pass in value to change, otherwise it returns the value of the "e" element function value(e, new_value) { e = $(e); if (!e) return ''; // A