﻿
// 注销用户
function logout()
{
  titlestr="请你注意\n\n";
  errstr="你确定要注销当前身份，并重新回到登录窗口吗?\n\n";
  if(confirm(errstr)) 
  	document.MM_returnValue = true;
  else
    document.MM_returnValue = false;
}

// GridView鼠标按下事件
function ItemDown(obj)
{
    obj.style.backgroundColor = "#e3efff";
}
// GridView鼠标移出的事件
function ItemOut(id){					
	if(id.style.backgroundColor!="#B9D1F3")
		id.style.backgroundColor='#ffffff'
}
// GridView鼠标移入的事件
function ItemOver(id){
	if(id.style.backgroundColor!="#B9D1F3")
		id.style.backgroundColor='#fbfbd3';
}

// 得到对象
function getObject(objectId) 
{
    if(document.getElementById && document.getElementById(objectId)) 
        return document.getElementById(objectId);
    else if (document.all && document.all(objectId)) 
        return document.all(objectId);
    else if (document.layers && document.layers[objectId]) 
        return document.layers[objectId];
    else 
        return false;
}