<!--
// Cambia el contenido del cuadro central
function getContent(page, params, elementid, waitmsg){
	if(page=='modules/promo/promo.php'){
		document.getElementById(elementid).style.verticalAlign = 'middle';
	}else{
		document.getElementById(elementid).style.verticalAlign = 'top';
	}
	//Clear our fetching variable
	var xmlhttp=false; 
	//Try to create active x object
	try {
    xmlhttp = new ActiveXObject('Msxml2.XMLHTTP'); 
    } catch (e) {
    try {
         xmlhttp = new ActiveXObject('Microsoft.XMLHTTP'); 
    } catch (E) {
         xmlhttp = false;
    }
	}
	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {
		 xmlhttp = new XMLHttpRequest();
	}

	//This is the path to the PHP file on the server
	var file = page+params;
	//Open the file through GET, and add the page we want to retrieve as a GET variable
	xmlhttp.open('GET', file, true);
	//Display waiting image and message while content loads. 
	//Make sure you have the corect path for the image
	document.getElementById(elementid).innerHTML = "<table width='100%' border='0' cellspacing='0' cellpadding='0' style='height:100%;'><tr><td align='center' valign='middle' style='vertical-align:middle;'><img src='images/icons/waiting/waiting.gif' align='middle'><br>Cargando... <br />"+waitmsg+"</td></tr></table>";	
	xmlhttp.onreadystatechange=function() {
		
		if(xmlhttp.readyState==4) { 
			//Make sure there is something in the content variable
			var content = xmlhttp.responseText;
			//The content data which has been retrieved
			if( content ){   
				//Change the inner content of your div to the newly retrieved content
				document.getElementById(elementid).innerHTML = content;
			}
		}
	}
	//Nullify the XMLHttpRequest
	xmlhttp.send(null) 
	return;
}
//-->
