﻿
function copyToClipBoard(){ 
var clipBoardContent=""; 
clipBoardContent+=document.title; 
clipBoardContent+=""; 
clipBoardContent+=this.location.href; 
window.clipboardData.setData("Text",clipBoardContent); 
alert("复制成功，请粘贴到您的QQ/MSN上推荐给您的好友"); 
}
function tp(){var s=document.getElementsByTagName("input");var e='';for(var i=0;i<s.length;i++){if(s[i].type=='radio'&&s[i].checked==true)e=s[i].value;}if(e!=''){returnString='';var PostInfo="FunctionName=tp&i="+e+"";AJpost(PostInfo);alert(returnString);}else{alert('请选择其中一项');}}
function cp(){window.open('wj.aspx?i='+document.getElementById("wjh").innerText+'','投票结果','width=400px,height=300px; left=200px; height:200px');}
function showpanel(e){var n=document.getElementById('smail');n.style.left=event.clientX; n.style.top= document.documentElement.scrollTop+event.clientY-150; n.style.display='block';}
function hidpanel(){var n=document.getElementById('smail');n.style.display='none'}
function appendimg(path){
document.getElementById('txtcontent').innerText+=path;
}
function searchinto(chon){
if(document.getElementById(chon).value=='')
{
alert('请输入要搜索的关键字');
}else
{
returnString=''
var PostInfo="FunctionName=searchinto&wd="+escape(document.getElementById(chon).value)+"";
AJpost(PostInfo);
alert(returnString);
window.open('searchlist.aspx?wd='+returnString);
}
}
function achangespe(a){
for(var i=1;i<=2;i++)
{
if(i==a)
{
document.getElementById('appqsp'+i).className='qntopdis';
document.getElementById('appqspc'+i).style.display='block';
}else
{
document.getElementById('appqsp'+i).className='qntophid';
document.getElementById('appqspc'+i).style.display='none';
}
}
}
function copyTo(path){ 
window.clipboardData.setData("Text",path); 
alert("复制成功"); 
}
