<!-- 
function killErrors() {
return true;
}
window.onerror = killErrors;

function mOver(src){
      src.style.background = "url(images/Tit_05.gif)";
	  src.style.color = "#0084BD";
}
function mOut(src){
      src.style.background = "url(images/Tit_04.gif)";
	  src.style.color = "#000000";
}

/*打开关闭地区选择*/
var Ukey
Ukey=0;
function UBBHelp(){
  if(Ukey==0){
    Ukey=1;
    UHelp.style.display="";
  }else{
    Ukey=0;
    UHelp.style.display="none";
  }
}

function oCopy(str)
{
var clipBoardContent=str;
window.clipboardData.setData("Text",clipBoardContent);
alert("复制成功，您可以粘贴到你的 MSN/QQ/Blog/BBS 上推荐给你的好友");
}

function DrawImage(ImgD){
   var image=new Image();
   image.src=ImgD.src;
   if(image.width>0 && image.height>0){
    flag=true;
    if(image.width/image.height>= 160/160){
     if(image.width>160){  
     ImgD.width=160;
     ImgD.height=(image.height*160)/image.width;
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }

     }
    else{
     if(image.height>160){  
     ImgD.height=160;
     ImgD.width=(image.width*160)/image.height;     
     }else{
     ImgD.width=image.width;  
     ImgD.height=image.height;
     }

     }
    }
   }


// javascript 操作Cookies
function SetCookie(name,value)//两个参数，一个是cookie的名子，一个是值
{
    var Days = 365; //此 cookie 将被保存 30 天
    var exp  = new Date();    //new Date("December 31, 9998");
    exp.setTime(exp.getTime() + Days*24*60*60*1000);
    document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
}
function getCookie(name)//取cookies函数        
{
    var err = "    这里是个性化的即时备忘区域，在这里您可以：\n\n1.在这个窗口中输入您的备忘录；\n2.输入您自己的问候语；\n3.随心输入任意内容。\n\n随手输入，随时提醒，方便快捷\n方便即时贴，随心速记";
    var arr = document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));
    if(arr != null) return unescape(arr[2]); return err;
}

function textLimitCheck(thisArea, maxLength){
  if (thisArea.value.length > maxLength){
    alert(maxLength + ' 个字限制. \r超出的将自动去除.');
    thisArea.value = thisArea.value.substring(0, maxLength);
    thisArea.focus();
  }
    messageCount.innerText = thisArea.value.length;
}

//检查内容是否过期
function GetIsOver(str){
   var vd=new Date(str);
   if(vd<new Date()){isover.innerHTML="<font color=#FF0000>内容已过期</font>";}
}

// -->

