
			function Showtool(tool){
				var elem = document.getElementById(tool);
				elem.style.display = "";
			}
			
			function Hidetool(tool){
				if( isObject( document.getElementById(tool) ) ) {
				  var elem = document.getElementById(tool);
				  elem.style.display = "none";
				}
			}
			
			function popup(url, w, h) {
			  if( !w ) w = '500';
			  if( !h ) h = '400';
			  window.open(url, "popupscreen","width=" + w + ",height=" + h + ",menubar=0,toolbar=0, location=0,directories=0,status=0,scrollbars=0,resizable=0,top=100,left=300");
			}
			
			function helpwindow( key ) {
			  window.open( "helpwindow.php?key=" + key, "helpwindow","width=300,height=300,menubar=0,toolbar=0, location=0, directories=0, status=1,scrollbars=1,resizable=1,top=100,left=300");
			}

      function findObj(object) {
        if(document.all) myObject=eval('document.all[object]');
        else if(document.layers) myObject=eval('document.layers[object]');
        else if(document.getElementById && !document.all) myObject=eval('document.getElementById(object)');
        else return;
        return myObject;
      }
      
      function isFunction(a) { return typeof a=='function'; }
      function isObject(a) { return a&&typeof a=='object'||isFunction(a); }
      function isArray(a) { return isObject(a)&&a.constructor==Array; }
      function isUndefined(a) { return typeof a=='undefined'; }
      function isDefined(a) { return !isUndefined(a); }
      function isString(a) { return typeof a=='string'; }
      function isDigit(num) { if (num.length>1) return false; var string="1234567890"; return string.indexOf(num)!=-1; }
    
