function signature(obj) {
	if(obj.style.maxHeightIE != '') {
		var height = (obj.scrollHeight > parseInt(obj.style.maxHeightIE)) ? obj.style.maxHeightIE : obj.scrollHeight;
		if(obj.innerHTML.indexOf('<IMG ') == -1) {
			obj.style.maxHeightIE = '';
		}
		return height;
	}
}

function geturl(posturl,obj,btn)
{ 
  //try{
	if(btn!='')
	{
	document.getElementById(btn).disabled=true;
	}
	var topksxhr=new LabelAjax(); 
	topksxhr.open("get",posturl,true);
	topksxhr.onreadystatechange=function(){
		  if(topksxhr.readyState==1)
				  {
					obj.innerHTML="<span align='center'><img src='/images/loading.gif'>正在加载数据...</span>";
				  }
				  else if(topksxhr.readyState==2 || topksxhr.readyState==3)
				  {
				   obj.innerHTML="<span align='center'><img src='/images/loading.gif'>正在读取数据...</span>";
				   }
				  else if(topksxhr.readyState==4)
				  {						  
					 if (topksxhr.status==200)
					 {var s=topksxhr.responseText;
					  obj.innerHTML=s;
					  if(btn!='')
					  {
					  	document.getElementById(btn).disabled=false;
					  }
					 }
				  }
				}
	topksxhr.send(null);  
  //}
  //catch(e)
  //{}
}
function resizepic(o)
{ 
var maxwidth=550;   //定义最大宽度
var maxheight=800;  //定义最大高度
var a=new Image();
a.src=o.src
if(a.width > maxwidth)
{
  o.style.width=maxwidth;
}
if (a.height> maxheight)
{
  o.style.height=maxheight;
 }
}
//无级缩放图片大小
function bbimg(o)
{
  var zoom=parseInt(o.style.zoom, 10)||100;
  zoom+=event.wheelDelta/12;
  if (zoom>0) o.style.zoom=zoom+'%';
  return false;
}

function CopyToText(str)
{        
	window.clipboardData.setData('text',str);
}