function existingUser(email, postalcode, type)
{     
      var xmlHttp;
      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;
            }
          }
        }

        xmlHttp.onreadystatechange=function()
        {
          if(xmlHttp.readyState==4)
          { 
            //document.getElementById('cmd_reactionMsg').innerHTML = xmlHttp.responseText;  
            //document.getElementById('cmd_box2').innerHTML = xmlHttp.responseText;    
            fillTheForm(xmlHttp.responseText);      
          }
        }

//        var productCode = escape(document.getElementById('id_elementa_koji_sadrzi_product_name').value);
//        var clientId = escape(document.getElementById('id_elementa_koji_sadrzi_client_id').value);
//        var clientType = escape(document.getElementById('id_elementa_koji_sadrzi_clientType').value);
        document.getElementById('spinner').style.display = "";         
        
          tempUrl = window.location;
          tempPath = tempUrl.pathname.substring(0, tempUrl.pathname.lastIndexOf('\/'));      
          currentUrl = tempUrl.protocol+"//"+tempUrl.host+tempPath;       
        
        
        
        var url = currentUrl+"/modules/content/frontend/scripts/php/existinguser.php";
        var params = "email="+email+"&postalcode="+postalcode+"&type="+type;
        xmlHttp.open("POST", url, true);

        //Send the proper header information along with the request
        xmlHttp.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
        xmlHttp.setRequestHeader("Content-length", params.length);
        xmlHttp.setRequestHeader("Connection", "close");

        xmlHttp.send(params);

}
