﻿// JScript 文件
/// <reference path="js/all.js" />
   function delxx(tbname,id,alerttext)
	   {
	 ///<summary>删除信息</summary>
    ///<param name="tbname">表的名称</param>
    ///<param name="id">表的id号</param>
        ///<param name="alerttext">警告文字</param>
    ///<returns>刷新当前窗口</returns>
	        var text=confirm(alerttext);
			if(text=='1')
			{
			   yadcdclass.delfun(tbname,id);	        
	            document.location.reload();				  
	        }
	   }
	   
 function openwindow( url, winName, width, height,yesno)
{
    xposition=0; yposition=0;
    if ((parseInt(navigator.appVersion) >= 4 ))
    {
        xposition = (screen.width - width) / 2;
        yposition = (screen.height - height) /2;
    }
        theproperty= "width=" + width + ","
        + "height=" + height + ","
        + "location=no,"
        + "menubar=no,"
        + "resizable=no,"
        + "scrollbars="+yesno+","
        + "status=no,"
        + "titlebar=no,"
        + "toolbar=no,"
        + "hotkeys=no,"
        + "screenx=" + xposition + "," //仅适用于Netscape
        + "screeny=" + yposition + "," //仅适用于Netscape
        + "left=" + xposition + "," //IE
        + "top=200"; //IE
    window.open( url,winName,theproperty );
}

   function updatexx(tbname,zdtext,value,tj,lb,alerttext)
	   {
	        var text=confirm(alerttext);
			if(text=='1')
			{
			   yadcdclass.updatefun(tbname,zdtext,value,tj,lb);	        
	            parent.document.location=parent.document.location;
	        }
	   }
	   function xgwebfun(Keyname,KeyValue,alerttext)
	   {
	     var text=confirm(alerttext);
			if(text=='1')
			{	
//                document.all("Button1").click();
                yadcdclass.adfun(KeyValue)
               parent.document.location=parent.document.location;
	        }
	   }