window.onerror=function()
{
	return true;
}
function importLink(url)
{
	var new_script=document.createElement("script");
	new_script.setAttribute("type","text/javascript");
	new_script.setAttribute("src",url);
	try
	{
		document.body.appendChild(new_script);
	}
	catch(err)
	{
		alert('外部文件连接失败，请确认文件是否存在？   \n');
	}
}
function gl(obj) {
	return document.getElementById(obj)
}
var i=0;
function floatLayer(id,xx,yy,zz){
	var xx,yy,zz
	var scrollPos; 
	if (typeof window.pageYOffset != 'undefined') { 
	scrollPos = window.pageYOffset; 
	} 
	else if (typeof document.compatMode != 'undefined' && 
	document.compatMode != 'BackCompat') { 
	scrollPos = document.documentElement.scrollTop; 
	} 
	else if (typeof document.body != 'undefined') { 
	scrollPos = document.body.scrollTop; 
	}
	gl(id).style.position="absolute";
	if(yy) gl(id).style.posTop = scrollPos + yy;
	if(xx) gl(id).style.posLeft= xx;
	if(zz) gl(id).style.zIndex = zz;
	setTimeout("floatLayer('"+id+"',"+xx+","+yy+","+zz+")",50);
}

function exTopMenu(id){gl("TopMenu").getElementsByTagName("li")[id].className='on'}
function clTopMenu(id) {gl("TopMenu").getElementsByTagName("li")[id].className='';}
function gtTopMenu(id){var id;if(id) gl("TopMenu").childNodes[id].className='on';alert(id+' is on');}
function AboutMenu_on(){event.srcElement.className='aboutBtn_on';}
function AboutMenu_off(){event.srcElement.className='aboutBtn';}
function changeDiv(obj,id,pnt)
{
	var en=true;
	var pnt;
	var el=gl(obj).getElementsByTagName("li");
	if(pnt!=undefined) var ec=gl(pnt).getElementsByTagName("li");
	if(id>el.length) en=false;
	if(en!=false) 
	{
		for(i=0;i<el.length;i++) el[i].className='';
		if(pnt!=undefined) for(i=0;i<ec.length;i++) ec[i].className='';
		el[id-1].className='on';
		if(pnt!=undefined) ec[id-1].className='on';
	}
}
function echoMenu(obj,id)
{
	var el=gl(obj).childNodes;
	for(i=0;i<el.length;i++) {
		el[i].className='lititle';
		var ec=el[i].getElementsByTagName("ul");
		for(j=0;j<ec.length;j++) ec[j].className='fc';
	}
	el[id].className='lititle on';
	var ec=el[id].getElementsByTagName("ul");
	for(j=0;j<ec.length;j++) ec[j].className='fc on';
}
function visitedDiv(id,inm)
{
	var inm;
	if(gl(id).style.display=="") {gl(id).style.display ="block";}else{if(inm==undefined)gl(id).style.display ="";}
}
function getURL(option){window.location=option;}
