function cargarPantalla(pantalla){
	window.open(pantalla,"contenido");
}
	
function abrirNuevaPantalla(pantalla){
	window.open(pantalla,"_blank");
}

function abrirNuevaPantallaSinControlesNavegador(pantalla){
	window.open(pantalla,'_blank','top=0,left=0,menubar=0,scrollbars=0,toolbar=0,status=1'); 
}	

function adjustIFrameContenidoSize (iframeWindow) {
	adjustIFrameSize(iframeWindow);
	parent.adjustIFrameSize(window);
}

function prepararPantallaContenido(window){
	vbmenu_close();
	document.getElementById('marquesina').innerHTML=getMarquesina(window.varmarquesina);
	adjustIFrameContenidoSize(window);	
}

function getMarquesina(texto){
	var marquesina = "<strong><marquee id='marquesina' bgcolor='#0000ff' align='middle'>" + texto + "</marquee></strong-->";
	return marquesina;
}

function adjustIFrameSize (iframeWindow) {
	  if (iframeWindow.document.height) {
	    var iframeElement = parent.document.getElementById(iframeWindow.name);
	    iframeElement.style.height = iframeWindow.document.height + 'px';
	    iframeElement.style.width = iframeWindow.document.width + 'px';
	  }else if (document.all) {
	    var iframeElement = document.all[iframeWindow.name];
	    if (iframeWindow.document.compatMode && iframeWindow.document.compatMode != 'BackCompat'){
	      iframeElement.style.height = iframeWindow.document.documentElement.scrollHeight + 'px';
	      iframeElement.style.width = iframeWindow.document.documentElement.scrollWidth + 'px';
	    }else {
	      iframeElement.style.height = iframeWindow.document.body.scrollHeight + 'px';
	      iframeElement.style.width = iframeWindow.document.body.scrollWidth + 'px';
	    }
	  }  
}
