var xmlHttp;


function feedback(master, from)
{
//	alert(master);
	xmlHttp=GetXmlHttpObject()
	check_browser(xmlHttp)
 	xmlHttp.onreadystatechange=function()
	{
 		if (xmlHttp.readyState==4)
		{
			document.getElementById(master).innerHTML=xmlHttp.responseText
 	 	}
 	}
	xmlHttp.open("GET",from,true)
	xmlHttp.send(null)
}

function check_browser(xmlHttp)
{
	if (xmlHttp==null)
	{
		alert ("Browser does not support HTTP Request")
		return
	}
}

function GetXmlHttpObject()
{
	var req = null

    if(window.XMLHttpRequest && !(window.ActiveXObject)) {
    	try {
			req = new XMLHttpRequest();
        } catch(e) {
			req = false;
        }
    // branch for IE/Windows ActiveX version
    } else if(window.ActiveXObject) {
       	try {
        	req = new ActiveXObject("Msxml2.XMLHTTP");
      	} catch(e) {
        	try {
          		req = new ActiveXObject("Microsoft.XMLHTTP");
        	} catch(e) {
          		req = false;
        	}
		}
    }
	return req
}

