	function doZoom(size){
		element=document.all.tags("td");
count=element.length;
		for (i=1;i<count;i++){
  element(i).style.fontSize = size + 'px';
}
element=document.all.tags("span");
count=element.length;
		for (i=1;i<count;i++){
  element(i).style.fontSize = size + 'px';
}
		/*
		var artibody = document.getElementById('artibody');
		if(!artibody){
			return;
		}
		var artibodyChild = artibody.childNodes;
		artibody.style.fontSize = size + 'px';
		//alert(artibodyChild[0].nodeType)
		//再对artibody div内的直接html节点设置fontSize属性
		for(var i = 0; i < artibodyChild.length; i++){
			//if(artibodyChild[i].nodeType == 1){
				artibodyChild[i].style.fontSize = size + 'px';
			//}
		}*/		
	}

function doReturnOrClose(backtimes)
{
    if(this.parent!=null)
    {
        history.go(backtimes);
    }
    else
    {
        window.close();
    }
}
function OpenWin2(Url)
{
  var loc_x=(screen.availWidth-700)/2;
  var loc_y=(screen.availHeight-500)/2;
  
	var Feature='Width=700,Height=500,Left='+ loc_x +',Top='+ loc_y +',help:no,status:no,scrollbars=yes,resizable=yes';
	var win=window.open(Url,'',Feature);
	win.focus();
}

function OpenWin(Url,target)
{
	var win=window.open(Url,target);
	win.focus();
}

function OpenWin(Url,Width,Height)
{
  var loc_x=(screen.availWidth-parseInt(Width))/2;
  var loc_y=(screen.availHeight-parseInt(Height))/2;
  
	var Feature='Width='+ Width +',Height='+ Height +',Left='+ loc_x +',Top='+ loc_y +',help:no,status:no,scrollbars=yes,resizable=yes';
	var win=window.open(Url,'',Feature);
	win.focus();
}
/*选中表格中的CheckBox*/
function selectall(GridID,value)
{ 
    var checkboxes = document.getElementsByTagName('input'); 

    for (i = 0; i < checkboxes.length; i++)
    {
        if(GridID.id==null)
        {
        if(checkboxes[i].id.indexOf(GridID)!=-1)
        {
	        if (value== true)
	        { 
		        checkboxes[i].checked = true; // this checks all the boxes 
	        }
	        else
	        { 
		        checkboxes[i].checked = false; // this unchecks all the boxes 
	        } 
        } 
        }
        else
        {
                if(checkboxes[i].id.indexOf(GridID.id)!=-1)
        {
	        if (value== true)
	        { 
		        checkboxes[i].checked = true; // this checks all the boxes 
	        }
	        else
	        { 
		        checkboxes[i].checked = false; // this unchecks all the boxes 
	        } 
        } 
        }
    }
} 
/*打开对话框窗口*/
function OpenDialog(Url,Width,Height)
{
	var strFeatures="dialogWidth="+ Width +"px;dialogHeight="+ Height +"px;center=yes;middle=yes ;help=no;status=no";
	var today=new Date();
	if(Url.indexOf("?")!=-1)
	{
		Url+="&Time="+today.getMinutes()+"_"+today.getMilliseconds();
	}
	else
	{
		Url+="?Time="+today.getMinutes()+"_"+today.getMilliseconds();
	}
	var WindowResult= window.showModalDialog(Url,'',strFeatures); 
	return WindowResult;
}
/*刷新父窗口*/
function RefreshOpener() 
{ 
	try
	{
		var temp=parent.window.opener.location.href; 
		if(temp.indexOf("#") != -1)
			temp=temp.substring(0,temp.length-1);

		parent.window.opener.location.href=temp; 
		//parent.window.close();
	}
	catch(err)
	{parent.window.close();}
}