<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