// LXD Co.
// Nimatramon
var ajaxdestination="";
var ajaxdestination2="";
var ajaxdestination3="";
var ajaxdestination4="";
var ajaxdestination5="";
var ajaxdestination6="";
var ajaxdestination7="";
var ajaxdestination8="";







function getdata(what,where) { // get data from source (what)
 try {
   xmlhttp = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 //document.getElementById(where).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination=where;
 xmlhttp.onreadystatechange = triggered; // when request finished, call the function to put result to destination DIV
 xmlhttp.open("GET", what);
 xmlhttp.send(null);
  return false;
}


function getdata2(what2,where2) { // get data from source (what)
 try {
   xmlhttp2 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where2).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination2=where2;
 xmlhttp2.onreadystatechange = triggered2; // when request finished, call the function to put result to destination DIV
 xmlhttp2.open("GET", what2);
 xmlhttp2.send(null);
  return false;
}



function triggered() { // put data returned by requested URL to selected DIV
  if (xmlhttp.readyState == 4) if (xmlhttp.status == 200) 
    document.getElementById(ajaxdestination).innerHTML =xmlhttp.responseText;
	
}


function triggered2() { // put data returned by requested URL to selected DIV
  if (xmlhttp2.readyState == 4) if (xmlhttp2.status == 200) 
    document.getElementById(ajaxdestination2).innerHTML =xmlhttp2.responseText;
	
}



function getdata3(what3,where3) { // get data from source (what)
 try {
   xmlhttp3 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where3).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination3=where3;
 xmlhttp3.onreadystatechange = triggered3; // when request finished, call the function to put result to destination DIV
 xmlhttp3.open("GET", what3);
 xmlhttp3.send(null);
  return false;
}

function triggered3() { // put data returned by requested URL to selected DIV
  if (xmlhttp3.readyState == 4) if (xmlhttp3.status == 200) 
    document.getElementById(ajaxdestination3).innerHTML =xmlhttp3.responseText;
	
}





function getdata4(what4,where4) { // get data from source (what)
 try {
   xmlhttp4 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where4).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination4=where4;
 xmlhttp4.onreadystatechange = triggered4; // when request finished, call the function to put result to destination DIV
 xmlhttp4.open("GET", what4);
 xmlhttp4.send(null);
  return false;
}

function triggered4() { // put data returned by requested URL to selected DIV
  if (xmlhttp4.readyState == 4) if (xmlhttp4.status == 200) 
    document.getElementById(ajaxdestination4).innerHTML =xmlhttp4.responseText;
	
}



function getdata5(what5,where5) { // get data from source (what)
 try {
   xmlhttp5 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where5).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination5=where5;
 xmlhttp5.onreadystatechange = triggered5; // when request finished, call the function to put result to destination DIV
 xmlhttp5.open("GET", what5);
 xmlhttp5.send(null);
  return false;
}

function triggered5() { // put data returned by requested URL to selected DIV
  if (xmlhttp5.readyState == 4) if (xmlhttp5.status == 200) 
    document.getElementById(ajaxdestination5).innerHTML =xmlhttp5.responseText;
	
}





function getdata6(what6,where6) { // get data from source (what)
 try {
   xmlhttp6 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where6).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination6=where6;
 xmlhttp6.onreadystatechange = triggered6; // when request finished, call the function to put result to destination DIV
 xmlhttp6.open("GET", what6);
 xmlhttp6.send(null);
  return false;
}

function triggered6() { // put data returned by requested URL to selected DIV
  if (xmlhttp6.readyState == 4) if (xmlhttp6.status == 200) 
    document.getElementById(ajaxdestination6).innerHTML =xmlhttp6.responseText;
	
}







function getdata7(what7,where7) { // get data from source (what)
 try {
   xmlhttp7 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where7).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination7=where7;
 xmlhttp7.onreadystatechange = triggered7; // when request finished, call the function to put result to destination DIV
 xmlhttp7.open("GET", what7);
 xmlhttp7.send(null);
  return false;
}

function triggered7() { // put data returned by requested URL to selected DIV
  if (xmlhttp7.readyState == 4) if (xmlhttp7.status == 200) 
    document.getElementById(ajaxdestination7).innerHTML =xmlhttp7.responseText;
	
}




function getdata8(what8,where8) { // get data from source (what)
 try {
   xmlhttp8 = window.XMLHttpRequest?new XMLHttpRequest():
  		new ActiveXObject("Microsoft.XMLHTTP");
 }
 catch (e) { /* do nothing */ }

 document.getElementById(where8).innerHTML ="<center><img src='files/assets/images/ajax-loader.gif'></center>";
// we are defining the destination DIV id, must be stored in global variable (ajaxdestination)
 ajaxdestination8=where8;
 xmlhttp8.onreadystatechange = triggered8; // when request finished, call the function to put result to destination DIV
 xmlhttp8.open("GET", what8);
 xmlhttp8.send(null);
  return false;
}

function triggered8() { // put data returned by requested URL to selected DIV
  if (xmlhttp8.readyState == 4) if (xmlhttp8.status == 200) 
    document.getElementById(ajaxdestination8).innerHTML =xmlhttp8.responseText;
	
}












