/****************************测字符串的长度*********************************/
/**
*去除头部和尾部空格*obj参数：strValue，要测试的字符串；len，最大长度,msg出错信息
*返回值:大于最大值，返回false；负责返回true。*/
function checkStrLen(strValue,len,msg)
{
    var newvalue = strValue.replace(/[^\x00-\xff]/g, "**");  
    var length = newvalue.length;
    if(msg==null)
    {
     msg="您";
    }
    if(length>len)
    {
        alert(msg+"输入太长了。");
        return false;
    } 
    else
    {
        return true;
    }
}
function itMouse()
{
 var layerid=document.getElementById("city-pop");
 if(layerid.style.display=="none")
 {
  layerid.style.display="block";
 }
 else{
  layerid.style.display="none"; 
 }
}