function to_reload_ad_logo(){
	//top.ad0.location="http://ad.hinet.net/html.ng/site=agame&spacedesc=game468allbn&channel=all_468hdbn";
}

function to_reload_ad_text(){
	//top.ad1.location="http://ad.hinet.net/html.ng/site=agame&spacedesc=agamet2&channel=all_tl2&params.styles=textQ";
	//top.ad2.location="http://ad.hinet.net/html.ng/site=agame&spacedesc=agamet2&channel=all_tl2&params.styles=textQ";
	//top.ad3.location="http://ad.hinet.net/html.ng/site=agame&spacedesc=agamet3&channel=all_tl3&params.styles=textQ";
}

function textModify(orgText){
	var str = orgText;
	// get rid of leading and trailing white spaces
	str = str.replace(/^[\s???]+/g, "");
	str = str.replace(/[\s???]+$/g, "");
	// merge multiple white spaces into one
	//str = str.replace(/[\s???]+/g, " ");
	// replace ";" "'" """
	str = str.replace(/[\;]+/g, "¡F");
	str = str.replace(/[\']+/g, "¡¦");
	str = str.replace(/[\"]+/g, "¡¨");
	str = str.replace(/[\-]+/g, "¡Ð");

	return str;
}

function reSizeDelay(frm,msec)
{
	//alert(frm);
	setTimeout("reSize('"+frm+"');",msec);
}

function reSize(frm)
{
	//alert(frm);
	try{
		var oBody = frames[frm].document.body;
		var oFrame = document.all[frm];//("ifrm");
		oFrame.style.height = oBody.scrollHeight + (oBody.offsetHeight - oBody.clientHeight);
		//oFrame.style.width = oBody.scrollWidth + (oBody.offsetWidth - oBody.clientWidth);
	}
		//An error is raised if the IFrame domain != its container's domain
		catch(e) {
		//window.status = 'Error: ' + e.number + '; ' + e.description;
	}
}