﻿// JScript 文件

function SetLoadingStyle(iDocId){
var showCode="";

	showCode+="<span style='text-align:center;font-size:12px;'>";
	showCode+="<center>";
	showCode+="<div style='padding-top:7px;'><img src='http://zhuanti.jinti.com/i/loading1.gif'  border='0' /><br />数据加载中,请稍后......</div>";
	showCode+="</center>";
	showCode+="</span>";
	document.getElementById(iDocId).innerHTML=showCode;
}


function  centerdiv(divid)  
{  
  var divobj=document.getElementById(divid);
  var w=200;
  var h=55;
  divobj.style.width=w+"px";
  divobj.style.height=h+"px";
  divobj.style.textAlign="center";
  divobj.style.verticalAlign="middle";
  divobj.style.fontSize="14px";
  divobj.style.color="#000000";
  divobj.style.border="1px #cccccc solid";
  divobj.style.padding="5px";
  divobj.style.filter = "alpha(opacity=70)";
  divobj.style.opacity=0.7;
  divobj.style.backgroundColor="#e6e6e6";
  divobj.style.position='absolute';
  
  divobj.style.top = document.documentElement.scrollTop + parseInt((bodyClientHeight() - divobj.offsetHeight) / 2) + "px";
  divobj.style.left = document.documentElement.scrollLeft + parseInt((bodyClientWidth() - divobj.offsetWidth) / 2) + "px";
}  

function bodyClientWidth() {
	return document.body.clientWidth;
}
function bodyClientHeight(isDOCTYPE) {
	if (isDOCTYPE = false) {
		return document.body.clientHeight;
	}
	else {
		return document.documentElement.clientHeight;
	}
}
