//容错代码
<!-- Hide
function killErrors() {
return true;
}
window.onerror = killErrors;
// -->
//窗口自动最大化
window.moveTo(0,0);window.resizeTo(screen.availWidth,screen.availHeight);
//双击鼠标滚动屏幕函数
<!--
var currentpos,timer;
function initialize()
{
timer=setInterval ("scrollwindow ()",20);
}
function sc()
{
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos !=document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
//特效显示TITLE的函数
<!--
var sPop = null;
document.write("<style type='text/css'>");
document.write(".PopText { font-family: Tahoma, 宋体; color: #000000; background-color: #ffffff; border: 1px #000000 dashed; font-size: 12px; line-height: 20px; padding: 4px; text-align: left; visibility: hidden; filter: Alpha(Opacity=0)}");
document.write(".title { font-family: Tahoma, 宋体; color: #ff0000; background-color: #c6c6e6; font-size: 14px; font-weight: bold; line-height: 20px; padding: 4px; text-align: center; filter: Alpha(Opacity=0)}");
document.write("</style>");
document.write("<div id='popLayer' style='position:absolute;z-index:1000;filter:revealtrans(duration=.5,transition=12) revealTrans(duration=1,transition=23) alpha(opacity=90,enabled=100)' class='PopText'></div>");

function showPopupText() {
	var o=event.srcElement;
	MouseX=event.x;
	MouseY=event.y;
	if(o.alt!=null && o.alt!="") { o.pop="<div class='title'><img src='http://at999.com/public/Wel.gif'>温州昌鑫工艺AT999.com <img src='http://at999.com/public/Wel.gif'></div>" + o.alt;o.alt="" }
        if(o.title!=null && o.title!=""){ o.pop="<div class='title'><img src='http://at999.com/public/Wel.gif'>温州昌鑫工艺AT999.com <img src='http://at999.com/public/Wel.gif'></div>" + o.title;o.title="" } 
		if(o.pop) { 
			o.pop=o.pop.replace("\n","<br>"); 
					}
	if(o.pop!=sPop) {
		sPop=o.pop;
		if(sPop==null || sPop=="") {
			popLayer.filters[0].apply();
			popLayer.style.visibility="hidden";	
			popLayer.filters[0].play();
			popLayer.style.width=""
		} else {
			if(o.dyclass!=null) popStyle=o.dyclass 
			else popStyle="PopText";
             
			popLayer.filters[1].apply();
			popLayer.style.visibility="visible";
			popLayer.filters[1].play();
			showIt();
			if (popLayer.offsetWidth>500)
			{
				popLayer.style.width=500
			}
		}
	}
}

function showIt() {
	popLayer.className=popStyle;
	popLayer.innerHTML=sPop;

	popWidth=popLayer.clientWidth;
	popHeight=popLayer.clientHeight;
	if(event.clientX+12+popWidth>document.body.clientWidth) popLeftAdjust=-popWidth-24
		else popLeftAdjust=0;
	if(event.clientY+12+popHeight>document.body.clientHeight) popTopAdjust=-popHeight-24
		else popTopAdjust=0;
	popLayer.style.left=event.clientX+12+document.body.scrollLeft+popLeftAdjust;
	popLayer.style.top=event.clientY+12+document.body.scrollTop+popTopAdjust;
}

document.onmouseover=showPopupText;

function Commafy(Num)
	{       
		Num = Num+"";       
		var re = /(-?\d+)(\d{3})/       
		while(re.test(Num)){       
		Num = Num.replace(re,"$1,$2")       
		}       
		return Num;       
	}