function show_comments(entry_id, section, page)
	{
		var xmlHttp;
		var full_id   = 'comment_box'
		var link_code ='http://www.elinternado.com/includes/parts/ajax.php?script=comments&entry_id='+entry_id+'&section='+section+'&page='+page
		
		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(full_id).innerHTML = xmlHttp.responseText;
					}
			}
			
		xmlHttp.open('GET', link_code, true);
		xmlHttp.send(null);
	}  

function report_comment(entry_id)
	{
		message = 'If this comment has offended you any way press OK to report it to the site admin';
		if(confirm(message)) 
			{ 	
				var xmlHttp;
				var full_id   = 'report_comment_'+entry_id
				var link_code = 'http://www.elinternado.com/includes/parts/ajax.php?script=report_comment&entry_id='+entry_id
				
				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(full_id).innerHTML = xmlHttp.responseText;
							}
					}
					
				xmlHttp.open('GET', link_code, true);
				xmlHttp.send(null);
			}
	} 
	
function cast_vote(entry_id, section, value)
	{
		var xmlHttp;
		var full_id   = 'rating_box'
		var link_code = 'http://www.elinternado.com/includes/parts/ajax.php?script=rating&entry_id='+entry_id+'&section='+section+'&value='+value
		
		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(full_id).innerHTML = xmlHttp.responseText;
					}
			}
			
		xmlHttp.open('GET', link_code, true);
		xmlHttp.send(null);
	} 

function add_to_favorite(entry_id, section, author_id)
	{
		var xmlHttp;
		var full_id   = 'add_favs'
		var link_code = 'http://www.elinternado.com/includes/parts/ajax.php?script=favorite_add&entry_id='+entry_id+'&section='+section+'&author_id='+author_id
		
		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(full_id).innerHTML = xmlHttp.responseText;
					}
			}
			
		xmlHttp.open('GET', link_code, true);
		xmlHttp.send(null);
	} 
	
function show_favorites(member_id, section, seo_url, page)
	{
		var xmlHttp;
		var full_id   = 'favorite_'+section
		var link_code = 'http://www.elinternado.com/includes/parts/ajax.php?script=favorite_show&member_id='+member_id+'&section='+section+'&seo_url='+seo_url+'&page='+page
		
		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(full_id).innerHTML = xmlHttp.responseText;
					}
			}
			
		xmlHttp.open('GET', link_code, true);
		xmlHttp.send(null);
	}
	
function remove_favorite(member_id, ident, section, seo_url, page)
	{
		var xmlHttp;
		var full_id   = 'favorite_'+section
		var link_code = 'http://www.elinternado.com/includes/parts/ajax.php?script=favorite_remove&member_id='+member_id+'&ident='+ident+'&section='+section+'&seo_url='+seo_url+'&page='+page
		
		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(full_id).innerHTML = xmlHttp.responseText;
					}
			}
			
		xmlHttp.open('GET', link_code, true);
		xmlHttp.send(null);
	}					
