 
            var req=null;
            function initRequest() {
                try
                {
                    req = new XMLHttpRequest();
                }
                catch(tryMicrosoft)
                {
                    try
                    {
                        req = new ActiveXObject("Msxml2.XMLHTTP");
                    }
                    catch(otherMicrosoft)
                    {
                        try
                        {
                            req = new ActiveXObject("Microsoft.XMLHTTP");
                        }
                        catch(failed)
                        {
                            req = null;
                        }
                    }
                }
                if(req == null)
                    {
                        alert("Error While creating request object !!! ");
                        return false;
                    }
                }
                
