function getinfo(id) {
   
        
            // Set up the request
			if (window.XMLHttpRequest){

          		// If IE7, Mozilla, Safari, etc: Use native object
          		var xmlhttp = new XMLHttpRequest()

			}
			else
			{

         		 // ...otherwise, use the ActiveX control for IE5.x and IE6
          		var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
          	}
            xmlhttp.open('POST', '../../../../mycheck.php?row='+id, true);
            
            // The callback function
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4) {
                    if (xmlhttp.status == 200) {
                        var title = xmlhttp.responseXML.getElementsByTagName('title')[0].firstChild.data;
                        if(xmlhttp.responseXML.getElementsByTagName('info')[0].firstChild != null)
                        var info = xmlhttp.responseXML.getElementsByTagName('info')[0].firstChild.data;
                        var desc = xmlhttp.responseXML.getElementsByTagName('desc')[0].firstChild.data;
                        var cost = xmlhttp.responseXML.getElementsByTagName('cost')[0].firstChild.data;
                        var month = xmlhttp.responseXML.getElementsByTagName('month')[0].firstChild.data;
                        var day = xmlhttp.responseXML.getElementsByTagName('day')[0].firstChild.data;
                        var year = xmlhttp.responseXML.getElementsByTagName('year')[0].firstChild.data;
						if(xmlhttp.responseXML.getElementsByTagName('time')[0].firstChild != null)
                        var time = xmlhttp.responseXML.getElementsByTagName('time')[0].firstChild.data;
						if(xmlhttp.responseXML.getElementsByTagName('ampm')[0].firstChild != null)
                        var ampm = xmlhttp.responseXML.getElementsByTagName('ampm')[0].firstChild.data;
                        if(xmlhttp.responseXML.getElementsByTagName('fileone')[0].firstChild != null)
                        {
                        	var file1 = xmlhttp.responseXML.getElementsByTagName('fileone')[0].firstChild.data;
                        }
                        if(xmlhttp.responseXML.getElementsByTagName('filetwo')[0].firstChild != null)
                        {
                        	var file2 = xmlhttp.responseXML.getElementsByTagName('filetwo')[0].firstChild.data;
                        }
                        if(xmlhttp.responseXML.getElementsByTagName('filethree')[0].firstChild != null)
                        {
                        	var file3 = xmlhttp.responseXML.getElementsByTagName('filethree')[0].firstChild.data;
                        }
                        var str = "<div id='top_bar'><span id='top_bar_title'>Event Information</span><div id='close' name='close'>X</div></div>";
                        str += "<div id='event_cont_wrap'>";
                        str += "<h3 style='margin-bottom:0px;margin-top:0px;'>"+title+"</h3>";
                        str += "<p style='margin-top:1px;font-style:italic;'>"+desc+"</p>";
                        str += "<p style=''>Date: "+month+"/"+day+"/"+year+"<br />Time: " + time + ' ' + ampm + "</p>";
                        if(cost != "" && cost != null && cost != "$0.00")
                        str += "<p style=''>Cost: "+cost+"</p>";
                        if(info != "" && info != null)
                        {
                        	str += "<p style=''>"+info+"</p>";
                        }
                        if(file1 != "" && file1 != null)
                        {
                        	var file = file1.split("-");
                        	str += "<p style=''>Attached File: <a href='http://exploitschamber.com/download?f="+file[1]+"&e="+file[0]+"'>Download</a></p>";
                        }
                        if(file2 != "" && file2 != null)
                        {
                        	var file = file2.split("-");
                        	str += "<p style=''>Attached File: <a href='http://exploitschamber.com/download?f="+file[1]+"&e="+file[0]+"'>Download</a></p>";
                        }
                        if(file3 != "" && file3 != null)
                        {
                        	var file = file3.split("-");
                        	str += "<p style=''>Attached File: <a href='http://exploitschamber.com/download?f="+file[1]+"&e="+file[0]+"'>Download</a></p>";
                        }
                        str+= "</div>";

                        var calBg = document.getElementById('calendar_content_bg');
                        var cal = document.getElementById("calendar_content");
                        cal.innerHTML=str;
                        var closeBut = document.getElementById("close");
                        closeBut.onclick = function()
                        {
                        	var c = document.getElementById("calendar_content");
                        	c.style.visibility = "hidden";
                            document.getElementById('calendar_content_bg').style.visibility = 'hidden';
                        }
                        calBg.style.visibility = 'visible';
                        cal.style.visibility = "visible";
                    }
                }
            }
            
            // Send the POST request
            xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
            xmlhttp.send('row=' + id);
} 

function vote(answer)
{
			// Set up the request
			if (window.XMLHttpRequest){

          		// If IE7, Mozilla, Safari, etc: Use native object
          		var xmlhttp = new XMLHttpRequest();

			}
			else
			{

         		 // ...otherwise, use the ActiveX control for IE5.x and IE6
          		var xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
          	}
            xmlhttp.open('POST', 'vote', true);
            // Send the POST request
            xmlhttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
            xmlhttp.send('answer=' + answer);
            // The callback function
            xmlhttp.onreadystatechange = function() {
                if (xmlhttp.readyState == 4) {
                    if (xmlhttp.status == 200) {
                       var title = xmlhttp.responseXML.getElementsByTagName('title')[0].firstChild.data;
                       var lbody = document.getElementById("lbody");
                       lbody.innerHTML = "<p>Thank you for voting.</p>";
                    }
                }
            }
}
