
function copyToClipBoard(title,url){
			 var clipBoardContent="";
			 clipBoardContent+= title;
			 clipBoardContent+= "\n";
			 clipBoardContent+= url;
			 window.clipboardData.setData("Text",clipBoardContent);
			 alert("复制成功，请粘贴到你的QQ/MSN上，将本网页内容推荐给你的好友");
}

function doZoom(size){
                document.getElementById('zoom').style.fontSize=size+'px'
        }


function checkformtext(){
     if (inputbox.alltext.value.length <4){alert("你多少也得写两个字后再提交吧！");inputbox.alltext.focus();return false; };
     if(inputbox.ValidateCode.value=='' || inputbox.ValidateCode.value=='输入右侧验证码'){alert("请输入验证码！");inputbox.ValidateCode.focus();return false; }; return true;}





function insertFlash(elm, url, w, h) {
if (!document.getElementById(elm)) return;
var str = '';
str += '<object width="'+ w +'" height="'+ h +'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0">';
str += '<param name="movie" value="'+ url +'">';
str += '<param name="wmode" value="opaque">';
str += '<param name="quality" value="autohigh">';
str += '<embed width="'+ w +'" height="'+ h +'" src="'+ url +'" quality="autohigh" wmode="opaque" type="application/x-shockwave-flash" plugspace="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"></embed>';
str += '</object>';
document.getElementById(elm).innerHTML = str;
}




function setStyle(title) {
        document.getElementsByTagName("link");
        }











    var time = 400;
    var h = 0;
    function addCount()
    {
        if(time>0)
        {
            time--;
            h = h+5;
        }
        else
        {
            return;
        }
        if(h>278)  //高度
        {
            return;
        }
        document.getElementById("ads").style.display = "";
        document.getElementById("ads").style.height = h+"px";
        setTimeout("addCount()",30); 
    }
    
    window.onload = function showAds()
    {
        addCount();
        setTimeout("noneAds()",3000); //停留时间自己适当调整
    }


    var T = 278;
    var N = 278; //高度
    function noneAds()
    {
        if(T>0)
        {
            T--;
            N = N-5;
        }
        else
        {
            return;
        }
        if(N<0)
        {
            document.getElementById("ads").style.display = "none";
            return;
        }
        
        document.getElementById("ads").style.height = N+"px";
        setTimeout("noneAds()",30); 
    }





