var gstrDiv="";
function changeSection(strSeccion,strTipo,strDiv){	
		var url = 'load_page.asp';
		gstrDiv=strDiv;
		alert("changeSection")
		//strTipo = s:static d:dynamic
		var params = 'seccion=' + strSeccion + "&tipo=" + strTipo ;
		var ajax = new Ajax.Updater(
					{success: strDiv},
					url,
					{method: 'get', parameters: params, onFailure: reportError,onComplete:alertBody}
					);
	}//function 	
	function alertBody(request){
			alert(request.responseText)
	}
	function reportError(request) {
		$F(gstrDiv) = "Error";
	}

//
// getPageScroll()
// Returns array with x,y page scroll values.
// Core code from - quirksmode.org
//
function getPageScroll(){

	var hScroll;

	if (self.pageYOffset) {
		hScroll = self.pageYOffset;
	} else if (document.documentElement && document.documentElement.scrollHeight){	 // Explorer 6 Strict
		hScroll = document.documentElement.scrollHeight;
	} else if (document.body) {// all other Explorers
		hScroll = document.body.scrollHeight;
	}
 
	return hScroll;
}

	function resizeIframe() {
		try{
	
		// Must launched on the body onload event handler for IE
		// Use document.documentElement if you are in Compat mode	
			i = parent.document.getElementById(window.name)			
			iHeight = getPageScroll()						
			i.style.height = iHeight + 5 + "px"

		}catch(e){
			i = parent.document.body
			iHeight = getPageScroll()						
			i.style.height = iHeight + 5 + "px"

		//alert(e.message)
		}
	}
	
	function init_hora(lyDestino){
		var ajax = new Ajax.Updater(
					{success: lyDestino},
					"/chui/horario.asp",
					{method: 'get'}
					);
	}