
<!-- //
	var strhtml = '<DIV id="Waiter_div__" style="DISPLAY: none; BACKGROUND: #000000; FILTER: progid:DXImageTransform.Microsoft.Alpha(style=2,opacity=50,finishOpacity=20; -moz-opacity: 0.2" align=center></DIV>'+
	'<DIV id="HTML_CONTENT__" style="BORDER-RIGHT: #dde8ea 1px double; BORDER-TOP: #dde8ea 1px double; DISPLAY: none; BACKGROUND: #ffffff; BORDER-LEFT: #dde8ea 1px double; WIDTH: 250px; COLOR: #117791; BORDER-BOTTOM: #dde8ea 1px double"></DIV>';
	document.write(strhtml);
	//-->
var otso_jbox = function(){
	this.waiter_div = document.getElementById("Waiter_div__");
	this.html_content_div=document.getElementById("HTML_CONTENT__");
	this.html_content_div.style.width=200;
	this.html_content_div.style.height=150;
	this.html_content_div.innerHTML = "hello";
}
otso_jbox.prototype = {
	doOpen:function(width,height,html){
		width=width||200;
		height=height||150;
		this.html_content_div.style.width=width;
		this.html_content_div.style.height=height;
		this.html_content_div.innerHTML = html||this.html_content_div.innerHTML;
		this.waiter_div.style.position = "absolute";
		this.waiter_div.style.width = "100%";
		this.waiter_div.style.height = "100%";
		this.waiter_div.style.top = 0;
		this.waiter_div.style.left = 0;
		this.waiter_div.style.zIndex = 100;
		this.html_content_div.style.position = "absolute";
		this.html_content_div.style.top = (document.body.clientHeight -height) / 2+"px";
		this.html_content_div.style.left = (document.body.clientWidth - width) / 2+"px";
		this.html_content_div.style.zIndex = 101;
		var ele = $('#Waiter_div');
		$('#Waiter_div__').show('fast');
		$("#HTML_CONTENT__").show();
	}
	,
	doClose:function(){
		$('#Waiter_div__').hide();
		$('#HTML_CONTENT__').hide();
	},
	setHtml :function(strHtml){
		this.html_content_div.innerHTML=strHtml;
	},
	
	reSize:function(mewidth,meheight){
		this.html_content_div.style.width=mewidth;
		this.html_content_div.style.height=meheight;
		this.html_content_div.style.top = (screen.height-meheight)/2;
		this.html_content_div.style.left=(screen.width-mewidth)/2
	},
	
	setLocation:function(top,left){
		this.html_content_div.style.top=top;
		this.html_content_div.style.left=left;
	},
	wait:function(){
		var html="<image src='images/load1.gif'> Ò³Ãæ¼ÓÔØÖÐ..ÇëÉÔºò..";
		this.doOpen(200,10,html);
	}
};