
	function Is_Exit(){
		if(confirm("您确定要退出[合肥挖网]吗？")){
			top.location.href="default.asp?action=logout";
		}
	}
//获取ID
function $id(id){
	return document.getElementById(id);
	}
	
//获取tagname
function $tag(tanme){
	return document.getElementsByTagName(tanme);
	}
//投票
function Hit(srcid){
	var iddiv_obj=$id("Src_ID"+srcid);
	var hitdiv_obj=$id("Src_HitNum"+srcid);
	var RetCode,RetDes;
  var xmldocumento=GetXMLContent("js/doajax.asp?action=hit&src_id="+srcid);
  RetCode=xmldocumento.selectSingleNode( "//ReturnStr/RetCode/text()").nodeValue;
  RetDes=xmldocumento.selectSingleNode( "//ReturnStr/RetDes/text()").nodeValue;
  switch(RetCode){
  	case "0000" :
  	  hitdiv_obj.innerHTML=(Math.round(hitdiv_obj.innerHTML)+1).toString();
  	  iddiv_obj.innerHTML="已投票";
  	  break;
  	case "0001" :
  	  alert(RetDes);
  	   break;
  	case "0002" :
  	  hitdiv_obj.innerHTML=(Math.round(hitdiv_obj.innerHTML)+1).toString();
  	  iddiv_obj.innerHTML="已投票";
  	  alert(RetDes);
  	   break;
  	case "0003" :
  	  hitdiv_obj.innerHTML=(Math.round(hitdiv_obj.innerHTML)+1).toString();
  	  iddiv_obj.innerHTML="已投票";
  	  alert(RetDes);
  	  break;
  	}
  	window.status=Web_StatusKey;
	}

//创建事件
function CtreateEvent(obj,eventname,func){
	if(navigator.userAgent.indexOf("MSIE")>=0){
		var f =new Function("event",func);
		obj.attachEvent(eventname,f);
		}
		else{
			obj.setAttribute(eventname,func);
			}
	}
//用于获得一个页面的RSS链接
	function getRssUrl(){
		var theurl="";
		theurl=document.getElementsByTagName("link")[3].href
		return theurl;
		}
		
			function Addme(){ 
			url = "http://www.hfdigg.com"; //你自己的主页地址 
			title = "合肥挖网"; //你自己的主页名称 
			window.external.AddFavorite(url,title); 
			}
			
	function copy_text(text){
		window.clipboardData.setData('text',text);
		alert("链接已经复制，您可以直接粘贴!");
	}			