function killErrors() {
return true;
}
window.onerror = killErrors;

function externalLinks()
{
	if (!document.getElementsByTagName)
		return;
	var anchors = document.getElementsByTagName("a");
	for (var i = 0; i < anchors.length; i++)
	{
		var anchor = anchors[i];
		if (anchor.getAttribute("href") && anchor.getAttribute("rel") == "external")
			anchor.target = "_blank";
	}
}
window.onload = externalLinks; 

 


// 自动 COPY 代码开始
function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}
function JM_cc(ob){
	var obj=MM_findObj(ob); if (obj) { 
	obj.select();js=obj.createTextRange();js.execCommand("Copy");}
 }

// 自动 COPY 代码结束


// 信息层 开始 
document.write("<style><!--.Mess{position:absolute;width:300px;z-index: 3;display:none;background:#FFFFFF} #mDivMessage{padding: 12px 3px 12px 3px;}--></style>")
document.write("<div class='Mess' id='mDiv'><div class='c2 nC'><div class='oC'><div class='T'>用户信息提示</div><div class='M'><div  id='mDivMessage'></div><input type='button' onclick='doDivClose()' class='nInputButton' value='关闭'></div></div></div></div> ")

function doDivClose()
{
	var oDiv=document.getElementById("mDiv");
	oDiv.style.display="none";
}
function doDiv(oMessage,event)
{  
	var oDiv=document.getElementById("mDiv");
 
	var oDivMessage=document.getElementById("mDivMessage");
 
	oDiv.style.display="block";
	 
		
	oDiv.style.left=(event.clientX -150) + 'px'; 
	oDiv.style.top=(event.clientY -100)+ 'px'; 

	oDivMessage.innerHTML=oMessage;
	//window.setInterval(doDivClose, 5000);
}
// 信息层 结束
function doPlay()
{
	document.write('<OBJECT id=Exobud  style="WIDTH: 100%; HEIGHT: 64px" type=application/x-oleobject border=0  classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6> <PARAM NAME="URL" VALUE="'+strFilename+'"></OBJECT>')
}
function GoTo(strUrl){
	location.href=strUrl;
}

function doSearch()
{

	if(document.getElementById("SearchKey").value!="")
	{
		o = document.getElementsByName("Se")
		location.href="/IconSet/IconSearch.aspx?SearchKey="+document.getElementById("SearchKey").value;
		
	}

}
function doS(oHizi)
{
	oClassName=oHizi.className;
	oHizi.className='H';
}
function doH(oHizi)
{
	oHizi.className=oClassName;
}

function CopyInBoard(Url) 
{ 			
	window.clipboardData.setData('text',Url)
	alert('网址复制成功啦!');			
}
function Del(strUrl)
{
var truthBeTold = window.confirm("确认删除！");
if (truthBeTold) {
window.location.href=strUrl;
}  else  {}
}
 /* 滚动 */
var gScroll;
var gSpeed = 30;

function fScroll() {
	var a = document.getElementById("ScrollArea");
	var b = document.getElementById("ScrollDiv1");
	if(a.scrollLeft>=b.scrollWidth){
		a.scrollLeft=0;
	}else{
		a.scrollLeft++;
	}
}
function fStopScroll() {
	clearInterval(gScroll);
}
function fContScroll() {
	gScroll=setInterval(fScroll,gSpeed);
}
function fStartScroll() {
	document.getElementById('ScrollDiv2').innerHTML=document.getElementById('ScrollDiv1').innerHTML;
	var a = document.getElementById('ScrollDiv1');
	var b = a.getElementsByTagName('img');
	var c = a.getElementsByTagName('list');
	for(var i=0;i<b.length;i++){
		b[i].onmouseover = fStopScroll;
		b[i].onmouseout = fContScroll;
		b[i].parentNode.target = "_blank";
	}
	gScroll=setInterval(fScroll,gSpeed);	
}

