function ExcJax(strMethod, strURL, strData, strDivID, intLoaded){
var Aj = null;

if(window.ActiveX){
	Aj = new window.ActiveX("Microsoft.XMLHTTP");
}else if(window.XMLHttpRequest){
	Aj = new window.XMLHttpRequest();
}else{
    alert("บราวเซอร์ของคุณ ไม่รองรับระบบเว็บ.!!");	
}

var EleID=document.getElementById(strDivID);

strURL += "?" + strData + "&tmpx=" + Math.random();
Aj.open(strMethod, strURL, true);
if(strMethod.toLowerCase()=="post"){
Aj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");	
Aj.send(strData);
}else{
Aj.send(null);
}


Aj.onreadystatechange = function StateX(){
if(Aj.readyState==4 && Aj.status==200){
	if(EleID!=null){
EleID.innerHTML = Aj.responseText;	
	}
}else{
if(intLoaded==1){ EleID.innerHTML = "<div align='center'><img src='images/loading.gif'><br>รอสักครู่...</div>"; }	
}
}

}
//-----------------------------------
function movx(e){
var isIE = document.all;
var mouseX = 0;
var mouseY = 0;
  if (!e) e = window.event;
  if (e)
  { 
  	mouseX = isIE ? (e.clientX + 16) : e.pageX;
  	mouseY = isIE ? (e.clientY + 16) : e.pageY;
  }
var dvx=document.getElementById("tip");
dvx.style.left = mouseX + "px";
dvx.style.top = mouseY + "px";
}

//document.onmousemove=movx;
//--------------------------------------

