﻿    var xmlHttp2=null;
    function GetxmlHttp2RequestObject(){
        try {
            // Firefox, Opera 8.0+, Safari
            xmlHttp2=new xmlHttpRequest();
        }
        catch (e){
            //Internet Explorer
            try{
                xmlHttp2=new ActiveXObject("Msxml2.XMLHTTP");
            }catch (e){
                xmlHttp2=new ActiveXObject("Microsoft.XMLHTTP");
            }
        }
        return xmlHttp2;
    }//function
    function HandleResponseInvite(mymid) { 
        if (xmlHttp2.readyState==4 || xmlHttp2.readyState=="complete"){
            //document.getElementById("ShowMyInfo").innerHTML=xmlHttp2.responseText;
            alert(xmlHttp2.responseText);
        } 
        

    }//function
    function inviteTeamMember(mid,tid){ 
        xmlHttp2=GetxmlHttp2RequestObject();
        var requestUrl="ForeningBjudInAddInvite.aspx?Type=invite&Mid="+mid+"&Tid="+tid;
        if(xmlHttp2)
        {
            xmlHttp2.onreadystatechange= function () {
					if (xmlHttp2.readyState == 4) {
						HandleResponseInvite(mid);
					}
			};
			xmlHttp2.open("GET", requestUrl,  true);
            xmlHttp2.send(null);   
			
        }//if
    }//function







