function killErrors() {return true;}
window.onerror = killErrors;
var Ajax_msg="获取失败";

var lastCtrl = new Object();
function DoLocation(ctrl)
{
	if(ctrl != lastCtrl){
		lastCtrl.className = "left_link";
	}
	ctrl.className = "left_link_over";
	lastCtrl = ctrl;
}
function pucker_show(name,no,hiddenclassname,showclassname) {
    //name:命名前缀
    //no:当前鼠标所处对象的序号
    //showclassname:展开状态样式名
    //hiddenclassname:折叠状态样式名
    for (var i=1 ;i<7 ;i++ )
    {
        $('#'+name+i)[0].className=hiddenclassname;
    }
    $('#'+name+no)[0].className=showclassname;
}

function reinitIframe(t0){
	var iframe=$("#"+t0)[0];
	if(document.all&&window.XMLHttpRequest!=undefined)
	{
		var wWidth=document.documentElement.offsetWidth-222;// >ie6
		}
	else
	{
		var wWidth=document.documentElement.offsetWidth-247;
		}
	try{
		var wHeight=window.document.documentElement.offsetHeight-95;
		var bHeight=iframe.contentWindow.document.body.scrollHeight;
		var dHeight=iframe.contentWindow.document.documentElement.scrollHeight;
		var height=Math.max(bHeight,dHeight);
		iframe.width=wWidth;
		if(height<=wHeight)
		{
			iframe.height=wHeight;
			}
		else
		{
			iframe.height=height;
		}
	}catch (ex){}
}

function selectTag(showContent,selfObj){
	// 操作标签
	var tag = $("#sdcms_sub_title")[0].getElementsByTagName("li");
	var taglength = tag.length;
	for(i=0; i<taglength; i++){
		tag[i].className = "unsub";
	}
	selfObj.parentNode.className = "sub";
	// 操作内容
	for(i=0; j=$("#tagContent"+i)[0]; i++){
		j.style.display = "none";
	}
	$('#'+showContent)[0].style.display = "block";
}

function CheckAll(form)
{
  for (var i=0;i<form.elements.length;i++)
    {
    var e = form.elements[i];
    if (e.Name != "chkAll")
       e.checked = form.chkAll.checked;
    }
}

function CopyUrl(target)
{ 
	target.value=get_c.value; 
	target.select();   
	js=get_c.createTextRange();   
	js.execCommand("Copy"); 
	alert("复制成功!"); 
} 

function Display(ID){
	if ($('#'+ID)[0].style.display == "none"){
		$('#'+ID)[0].style.display="block";
	}else{
	    $('#'+ID)[0].style.display="none";
	}
}
