function sendRequest(sURL){
	showLoading();
	frames['m_hidden'].window.location.href = sURL;
}
function showDialog(sURL){
	window.scrollTo(0,0);
	showLoading();
	frames['m_dialog'].window.location.href = sURL;
}
function hideDialog(){
	hide("m_mask");
	hide("m_mess");
}
function showLoading(){
	var obj = $('loading');
	show(obj);
	obj.style.zIndex = 1001;
}

//write down controls
with(document){
	writeln('<div id="loading" align="right" style="position:fixed; _position:absolute; z-index:1001; right:18px; top:36px; _top: expression(eval(document.compatMode && document.compatMode==\'CSS1Compat\') ? document.documentElement.scrollTop+36 : document.body.scrollTop + 36);	 width:85px; display:none; padding:2px; border:1px solid #0099FF; vertical-align:middle; background-color:#FFFFFF;"><img src="/images/indicator.gif" alt="loading" width="16" height="16" />ÕýÔÚ¼ÓÔØ...</div>');
	writeln('<div id="m_mask" class="mask" style="display:none;"></div>');
	writeln('<div id="m_mess" class="floa" style="display:none;" align="center">');
	writeln('<iframe id="m_dialog" name="m_dialog" marginheight="0" marginwidth="0" align="middle" frameborder="0" scrolling="no" height="100" width="100%" src="#"></iframe>');
	writeln('<iframe id="m_hidden" name="m_hidden" scrolling="no" height="100" width="100%" src="#" style="display:none;"></iframe>');
	writeln('</div>');
}