//************************
//**** @author dnluo *****
//************************
<!--
var loopTimes = 0;

//output the status body to the page.
function setStatus(title){
  if(typeof(document.all.waiting)=="undefined"){
    document.write("<div id=waiting style=\"position:absolute;z-index:1;display:none;border: 2 outset #F2F2F2\">");
    document.write("<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"360\" style=\"background-color: #D6D3CE; font-size: 12px;\">");
    document.write("<tr>");
    document.write("<td width=\"358\" style=\"background-color: #000080; color: #FFFFFF; padding: 2\">"+title+"</td>");
    document.write("</tr>");
    document.write("<tr><td></td></TR>");
    document.write("<tr>");
    document.write("<td width=\"358\" align=\"center\"></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td width=\"358\" height=\"20\" style=\"padding: 2;word-break:break-all;\" id=\"status_linktext\"></td>");
    document.write("</tr>");
    document.write("<tr>");
    document.write("<td width=\"358\" height=\"10\" style=\"padding: 0;border: 1 inset #F2F2F2\"><img src=\"\" width=1 height=10 name=sbar style=background-color:#000080></td>");
    document.write("</tr>");
    document.write("</table>");
    document.write("</div>");

    document.all.waiting.style.pixelTop = (document.body.offsetHeight - 120) / 2 + document.body.scrollTop;
    document.all.waiting.style.pixelLeft = (document.body.offsetWidth - 360) / 2 + document.body.scrollLeft;
  }
}

function startLoad(){
	document.body.style.cursor='wait';

	document.all.status_linktext.innerHTML = ""
	document.all.waiting.style.display="";
	setInterval('showloading();',100);
}
function endLoad(){
	document.all.waiting.style.display="none";
	document.body.style.cursor="";
}

function link()
{
	//if click right button of mouse, then doesn't handle.
	if(window.event.button == 2)
	{
		return false;
	}

	o=event.srcElement ;

	//if not click the LINK of page, then doesn't handle.
	if(o.tagName != "A")
		return false;
	//alert(o.tagName);
	//if the link doesn't start with http://, then doesn't handle.
	if(o.href.indexOf('http://')==0)
	{
		event.returnValue = false
		document.all.status_linktext.innerHTML = ""
		document.all.waiting.style.display="";
		//var loopTimes;
		times = setInterval('showloading();',100);
	}
}

//handle status and let it loading.
function showloading()
{
	var length = 356;
	//var times = 1;
	if (document.sbar.width>length)
	{
		document.sbar.width=0;
		++loopTimes;
	}
	else
	{
		document.sbar.width += 2;
	}
	var iWidth = Math.floor(parseInt(document.sbar.width)/length*100);
	document.all.status_linktext.align="center";
	if (loopTimes>0)
		document.all.status_linktext.innerHTML = iWidth+"%"+"(..."+loopTimes+")";
	else
		document.all.status_linktext.innerHTML = iWidth+"%";
}
//-->

//**************************************************************
//**** @author dony; @date 2006-6-27; @desc none          ******
//**************************************************************
<!--
function beginProgress(title,bEmbarMouse,bDisableBody,align){
  /*
  **@breed style kind, as 1, 2, 3, ...,not currently supported.
  **@title progress bar title, if null, dispaly default title
  **@bEmbarMouse indicates whether the mouse pointer be needed to embar.
  **@bDisableBody indicates whether the body be needed to disable.
  **@align support 3 option: default/rightTop=right&top; middle/center=center&middle; leftBottom=left&bottom; (disabled)
  **@align support 3 option: default/leftBottom=left&bottom; middle/center=center&middle; rightTop=right&top;  (andy desired)
  */
  var oBar = document.getElementById("progressBarDivID");
  if(oBar==null || oBar=="" || typeof(oBar)=="undefined")return;
  oBar.style.display="";
  if(title!=null && title!=""){
    document.all.progressBar_title.innerHTML=title;
  }
  if(bEmbarMouse){
	  oBar.placement="movable";
    document.body.style.cursor="";
		document.body.attachEvent ("onmousemove",locationProgressBar);
  }else{
		document.body.style.cursor="wait";
	  oBar.placement=(typeof(align)=="undefined"?typeof(align):align);
		document.all.bodyPurdahDivID.style.display=(bDisableBody?"":"none");
  }
	locationProgressBar();
}
function endProgress(){
	document.body.style.cursor="";
	document.body.detachEvent("onmousemove",locationProgressBar);
  if(typeof(document.all.bodyPurdahDivID)!="undefined")document.all.bodyPurdahDivID.style.display="none";
	if(typeof(document.all.progressBarDivID)!="undefined")document.all.progressBarDivID.style.display="none";
}
function locationProgressBar(){
  var oBar = document.getElementById("progressBarDivID");
  if(oBar==null || oBar=="" || typeof(oBar)=="undefined" || oBar.style.display=="none")return;
	if(oBar.placement.toLowerCase()=="movable"){
		oBar.style.pixelTop = document.body.scrollTop+window.event.clientY-oBar.clientHeight/2;
		oBar.style.pixelLeft =document.body.scrollLeft+window.event.clientX-oBar.clientWidth/2;
	}else if(oBar.placement.toLowerCase()=="rightTop"){
		oBar.style.pixelTop = document.body.scrollTop+4;
		oBar.style.pixelLeft =document.body.scrollLeft+document.body.offsetWidth-oBar.clientWidth-30;
	}else if(oBar.placement.toLowerCase()=="middle" || oBar.placement.toLowerCase()=="center"){
		oBar.style.pixelTop = document.body.scrollTop+(document.body.offsetHeight+oBar.clientHeight-120)/2;
		oBar.style.pixelLeft =document.body.scrollLeft+(document.body.offsetWidth+oBar.clientWidth-360)/2;
	}else{
		oBar.style.pixelTop = document.body.scrollTop+(document.body.offsetHeight-(oBar.clientHeight+4));
		oBar.style.pixelLeft =document.body.scrollLeft+document.all.outerLayoutTableID.offsetLeft;
  }
}
//-->
