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

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

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

      var username2= document.getElementById('username1').value;

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

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

       //var organization2=document.getElementById('organization1').value;

       var query2= 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 = "newuser=" + username2 + "&email=" + email2 + "&othrmobile=" + mobile2 + "&query=" + query2 ;

   //set the file path

  
   var url = 'reply_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
              // alert (qry);

   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;
}
