var t_DiglogX=0;
var t_DiglogY=0;
var t_DiglogW=0;
var t_DiglogH=0;
var xmlHttp="";
/****************************去全角、半角空格*********************************/
/**
*去除头部和尾部空格*obj参数：含有string的对象*返回值:去除了空格后的对象*/
function trimspace(obj)
{
	String.prototype.Trim = function()
	{
		return this.replace(/(^\s*)|(\s*$)/g, "");
	}			
	obj.value = obj.value.Trim();
}
/****************************测字符串的长度*********************************/
/**
*去除头部和尾部空格*obj参数：strValue，要测试的字符串；len，最大长度,msg出错信息
*返回值:大于最大值，返回false；负责返回true。*/


function showxieyi(id){
	 if($$(id).style.display==''){
		 $$(id).style.display='none';}
	 else{$$(id).style.display='';}
}
function itMouse()
{
	var layerid=document.getElementById("city-pop");
	if(layerid.style.display=="none")
	{
		layerid.style.display="block";
	}
	else{
		layerid.style.display="none";	
	}
}
function copyToClipBoard(){
    var clipBoardContent="";
    clipBoardContent+=document.title;
    clipBoardContent+="";
    clipBoardContent+=window.location.href;
    window.clipboardData.setData("Text",clipBoardContent);
    alert("复制成功，请粘贴到你的QQ/MSN上推荐给你的好友");
}

function copyTo(val,tt){
	window.clipboardData.setData("Text",val);
	if(tt=="")
		tt="QQ/MSN";
    alert("复制成功，请粘贴到你的"+tt+"上推荐给你的好友");
}

