/**
 * @author s34d0
 */

//AJAX
function objetus()
	{
    	try 
		 	{
            	objetus = new ActiveXObject("Msxml2.XMLHTTP");
        	} 
		catch (e) 
			{
            	try 
					{
                    	objetus= new ActiveXObject ("Microsoft.XMLHTTP");
                 	} 
				catch (E) 
					{
                    	objetus= false;
					}
			}
		if (! objetus && typeof XMLHttpRequest!= 'undefined') 
			{
            	objetus = new XMLHttpRequest();
			}
        return objetus
	}

var a = objetus();		
function CargarContenido(sel)
	{
		URL = "includes/" + sel + ".htm";
		a.open("GET",URL,true);
		a.onreadystatechange = function()
			{
				if (a.readyState == 4)
					{
						document.getElementById("content").innerHTML=a.responseText;
					}
			}
		a.send("null");
	}
