/*
 * Created By Visual Studio 2005
 * Create by: daqingshu
 * Create at: 2006-10-18 21:56:59{DATE}
 * Organization: BIT
 * 
 *
 */
<!-- 

//******************************************************
// 包含文件 用法： $import('../include/mian.js', 'js');
//                 $import('../style/style.css', 'css');
//******************************************************
function $import(path, type){
 var i,
      base,
      src = "common.js",
      scripts = document.getElementsByTagName("script");

 

 for (i = 0; i < scripts.length; i++) {
      if (scripts[i].src.match(src)) {
          base = scripts[i].src.replace(src, "");
          break;
      }
  }
 
  if (type == "css") {
      document.write("<" + "link href=\"" + base + path + "\" rel=\"stylesheet\" type=\"text/css\"></" + "link>");
  } else {
      document.write("<" + "script src=\"" + base + path + "\"></" + "script>");
  }
}

//******************************************************
// 判断类型
//******************************************************
function isAlien(a) {
  return isObject(a) && typeof a.constructor != 'function';
}

 

function isArray(a) {
  return isObject(a) && a.constructor == Array;
}

function isBoolean(a) {
  return typeof a == 'boolean';
}

function isEmpty(o) {
  var i, v;
  if (isObject(o)) {
    for (i in o) {
      v = o[i];
      if (isUndefined(v) && isFunction(v)) {
        return false;
      }
    }
  }
  return true;
}

function isFunction(a) {
  return typeof a == 'function';
}

function isNull(a) {
  return typeof a == 'object' && !a;
}

function isNumber(a) {
  return typeof a == 'number' && isFinite(a);
}

function isObject(a) {
  return (a && typeof a == 'object') || isFunction(a);
}

function isString(a) {
  return typeof a == 'string';
}

function isUndefined(a) {
  return typeof a == 'undefined';
}

function time_rota() 
{ 
    now = new Date(); 
    h="0"+now.getHours(); 
    m="0"+now.getMinutes(); 
    s="0"+now.getSeconds(); 
    if(h>9){h=now.getHours();} 
    if(m>9){m=now.getMinutes();} 
    if(s>9){s=now.getSeconds();} 
    //document.getElementById('zzchina_time').innerHTML =" "+h+"："+m+"："+s+" ";
    //setTimeout( 'time_rota()', 1000);
} 

function makevisible(cur,which)
{
    if (which==0)
    cur.filters.alpha.opacity=80;
    else
    cur.filters.alpha.opacity=80;
}

function mouseover(n,i,j)
{
    if(j==1){
        document.getElementById(n+i).style.backgroundColor="#fefefe";}
    if(j==0){
        document.getElementById(n+i).style.backgroundColor="#ccddff";
    }
}

function mouseout(n,i,j){
    if(j==1){
        document.getElementById(n+i).style.backgroundColor="#f2f2f2";}
    if(j==0){
        document.getElementById(n+i).style.background="none";
    }
}

function turnblue(element)
{
    element.style.backgroundColor="#99ccff";
}
 
function turntrans(element)
{
    element.style.background="none";
}
//-->