function killErrors() {
return true;
}
window.onerror = killErrors;

function MM_findObj(n, d) { //v4.01
  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 && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
function fDoMask(id)
{
    var a=document.getElementsByTagName('body')[0];
    var b=document.createElement('div');
    b.setAttribute('id',id);
    b.style.zIndex=98;
    b.style.textAlign="center";
    b.style.position="absolute";
   // b.style.filter="alpha(opacity=10)";
    b.style.left="0px";
    b.style.top="0px";
    b.style.right="0px";
    b.style.margin="0px";
	//b.style.filter=" progid:DXImageTransform.Microsoft.Gradient(GradientType=1, StartColorStr='#B5CCFA', EndColorStr='#B5CCFA')";
    a.style.filter="progid:DXImageTransform.Microsoft.BasicImage(GrayScale=1)";
	//b.style.backgroundColor="#C0C0C0";  //#3657A0 001C68 BFC5F1 4874C0
	//b.style.backgroundImage = "url('/images/divbg1.gif')";
    //b.style.width=window.screen.width;
    //b.style.height = window.screen.availHeight;
    b.onclick=function()
    {
        return false
    };
    b.onkeydown=function()
    {
        return false
    };
    b.onmousedown=function()
    {
        return false
    };
    b.onmouseup=function()
    {
        return false
    };
    b.onmouseover=function()
    {
        return false
    };
    b.onmouseout=function()
    {
        return false
    };
    b.onmousemove=function()
    {
        return false
    };
    b.onselectstart=function()
    {
        return false
    };
    b.oncontextmenu=function()
    {
        return false
    };
    a.appendChild(b);
};
function fCancelMask(id)
{
    var a=document.getElementsByTagName('body')[0];
    var b=document.getElementById(id);
    a.removeChild(b);
	a.style.filter="";
}


var postform=false;
function openwin(url, winname, WINwidth, WINheight) {
	
	showx = (screen.width) ? (screen.width-WINwidth)/2 : 0; 
	showy = (screen.height) ? (screen.height-WINheight)/2 : 0;
	
	var features =
	'dialogWidth:' + WINwidth + 'px;' +
	'dialogHeight:' + WINheight + 'px;' +
	'dialogLeft:' + showx + 'px;' +
	'dialogTop:' + showy + 'px;' +
	'directories:no; localtion:no; menubar:no; status=no; toolbar=no;scrollbars:no;Resizeable=no';

	var id="preview";
	fDoMask(id);
	window.showModalDialog(url, winname, features);
	fCancelMask(id);
	if (winname=window &&postform){
		searchmainform.submit();
	}

}
function openwin1(url, winname, WINwidth, WINheight) {	
	showx = (screen.width) ? (screen.width-WINwidth)/2 : 0; 
	showy = (screen.height) ? (screen.height-WINheight)/2 : 0;
		var features =
	"Width=" + WINwidth +",Height=" + WINheight +
	",Left=" + showx + ",Top=" + showy +
	",directories=no,localtion=no,menubar=no,status=no,toolbar=no,scrollbars=no,Resizeable=no";
	//alert(features);
	var id="preview";
	fDoMask(id);
	window.open(url,winname,features);
	fCancelMask(id);
	if (winname=window &&postform){
		searchmainform.submit();
	}
}


var number=2; //定义条目数

function LMYC() {
var lbmc;
    for (i=1;i<=number;i++) {
        lbmc = eval('LM' + i);
        lbmc.style.display = 'none';
    }
}
 
function ShowFLT(i) {
    lbmc = eval('LM' + i);
    if (lbmc.style.display == 'none') {
        LMYC();
        lbmc.style.display = '';
    }
    else {
        lbmc.style.display = 'none';
    }
}
