function getEA(id) {
	alert('Click OK to proceed.');
	xmlhttpPost(id);
}


function xmlhttpPost (id) {
	
    var xmlHttpReq = false;
    var self = this;
    // Mozilla/Safari
    if (window.XMLHttpRequest) {
        self.xmlHttpReq = new XMLHttpRequest();
    }
    // IE
    else if (window.ActiveXObject) {
        self.xmlHttpReq = new ActiveXObject("Microsoft.XMLHTTP");
    }
    self.xmlHttpReq.open('POST', 'getEA.asp', true);
    self.xmlHttpReq.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
    self.xmlHttpReq.onreadystatechange = function() {
        if (self.xmlHttpReq.readyState == 4) {
            
            
            updatepage(self.xmlHttpReq.responseText);
           
        }
    }
    self.xmlHttpReq.send(getquerystring(id));
}

function getquerystring(id) {

    qstr = 'id=' + id;
	 
	return qstr;
	
}

function updatepage (theEmail) {
window.document.location='mailto: ' + theEmail
}