
function gundong()
{
    var speed=15//速度数值越大速度越慢
    $("Pic_Pro2").innerHTML=$("Pic_Pro1").innerHTML
    function Marquee3(){
    if($("Pic_Pro2").offsetWidth-$("Pic_Pro").scrollLeft<=0)
    $("Pic_Pro").scrollLeft-=$("Pic_Pro1").offsetWidth
    else{
    $("Pic_Pro").scrollLeft++
    }
    }
    var MyMar3=setInterval(Marquee3,speed)
    $("Pic_Pro").onmouseover=function() {clearInterval(MyMar3)}
    $("Pic_Pro").onmouseout=function() {MyMar3=setInterval(Marquee3,speed)}

}   
function GoSerch(url)
{
    var str=$("txtSerch").value==null?"":$("txtSerch").value;
    window.open(url+"?strFilter="+encodeURI(str));
}
function setFont(str)
{
    $("note").className=str;
    if(str=="Mes_Note")
    {
        $("small").style.color="gray";
        $("big").style.color="blue";
    }else
    {
        $("small").style.color="blue";
        $("big").style.color="gray";
    }
}
function PL()
{
    if($("txtPL").value==""||$("txtPL").value==null)
    {
        alert("请输入评论内容！");
    }
    else
    {
       var url="../PL/AddPL.aspx?strID="+$("NoteID").value+"&note="+encodeURI($("txtPL").value)+"&peo="+encodeURI($("PLName").value); 
       ExecuteMethod("get",url,null,PLResulet);
    }
}
function PLResulet(strJson)
{
    if(strJson=="-1")
    {
        alert("网络传输错误，请您稍后评论");
    }
    else
    {
        window.open("../PL/PLNote.aspx?strID="+strJson);
    }
}
function keyup()
{
    if($("PLName").value=="匿名评论")
    {
      $("PLName").style.color="gray";
    }
    else
    {
      $("PLName").style.color="black";
    }
}
function Checkblur()
{
    if($("PLName").value==null||$("PLName").value=="")
    {
        $("PLName").style.color="gray";
        $("PLName").value="匿名评论";
    }
}
function focu()
{
    if($("PLName").value=="匿名评论")
    {
       $("PLName").value="";
       $("PLName").style.color="gray";
    }
    else
    {
        $("PLName").style.color="black";
    }
}
function GetPL()
{
    var url="../PL/GetPLCount.aspx?strID="+$("NoteID").value;
    ExecuteMethod("get",url,null,SetCount);
}
function SetCount(str)
{
    $("PLCount").innerHTML=str;
}