function  feedback()
{
      var username1 = document.getElementById('username').value;

      var mobile1 = document.getElementById('mobile').value;

      var email_id = document.getElementById('email1').value;

      var feed = document.getElementById('feedbackform').value;





//      var mobile = document.getElementById('mobile').value;
      //creating the xmlHttp object
        //alert(mobile_no);
      var xmlHttp = getXmlHttpReqObject();

     //if object is not created return

     if( ! xmlHttp)
         return false;

     //on state change do this call back function

     xmlHttp.onreadystatechange=function()
     {
        //if data is recieved

        if(xmlHttp.readyState==4)
        {       // alert(xmlHttp.responseText);
             if(xmlHttp.responseText != '')
             {
                var reply = xmlHttp.responseText;
                var id = 'feed_back';
                var element = document.getElementById(id);
                element.innerHTML =  reply;
             }
        }
      }
    //create a parameter string

    var qry = "username=" + username1 + "&mobile1=" + mobile1 + "&email1=" + email_id  + "&feed=" + feed  ;

   //set the file path

   var url = 'feed_process.php';

   //xmlhttp.open() function to set the connection

   xmlHttp.open('POST', url, true);

   xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");

   //send the request

   xmlHttp.send(qry);

   return true;

}

function getXmlHttpReqObject()
{
    var xmlHttp = null;
    try
    {
        // Firefox, Opera 8.0+, Safari
        xmlHttp=new XMLHttpRequest();
    }
    catch (e)
    {
        // Internet Explorer
        try
        {
            xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");
        }
        catch (e)
        {
            try
            {
                xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");
            }
            catch (e)
            {
                alert("Your browser does not support AJAX!");
                return false;
            }
        }
    }
    return xmlHttp;
}