// JavaScript Document
function LanguageEN()
{
	var	xScript;
	xScript = document.createElement('SCRIPT');
	xScript.setAttribute('type','text/javascript');
	xScript.setAttribute('id','JSAJAXDeleteAll');
	xScript.setAttribute('src','ajax.php?actions=LanguageEN&Rand='+Math.random());
	document.getElementsByTagName('BODY')[0].appendChild(xScript);
}
function LanguageTH()
{
	var	xScript;
	xScript = document.createElement('SCRIPT');
	xScript.setAttribute('type','text/javascript');
	xScript.setAttribute('id','JSAJAXDeleteAll1');
	xScript.setAttribute('src','ajax.php?actions=LanguageTH&Rand='+Math.random());
	document.getElementsByTagName('BODY')[0].appendChild(xScript);
}
function 	Popup(pname,purl,w,h,s)
{
	LeftPosition = (screen.width) ? (screen.width-w-8)/2 : 0;
	TopPosition = (screen.height) ? (screen.height-h-50)/2 : 0;
	myWinName = window.open(purl,pname,"width="+w+",height="+h+",top="+TopPosition+",left="+LeftPosition+",resizable=no,status=1,z-lock=1,location=0,scrollbars="+s);
	if (parseInt(navigator.appVersion) >= 4) {
		myWinName.window.focus();
	}
	return myWinName;
}