﻿function getPage(page,layer,url){
var xmlhttp=null; 
        try{
			xmlhttp=new XMLHttpRequest();
			}
		catch(e){
			try {
                xmlhttp = new ActiveXObject('Msxml2.XMLHTTP');
        } catch (e) {
                try {
                        xmlhttp = new
                        ActiveXObject('Microsoft.XMLHTTP');
            } catch (E) {
                xmlhttp = false;
                        }
        }}
        if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
                xmlhttp = new XMLHttpRequest();
        }
    xmlhttp.open('POST', url + page, true);

xmlhttp.onreadystatechange=function() {
        if (xmlhttp.readyState==4) {
                var content = xmlhttp.responseText;
				
                if( content ){ 
                      document.getElementById(layer).innerHTML = content; 
                }
        }
        }
        xmlhttp.send(null)

return;
}