 function FuncAjax(div, page, data)
 {
	var content = document.getElementById(div);
    if(document.all)
    {
        var XhrObj = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else
    {
        var XhrObj = new XMLHttpRequest();	
    }
	XhrObj.open("POST", page);
  	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    XhrObj.send(data);
		
	XhrObj.onreadystatechange = function() 
    {
        if (XhrObj.readyState == 4 && XhrObj.status == 200)
            content.innerHTML = XhrObj.responseText
    }
}

 function FuncAjaxValue(div, page, data)
 {
	var content = document.getElementById(div);
    if(document.all)
    {
        var XhrObj = new ActiveXObject("Microsoft.XMLHTTP");
    }
    else
    {
        var XhrObj = new XMLHttpRequest();	
    }
	XhrObj.open("POST", page);
  	XhrObj.setRequestHeader('Content-Type','application/x-www-form-urlencoded');
    XhrObj.send(data);
		
	XhrObj.onreadystatechange = function() 
    {
        if (XhrObj.readyState == 4 && XhrObj.status == 200)
            content.value = XhrObj.responseText
    }
}

 