<!-- 

function GetXmlHttpObject(){
	var xmlHttp=null;
	
	try {
		// Firefox, Opera 8.0+, Safari
		xmlHttp=new XMLHttpRequest();
	} catch (e) {
		// Internet Explorer
		try {
			xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
			xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
		}
	}
	return xmlHttp;
}

function loadcontent(menu,page,lang){
	var url="apps/loadcontent.php";
	url=url+"?menu="+menu;
	url=url+"&page="+page;
	url=url+"&lang="+lang;

	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request");
		return;
	}

	xmlHttp.open("GET",url,true);
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.onreadystatechange=function() {
		if (xmlHttp.readyState==4){ 
			if (xmlHttp.status==200){ 
				document.getElementById("bodycontent").innerHTML=xmlHttp.responseText;
			}
		}else{
			document.getElementById("bodycontent").innerHTML="<br><br><br><br><br><br><br><center><img src=\"./icon/invisible.gif\" width=\"450\" height=\"200\" style=\"background-image:url(./icon/ajax-loader.gif); background-repeat:no-repeat; background-position:center center; background-color:#FFF; border:0px solid #EEE;\" /></center>";
		}
	}
	xmlHttp.send(null);
}

function loadwebboard(pagenum,category){
	var url="board/alltopic.php";
	url=url+"?page="+pagenum;
	url=url+"&category="+category;

	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request");
		return;
	}

	xmlHttp.open("GET",url,true);
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.onreadystatechange=function() {
		if (xmlHttp.readyState==4){ 
			if (xmlHttp.status==200){ 
				document.getElementById("bodycontent").innerHTML=xmlHttp.responseText;
			}
		}else{
			document.getElementById("bodycontent").innerHTML="<br><br><br><br><br><br><br><center><img src=\"./icon/invisible.gif\" width=\"450\" height=\"200\" style=\"background-image:url(./icon/ajax-loader.gif); background-repeat:no-repeat; background-position:center center; background-color:#FFF; border:0px solid #EEE;\" /></center>";
		}
	}
	xmlHttp.send(null);
}

function viewboard(id) {
	var url="board/viewtopic.php";
	url=url+"?id="+id;

	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null){
		alert ("Browser does not support HTTP Request");
		return;
	}

	xmlHttp.open("GET",url,true);
	xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
	xmlHttp.onreadystatechange=function() {
		if (xmlHttp.readyState==4){ 
			if (xmlHttp.status==200){ 
				document.getElementById("bodycontent").innerHTML=xmlHttp.responseText;
			}
		}else{
			document.getElementById("bodycontent").innerHTML="Loading ...";
		}
	}
	xmlHttp.send(null);
}

function popWin(link, width, height, point) {
	var winL = (screen.width - width) / 2;
	var winT = (screen.height - height) / 2 - point;
	var nWin = open(link, "", "toolbar=0,location=0,status=1,menubar=0,scrollbars=1,width="+width+",height="+height+",hotkeys=0,top="+winT+",left="+winL+",dependent=no");
	nWin.focus();
}
//-->