  //数字字符串检测函数：
    function number_Validator(obj)
    {
      var checkOK = "0123456789";
      var checkStr = obj.value;
      var allValid = true;
      var decPoints = 0;
      var allNum = "";
      for (i = 0;  i < checkStr.length;  i++)
      {
        ch = checkStr.charAt(i);
        for (j = 0;  j < checkOK.length;  j++)
          if (ch == checkOK.charAt(j))
            break;
        if (j == checkOK.length)
        {
          allValid = false;
          break;
        }
        allNum += ch;
      }

      if (checkStr=="") //空字符
        allValid = false;

      if (!allValid)
      {
        alert("只能输入整数字符串!");
        return (false);
      }
      return (true);
    }

  //打开窗口：
    function openwin(url, l, t, w, h)
    { open(url,'','toolbar=yes, location=no, status=yes, menubar=yes, scrollbars=yes, resizable=yes, width=' + w + ', height=' + h + ', left=' + l + ', top=' + t); }

  //打开窗口-1：
    function openwin1(url, l, t, w, h)
    { //alert('toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=' + w + ', height=' + h + ', left=' + l + ', top=' + t);
      open(url,'','toolbar=no, location=no, status=no, menubar=no, scrollbars=yes, resizable=no, width=' + w + ', height=' + h + ', left=' + l + ', top=' + t);
    }

  //窗口最大化：
    function MaxWindow()
    { var str='<object id=maxwin type="application/x-oleobject" classid="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11"><param name="Command" value="MAXIMIZE"></object>';
      if(!document.getElementById("maxwin"))
      {
        document.body.insertAdjacentHTML("BeforeEnd",str);
      }
      maxwin.Click();
      //MaxAct=1;
    }

  //改变页面字体大小:
  function doZoom(size)
  {
    document.getElementById('zoom').style.fontSize=size + 'pt';
  }

  //鼠标滚轮改变图片大小:
  function ImageScroll(img)
  {
    var zoom=parseInt(img.style.zoom, 10)||100;
    zoom+=event.wheelDelta/12;
    if (zoom>0)
      img.style.zoom=zoom+'%';
    return false;
  }

  //添加 Flash:
  function ad_flash(u, w, h)
  {
    document.write ("<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width="+w+" height="+h+"><param name='movie' value="+u+"><param name='quality' value='high'><param name='wmode' value='opaque'><embed src="+u+" quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash'  param name='wmode' value='opaque' width="+w+" height="+h+"></embed></object>");
  }

  //添加图片:
  function ad_pic(a, s, w, h)
  {
    document.write ("<a href="+a+ " target=_blank><img src="+s+" border=0 width="+w+" height="+h+"></a>");
  }

  //trim函数:
  function trim(str){
	var ret = "";
	for(var i = 0; i < str.length; i++){
		if(str.charAt(i) != ' '){
			ret += str.charAt(i);
		}
	}
	return ret;
  }