<!--
//隐藏错误
function killErrors() {
  return true;
}
window.onerror = killErrors; 
//显示 隐含 
function show(strtype){
document.all.item(strtype).style.display = "block";
   }
function hide(strtype){
document.all.item(strtype).style.display = "none";
}
//显示 隐含 

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 MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

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);

function openwin(url,wid,hei,reload)
{
  var str;
  if(url==null)
     {
      alert('您的URL不能为空!');
      return;
     }
  
  if(wid==null || wid=='')
     wid=450;
  if(hei==null || hei=='')
     hei=360;
 
  str=window.showModalDialog('/system/openwin.html',url,'dialogWidth:'+wid+'px;dialogHeight:'+hei+'px;status:no;scrollbars=no;scroll=no;help:0;center:1');
  if(str!='0' && reload==true)
     location.reload();   
  return str;           
}

function openwin1(url,wid,hei,reload)
{
  var str;
  //alert(url);
  if(url==null)
     {
      alert("您的URL不能为空!");
 
      return;
     }
  
  if(wid==null||wid=='')
     wid=470;
  if(hei==null||hei=='')
     hei=360;
 
  str=window.showModalDialog(url,window,'dialogWidth:'+wid+'px;dialogHeight:'+hei+'px;status:no;scrollbars=no;scroll=no;help:0;center:1');
  
  if(reload==true)
     window.location.reload();   

  return str;           
}


function opennew(url, width, height) {
	var sFeature;
	if (width==null) {
		sFeature = "width=300,height=400";
	} else {
		sFeature = "width="+width+",height="+height;
	}
	window.open(url,"_blank",sFeature);
}

//禁止右键
/*if (window.Event) 
  document.captureEvents(Event.MOUSEUP); 
function nocontextmenu() 
{
 event.cancelBubble = true
 event.returnValue = false;
 return false;
}*/

function disableRightClick(e)
{
  /*var message = "Right click disabled";
  
  if(!document.rightClickDisabled) // initialize
  {
    if(document.layers) 
    {
      document.captureEvents(Event.MOUSEDOWN);
      document.onmousedown = disableRightClick;
    }
    else document.oncontextmenu = disableRightClick;
    return document.rightClickDisabled = true;
  }
  if(document.layers || (document.getElementById && !document.all))
  {
    if (e.which==2||e.which==3)
    {
      alert(message);
      return false;
    }
  }
  else
  {
    return false;
  }
document.oncontextmenu = nocontextmenu;  // for IE5+
document.onmousedown =nocontextmenu ; // for all others*/
}
//disableRightClick();

function closewindow() {
   window.close();
	}
function goto(LocationUrl) {
   window.location=LocationUrl; 
	}
function alertmsg(err) {
   alert(err); 
	}
-->
