js2

<script language="javascript">
  function Getry()
  {
      var ry=new Array;
      ry=showModalDialog('Ryfz.aspx?str='+document.all("txtjb").value,null,"help=no;dialogWidth:300px;dialogHeight:560px;scroll:no");
      if (ry)
      {
          //document.all("txtsjsdh").value=ry[0];
          document.all("txtjb").value=ry[1];           
       }
   }
   function ywydhchange()
  {
      var ywy=new Array;  
      ywy=Web3.Zpsd.Getry(document.all("txtjb").value).value;
      if (ywy[0]=="")
      {         
          document.all("txtjb").value="";
          Getry();          
      }
      else
      {
         //document.all("txtsjsdh").value=ywy[0];
         document.all("txtjb").value=ywy[1];          
       }
  } 
  
  
  </script>

function openSdWindow(url,rurl) { 
    var ret;
    ret=showModalDialog(url,'','dialogWidth:300px;dialogHeight:210px;center:yes;help:no;resizable:no;status:yes;scroll:no' );   
    if(ret)
    {
  if(ret!=0)//更新    
     window.location.replace(rurl);
    }
}

function Ok()
 {
     var ua = navigator.userAgent;
  var ie = navigator.appName == "Microsoft Internet Explorer" ? true:false;    
  var re; 
  if(document.Form1.optsd[0].checked)  
      re=Web3.Zpsd.save1(document.all("hidetype").value,document.all("hideid").value,document.all("txtjb").value).value; 
  else
      re=Web3.Zpsd.save1(document.all("hidetype").value,document.all("txt1").value,document.all("txt2").value,document.all("txtjb").value).value;        
  if (ie)
  {
     var IEversion=parseFloat(ua.substring(ua.indexOf("MSIE ")+5,ua.indexOf(";",ua.indexOf("MSIE "))));
   if (IEversion< 5.5)
   {
    var str  = '<object id=noTipClose classid="clsid:ADB880A6-D8FF-11CF-9377-00AA003B7A11">';
    str += '<param name="Command" value="Close"></object>';
    document.body.insertAdjacentHTML("beforeEnd", str);
    document.all.noTipClose.Click();
   }    
      window.returnValue = re;   
  }
  else
  {
  window.opener.inserObject(null,'modry',re);  
  }  
  if(re!=-1) 
  {
      window.alert("审单成功,更新"+re+"笔!");
      window.close();
   }
   else
       window.alert("审单错误!");
     
 }

转载于:https://www.cnblogs.com/Jinny/archive/2008/05/14/1197322.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值