// Tools.js
(function($){
Type.registerNamespace('Xtg.Web.Scripts.Tools');Xtg.Web.Scripts.Tools.Tools=function(){}
Xtg.Web.Scripts.Tools.Tools.numberKeysOnly=function(e){var $0=e.which;if($0>31&&($0<48||$0>57)){e.preventDefault();}}
Xtg.Web.Scripts.Tools.Tools.isVisible=function(id){if(document.getElementById(id).style.display.toLowerCase()==='none'){return false;}else{return true;}}
Xtg.Web.Scripts.Tools.Tools.disable=function(id){var $0=$('#'+id);$0.attr('disabled','true');}
Xtg.Web.Scripts.Tools.Tools.isDisabled=function(id){if(!!document.getElementById(id).disabled){return true;}return false;}
Xtg.Web.Scripts.Tools.Tools.enable=function(id){var $0=$('#'+id);$0.attr('disabled','false');}
Xtg.Web.Scripts.Tools.Tools.check=function(id){var $0=$('#'+id);$0.attr('checked','true');}
Xtg.Web.Scripts.Tools.Tools.uncheck=function(id){var $0=$('#'+id);$0.attr('checked','false');}
Xtg.Web.Scripts.Tools.Tools.clearField=function(id){var $0=$('#'+id);$0.attr('value','');}
Xtg.Web.Scripts.Tools.Tools.clearHTML=function(id){document.getElementById(id).innerHTML='';}
Xtg.Web.Scripts.Tools.Tools.registerClass('Xtg.Web.Scripts.Tools.Tools');})(jQuery);// This script was generated using Script# v0.7.4.0

