function ResumeError() { 
return true; 
} 
window.onerror = ResumeError; 

function doClick(o){
	 o.className="nav_current";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=8;i++){
	   id ="nav"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("sub"+i);
	   if(id != o.id){
	   	 j.className="nav_link";
	   	 e.style.display = "none";
	   }else{
			e.style.display = "block";
	   }
	 }
	 }
function doClick_news(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 var f;
	 for(var i=1;i<=4;i++){
	   id ="news"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_news"+i);
	   f = document.getElementById("d_new"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
		 f.style.display = "none";
	   }else{
		e.style.display = "block";
		f.style.display = "block";
	   }
	 }
}
function doClick_forms(o){
	 o.className="box_outs";
	 var j;
	 var id;
	 var e;
	 var f;
	 for(var i=1;i<=4;i++){
	   id ="forms"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_forms"+i);
	   f = document.getElementById("d_form"+i);
	   if(id != o.id){
	   	 j.className="box_ins";
	   	 e.style.display = "none";
		 f.style.display = "none";
	   }else{
		e.style.display = "block";
		f.style.display = "block";
	   }
	 }
}

function doClick_formrs(o){
	 o.className="box_outs";
	 var j;
	 var id;
	 var e;
	 var f;
	 for(var i=1;i<=4;i++){
	   id ="formrs"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_formrs"+i);
	   f = document.getElementById("d_formr"+i);
	   if(id != o.id){
	   	 j.className="box_ins";
	   	 e.style.display = "none";
		 f.style.display = "none";
	   }else{
		e.style.display = "block";
		f.style.display = "block";
	   }
	 }
}

function doClick_info(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 var f;
	 for(var i=1;i<=4;i++){
	   id ="info"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_info"+i);
	   f = document.getElementById("d_infor"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
		 f.style.display = "none";
	   }else{
		e.style.display = "block";
		f.style.display = "block";
	   }
	 }
}
function doClick_infoo(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 var f;
	 for(var i=1;i<=3;i++){
	   id ="infoo"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_infoo"+i);
	   f = document.getElementById("d_infoor"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
		 f.style.display = "none";
	   }else{
		e.style.display = "block";
		f.style.display = "block";
	   }
	 }
}

function doClick_inf(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 var f;
	 for(var i=1;i<=4;i++){
	   id ="inf"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_inf"+i);
	   f = document.getElementById("d_infr"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
		 f.style.display = "none";
	   }else{
		e.style.display = "block";
		f.style.display = "block";
	   }
	 }
}

function doClick_infk(o){
	 o.className="boxx_out";
	 var j;
	 var id;
	 var e;
	 var f;
	 for(var i=1;i<=4;i++){
	   id ="infk"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_infk"+i);
	   f = document.getElementById("d_infkr"+i);
	   if(id != o.id){
	   	 j.className="boxx_in";
	   	 e.style.display = "none";
		 f.style.display = "none";
	   }else{
		e.style.display = "block";
		f.style.display = "block";
	   }
	 }
}

function doClick_recomend(o){
	o.className="box_out";
	var j;
	var id;
	var e;
	for(var i=1;i<=5;i++){
	  id ="recomend"+i;
	  j = document.getElementById(id);
	  e = document.getElementById("d_con"+i);
	  if(id != o.id){
			j.className="box_in";
	   	e.style.display = "none";
	  }else{
			e.style.display = "block";
  	}
	}
}

function doClick_kind(o){
	o.className="box_out";
	var j;
	var id;
	var e;
	for(var i=1;i<=3;i++){
	  id ="kinds"+i;
	  j = document.getElementById(id);
	  e = document.getElementById("d_kind"+i);
	  if(id != o.id){
			j.className="box_in";
	   	e.style.display = "none";
	  }else{
			e.style.display = "block";
  	}
	}
}

function doClick_price(o){
	o.className="box_out";
	var j;
	var id;
	var s;
	var s1;
		for(var i=1;i<=6;i++){
	  id ="price"+i;
	  j = document.getElementById(id);
	  s = document.getElementById("d_price"+i);
	  f = document.getElementById("d_pricer"+i);
	  if(id != o.id){
			j.className="box_in";
	   	f.style.display = "none";
		s.style.display = "none";
	  }else{
			f.style.display = "block"; 
			s.style.display = "block"; 
  	}
	}
}


function AC_AddExtension(src, ext)
{
  if (src.indexOf('?') != -1)
    return src.replace(/\?/, ext+'?'); 
  else
    return src + ext;
}

function AC_Generateobj(objAttrs, params, embedAttrs) 
{ 
  var str = '<object ';
  for (var i in objAttrs)
    str += i + '="' + objAttrs[i] + '" ';
  str += '>';
  for (var i in params)
    str += '<param name="' + i + '" value="' + params[i] + '" /> ';
  str += '<embed ';
  for (var i in embedAttrs)
    str += i + '="' + embedAttrs[i] + '" ';
  str += ' ></embed></object>';

  document.write(str);
}

function AC_FL_RunContent(){
  var ret = 
    AC_GetArgs
    (  arguments, ".swf", "movie", "clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
     , "application/x-shockwave-flash"
    );
  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);
}

function doClick_up(o){
	 o.className="up_link";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=4;i++){
	   id ="up"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("up_con"+i);
	   if(id != o.id){
	   	 j.className="sp";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }


if (top.location !== self.location) {
top.location=self.location;
}

function doZoom(size){
	document.getElementById('textbody').style.fontSize=size+'px'
}

function doClick_inin(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="inin"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_cons"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
	 }

function doClick_fl(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="fl"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_fl"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
}

function doClick_inins(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=2;i++){
	   id ="inins"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_conss"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
}

function doClick_inin(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=5;i++){
	   id ="inin"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_cons"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
}
function doClick_ininr(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=5;i++){
	   id ="ininr"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_consr"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
}


function doClick_book(o){
	 o.className="box_out";
	 var j;
	 var id;
	 var e;
	 for(var i=1;i<=5;i++){
	   id ="book"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("d_book"+i);
	   if(id != o.id){
	   	 j.className="box_in";
	   	 e.style.display = "none";
	   }else{
		e.style.display = "block";
	   }
	 }
}

window.onload=function(){
	var g=document.getElementById("infozone");
	window.setInterval(function(){scrollup(g,20,0);},3000);
	var e=document.getElementById("infozone1");
	window.setInterval(function(){scrollup1(e,20,0);},3000);
	var f=document.getElementById("infozone2");
	window.setInterval(function(){scrollup2(f,20,0);},3000);
	var z=document.getElementById("infozone3");
	window.setInterval(function(){scrollup3(z,20,0);},3000);
}

function scrollup3(z,d,c){
	if(d==c){
		var t=z.firstChild.cloneNode(true);
		z.removeChild(g.firstChild);
		z.appendChild(t);
		t.style.marginTop=z.firstChild.style.marginTop="0px";

	}
	else{
		var s=3,c=c+s,l=(c>=d?c-d:0);
		z.firstChild.style.marginTop=-c+l+"px";
		window.setTimeout(function(){scrollup(z,d,c-l)},100);

	}
}
function scrollup2(f,d,c){
	if(d==c){
		var t=f.firstChild.cloneNode(true);
		f.removeChild(g.firstChild);
		f.appendChild(t);
		t.style.marginTop=f.firstChild.style.marginTop="0px";

	}
	else{
		var s=3,c=c+s,l=(c>=d?c-d:0);
		f.firstChild.style.marginTop=-c+l+"px";
		window.setTimeout(function(){scrollup(f,d,c-l)},100);

	}
}

function scrollup1(e,d,c){
	if(d==c){
		var t=e.firstChild.cloneNode(true);
		e.removeChild(g.firstChild);
		e.appendChild(t);
		t.style.marginTop=e.firstChild.style.marginTop="0px";

	}
	else{
		var s=3,c=c+s,l=(c>=d?c-d:0);
		e.firstChild.style.marginTop=-c+l+"px";
		window.setTimeout(function(){scrollup(e,d,c-l)},100);

	}
}

function scrollup(g,d,c){
	if(d==c){
		var t=g.firstChild.cloneNode(true);
		g.removeChild(g.firstChild);
		g.appendChild(t);
		t.style.marginTop=g.firstChild.style.marginTop="0px";

	}
	else{
		var s=3,c=c+s,l=(c>=d?c-d:0);
		g.firstChild.style.marginTop=-c+l+"px";
		window.setTimeout(function(){scrollup(g,d,c-l)},100);

	}
}
//容错脚本
function ResumeError()
 {
        return true;
    }
window.onerror = ResumeError;

////鼠标右键绝对禁止法
function showmenuie5(){ 
var rightedge=window.document.documentElement.clientWidth-event.clientX 
var bottomedge=window.document.documentElement.clientHeight-event.clientY 
if (rightedge<ie5menu.offsetWidth) 
ie5menu.style.left=window.document.documentElement.scrollLeft+event.clientX-ie5menu.offsetWidth 
else 
ie5menu.style.left=window.document.documentElement.scrollLeft+event.clientX 
if (bottomedge<ie5menu.offsetHeight) 
ie5menu.style.top=window.document.documentElement.scrollTop+event.clientY-ie5menu.offsetHeight 
else 
ie5menu.style.top=window.document.documentElement.scrollTop+event.clientY 
ie5menu.style.visibility="visible" 
return false 
} 
function hidemenuie5(){ 
ie5menu.style.visibility="hidden" 
} 
function highlightie5(){ 
if (event.srcElement.className=="menuitems"){ 
event.srcElement.style.backgroundColor="highlight" 
event.srcElement.style.color="white" 
} 
} 
function lowlightie5(){ 
if (event.srcElement.className=="menuitems"){ 
event.srcElement.style.backgroundColor="" 
event.srcElement.style.color="#000000" 
} 
} 
function ChangeBG(){ oEl=event.srcElement } 

//
//if (window.Event) 
//document.captureEvents(Event.MOUSEUP); 
//function nocontextmenu() 
//{
//event.cancelBubble = true
//event.returnValue = false;
//return false;
//}
//function norightclick(e) 
//{
//if (window.Event) 
//{
//if (e.which == 2 || e.which == 3)
//return false;
//}
//else
//if (event.button == 2 || event.button == 3)
//{
//event.cancelBubble = true
//event.returnValue = false;
//return false;
//}
//}
//document.oncontextmenu = nocontextmenu; // for IE5+
//document.onmousedown = norightclick; // for all others
//
//
 //检查是否中文字符
//  function is_zw(str)
//{
//	exp=/[0-9a-zA-Z_.,#@!$%^&*()-+=|\?/<>]/g;
//	if(str.search(exp) != -1)
//	{
//		return false;
//	}
//	return true;
//}
////验证是否包含逗号
//function CheckBadChar(Obj,AlertStr)
//{
//	exp=/[,，]/g;
//	if(Obj.value.search(exp) != -1)
//	{   alert(AlertStr+"不能包含逗号");
//	    Obj.value="";
//		Obj.focus();
//		return false;
//	}
//	return true;
//}
//// 检查是否有效的扩展名
//function IsExt(FileName, AllowExt){
//		var sTemp;
//		var s=AllowExt.toUpperCase().split("|");
//		for (var i=0;i<s.length ;i++ ){
//			sTemp=FileName.substr(FileName.length-s[i].length-1);
//			sTemp=sTemp.toUpperCase();
//			s[i]="."+s[i];
//			if (s[i]==sTemp){
//				return true;
//				break;
//			}
//		}
//		return false;
//}
////检查是否数字方法一
//function is_number(str)
//{
//	exp=/[^0-9()-]/g;
//	if(str.search(exp) != -1)
//	{
//		return false;
//	}
//	return true;
//}
////检查数字方法二
//function CheckNumber(Obj,DescriptionStr)
//{
//	if (Obj.value!='' && (isNaN(Obj.value) || Obj.value<0))
//	{
//		alert(DescriptionStr+"应填有效数字！");
//		Obj.value="";
//		Obj.focus();
//		return false;
//	}
//	return true;
//}
////检查电子邮件有效性
//function is_email(str)
//{ if((str.indexOf("@")==-1)||(str.indexOf(".")==-1)){
//	
//	return false;
//	}
//	return true;
//}
function CheckAll(form)
{
				  for (var i=0;i<form.elements.length;i++)
				  {
					var e = form.elements[i];
					if (e.Name != 'chkAll'&&e.disabled==false)
					   e.checked = form.chkAll.checked;
					}
 } 
function OpenWindow(Url,Width,Height,WindowObj)
{
	var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scrollbars:auto;status:0;help:0;');
	return ReturnStr;
}
function WinPop(url, width, height)
{
  window.showModelessDialog(url,"",'dialogWidth=' + width + 'px; dialogHeight=' + height + 'px; resizable=no; help=no; scroll=no; status=no;resizable=0; help=0; scroll=0; status=0;'); 
}
function OpenThenSetValue(Url,Width,Height,WindowObj,SetObj)
{
	var ReturnStr=showModalDialog(Url,WindowObj,'dialogWidth:'+Width+'pt;dialogHeight:'+Height+'pt;status:no;help:no;scroll:no;status:0;help:0;scroll:0;');
	if (ReturnStr!='') SetObj.value=ReturnStr;
	return ReturnStr;
}
function OpeneditorWindow(Url,WindowName,Width,Height)
{
	window.open(Url,WindowName,'toolbar=0,location=0,maximize=1,directories=0,status=1,menubar=0,scrollbars=0,resizable=1,top=50,left=50,width='+Width+',height='+Height);
}

//function CheckEnglishStr(Obj,DescriptionStr)
//{
//	var TempStr=Obj.value,i=0,ErrorStr='',CharAscii;
//	if (TempStr!='')
//	{
//		for (i=0;i<TempStr.length;i++)
//		{
//			CharAscii=TempStr.charCodeAt(i);
//			if (CharAscii>=255||CharAscii<=31)
//			{
//				ErrorStr=ErrorStr+TempStr.charAt(i);
//			}
//			else
//			{
//				if (!CheckErrorStr(CharAscii))
//				{
//					ErrorStr=ErrorStr+TempStr.charAt(i);
//				}
//			}
//		}
//		if (ErrorStr!='')
//		{
//			alert("出错信息:\n\n"+DescriptionStr+'发现非法字符:'+ErrorStr);
//			Obj.focus();
//			return false;
//		}
//		if (!(((TempStr.charCodeAt(0)>=48)&&(TempStr.charCodeAt(0)<=57))||((TempStr.charCodeAt(0)>=65)&&(TempStr.charCodeAt(0)<=90))||((TempStr.charCodeAt(0)>=97)&&(TempStr.charCodeAt(0)<=122))))
//		{
//			alert(DescriptionStr+'首字符只能够为数字或者字母');
//			Obj.focus();
//			return false;
//		}
//	}
//	return true;
//}
function CheckErrorStr(CharAsciiCode)
{
	var TempArray=new Array(34,47,92,42,58,60,62,63,124);
	for (var i=0;i<TempArray.length;i++)
	{
		if (CharAsciiCode==TempArray[i]) return false;
	}
	return true;
}
//Obj单击的对象,OpStr--BottomFrame显示当前操作的提示信息,ButtonSymbol按钮状态,MainUrl--MainFrame的链接
function SelectObjItem(Obj,OpStr,ButtonSymbol,MainUrl)
{   if (OpStr!='')
    {window.parent.parent.frames['BottomFrame'].location.href='../KS.Split.asp?OpStr='+OpStr+'&ButtonSymbol='+ButtonSymbol;}
	if(MainUrl!='')
	{window.parent.parent.frames['MainFrame'].location.href=MainUrl;
	}
	if (Obj!='')
	 {
	   for (var i=0;i<document.all.length;i++)
	   {
		if (document.all(i).className=='FolderSelectItem') document.all(i).className='FolderItem';
	    }
	   Obj.className='FolderSelectItem';
	}
}
//Obj单击的对象,OpStr--BottomFrame显示当前操作的提示信息,ButtonSymbol按钮状态,MainUrl--MainFrame的链接
function SelectObjItem1(Obj,OpStr,ButtonSymbol,MainUrl,ChannelID)
{   if (OpStr!='')
    {window.parent.parent.frames['BottomFrame'].location.href='KS.Split.asp?ChannelID='+escape(ChannelID)+'&OpStr='+escape(OpStr)+'&ButtonSymbol='+escape(ButtonSymbol);}
	if(MainUrl!='')
	{window.parent.parent.frames['MainFrame'].location.href=MainUrl;
	}
	//if (Obj!='')
	// {
	//   for (var i=0;i<document.all.length;i++)
	//   {
	//	if (document.all(i).className=='FolderSelectItem') document.all(i).className='FolderItem';
	//    }
	//   Obj.className='FolderSelectItem';
	//}
}
function FolderClick(Obj,el)
{   	var i=0;
  for (var i=0;i<document.all.length;i++)
	   {
		if (document.all(i).className=='FolderSelected') document.all(i).className='';
	    }
	         Obj.className='FolderSelected';
	  
              for (i=0;i<DocElementArr.length;i++)
			{
				if (el==DocElementArr[i].Obj)
				{
					if (DocElementArr[i].Selected==false)
					{
						DocElementArr[i].Obj.className='FolderSelectItem';
						DocElementArr[i].Selected=true;
					}
					else
					{
						DocElementArr[i].Obj.className='FolderItem';
						DocElementArr[i].Selected=false;
					}
				}
			}
}
function InsertKeyWords(obj,KeyWords)
{
	if (KeyWords!='')
	{
		if (obj.value.search(KeyWords)==-1)
		{
			if (obj.value=='') obj.value=KeyWords;
			else obj.value=obj.value+'|'+KeyWords;
			
		}
	}
	if (KeyWords == 'Clean')
	{
		obj.value = '';
	}
	return;
}
function Getcolor(img_val,Url,input_val){
	var arr = showModalDialog(Url, "", "dialogWidth:18.5em; dialogHeight:17.5em; status:0; help:0");
	if (arr != null){
		document.getElementById(input_val).value = arr;
		img_val.style.backgroundColor = arr;
		}
}
//发送参数给各个Frames窗口
function SendFrameInfo(MainUrl,LeftUrl,ControlUrl)
{
	location.href=MainUrl;
    parent.frames['LeftFrame'].LeftInfoFrame.location.href=LeftUrl;
	 parent.frames['BottomFrame'].location.href=ControlUrl;
}
