﻿var xmlHttp;function createRequest(){if(window.ActiveXObject){xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}else if(window.XMLHttpRequest){xmlHttp=new XMLHttpRequest();}}function page(A){createRequest();xmlHttp.open("GET",A,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");xmlHttp.onreadystatechange=updatepage;xmlHttp.send(null);}function updatepage(){document.getElementById('page').innerHTML=message['ajax_loading'];if(xmlHttp.readyState==4){if(xmlHttp.status==200){document.getElementById('page').innerHTML=xmlHttp.responseText}else {alert('can not connect to database Please try again')}}}function page2(A){createRequest();xmlHttp.open("GET",A,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");xmlHttp.onreadystatechange=updatepage2;xmlHttp.send(null);}function updatepage2(){document.getElementById('page2').innerHTML=message['ajax_loading'];if(xmlHttp.readyState==4){if(xmlHttp.status==200){document.getElementById('page2').innerHTML=xmlHttp.responseText}else {alert('can not connect to database Please try again')}}}function page3(A){createRequest();xmlHttp.open("GET",A,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");xmlHttp.onreadystatechange=updatepage3;xmlHttp.send(null);}function updatepage3(){document.getElementById('page3').innerHTML=message['ajax_loading'];if(xmlHttp.readyState==4){if(xmlHttp.status==200){document.getElementById('page3').innerHTML=xmlHttp.responseText}else {alert('can not connect to database Please try again')}}}function page4(A){createRequest();xmlHttp.open("GET",A,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");xmlHttp.onreadystatechange=updatepage4;xmlHttp.send(null);}function updatepage4(){document.getElementById('page4').innerHTML=message['ajax_loading'];if(xmlHttp.readyState==4){if(xmlHttp.status==200){document.getElementById('page4').innerHTML=xmlHttp.responseText}else {alert('can not connect to database Please try again')}}}function page5(A){createRequest();xmlHttp.open("GET",A,true);xmlHttp.setRequestHeader("Content-type","application/x-www-form-urlencoded; charset=UTF-8");xmlHttp.onreadystatechange=updatepage5;xmlHttp.send(null);}function updatepage5(){document.getElementById('page5').innerHTML=message['ajax_loading'];if(xmlHttp.readyState==4){if(xmlHttp.status==200){document.getElementById('page5').innerHTML=xmlHttp.responseText}else {alert('can not connect to database Please try again')}}}