// Copyright (C) OLAB.CN 2006
function ignoreError() {
  return true;
}
//window.onerror = ignoreError;
if(window.screen.width < 800){window.location = 'http://m.olab.cn/'};
//
function gEid(id) {
  return document.getElementById(id);
}
// ********** checkbox list selection start***********
var SelectedId = -1
var DefautBgc = '#FFFFFF'

function divrowOver(tar) {
if (SelectedId != tar) {
	DefautBgc = gEid('divrow' + tar).style.backgroundColor
	gEid('divrow' + tar).style.backgroundColor='#Eaf5FF';
	}
}
function divrowOut(tar) {
if (SelectedId != tar) {
	gEid('divrow' + tar).style.backgroundColor = DefautBgc;
	DefautBgc = '#FFFFFF'
	}
}

// ********** checkbox list selection end***********

var NavName = navigator.appName
//document.write(NavName)
if (NavName == "Microsoft Internet Explorer"){ NavName = "IE" }else if (NavName == "Netscape"){ NavName = "NS" }else{NavName = "Other"};
// ---
var theBrs = {};
theBrs.agt = navigator.userAgent.toLowerCase();
theBrs.isW3C = document.getElementById ? true:false;
theBrs.isIE = ((theBrs.agt.indexOf("msie") != -1) && (theBrs.agt.indexOf("opera") == -1) && (theBrs.agt.indexOf("omniweb") == -1));
theBrs.isNS6 = theBrs.isW3C && (navigator.appName=="Netscape") ;
theBrs.isOpera = theBrs.agt.indexOf("opera") != -1;
theBrs.isGecko = theBrs.agt.indexOf("gecko") != -1;
theBrs.ieTrueBody =function (){
  return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body;
};

if(theBrs.isNS6){ //firefox innerText define
  HTMLElement.prototype.__defineGetter__( "innerText", 
  function(){ 
  return this.textContent; 
  } 
  ); 
  HTMLElement.prototype.__defineSetter__( "innerText", 
  function(sText){ 
  this.textContent=sText; 
  } 
  ); 
}
// ---
