function setCopy(_sTxt){try{clipboardData.setData('Text',_sTxt)}catch(e){}}
function do_copy_it(str)
{   
 setCopy(str);
 alert("已经把该BLOG网址复制到系统剪贴板\n\n您可以使用（Ctrl+V或鼠标右键）粘贴功能\n\n通过其他软件记录或发送给您的朋友。");
}
function $(_sId){
	return document.getElementById(_sId);
}
function hide(_sId){
	$(_sId).style.display = $(_sId).style.display == "none" ? "" : "none";
}
   //图片处理函数
  function changeImageSize(img)
  {
    if(img.width>400)
	{
       img.width=400;
    }
  }
  
 function changeImagewidth(img)
  {
    if(img.width>188)
	{
       img.width=188;
    }
  }  

 function changephotoSize(img)
  {
    var x;
	var y;
	var z;
	x=img.width;
	y=img.height;	
	z=x/y;
	if(z>1)
	{
       img.width=100;
	   img.height=(100/x)*y;
    }else{
       img.height=100;
	   img.width=(100/y)*x;
    }
  }
  
