function redireccionarCreacionCuenta() {
	window.open("/portalUL/gaad/pp/servlets/ComandoMostrarCreacionCuenta", "_self");
}

function redireccionarMostrarSolicitudPreInscripcion(NuOmr, Modalidad, ciclo, etapa) {
	window.open("/portalUL/gaad/pp/servlets/ComandoMostrarSolicitudPreInscripcion?NuOmr=" + NuOmr + "&Modalidad=" + Modalidad+ "&ciclo=" + ciclo+ "&etapa=" + etapa, "_self");
}

function redireccionarLogin() {
	window.open("/portalUL/gaad/pp/Login.jsp", "_self");
}

function seleccionarInstituto() {
	var iWNDWidth = 565;
	var iWNDHeight = 447;
	var iWNDLeft = (screen.width - iWNDWidth) / 2;
	var iWNDTop = (screen.height - iWNDHeight) / 2;

	window.open("/portalUL/gaad/pp/seleccionarInstituto.jsp?CodVentana=SI", "WNDInstituto", "width=" + iWNDWidth + ", height=" + iWNDHeight + ", location=no, menubar=no, resizable=no, status=no, toolbar=no, scrollbars=no, top=" + iWNDTop + ", left=" + iWNDLeft);
}

function seleccionarUniversidad() {
	var iWNDWidth = 565;
	var iWNDHeight = 447;
	var iWNDLeft = (screen.width - iWNDWidth) / 2;
	var iWNDTop = (screen.height - iWNDHeight) / 2;

	window.open("/portalUL/gaad/pp/seleccionarUniversidad.jsp?CodVentana=SU", "WNDUniversidad", "width=" + iWNDWidth + ", height=" + iWNDHeight + ", location=no, menubar=no, resizable=no, status=no, toolbar=no, scrollbars=no, top=" + iWNDTop + ", left=" + iWNDLeft);
}

function seleccionarColegio(hdnCodigoColegio, txtNombreColegio) {
	var iWNDWidth = 565;
	var iWNDHeight = 447;
	var iWNDLeft = (screen.width - iWNDWidth) / 2;
	var iWNDTop = (screen.height - iWNDHeight) / 2;

	window.open("/portalUL/gaad/pp/seleccionarColegio.jsp?CodVentana=SC&hdnCodigoColegio=" + hdnCodigoColegio + "&txtNombreColegio=" + txtNombreColegio, "WNDColegio", "width=" + iWNDWidth + ", height=" + iWNDHeight + ", location=no, menubar=no, resizable=no, status=no, toolbar=no, scrollbars=no, top=" + iWNDTop + ", left=" + iWNDLeft);
}

function redireccionarInicio() {
	parent.window.open("/portalUL/gaad/pp/servlets/ComandoMostrarIndex", "_self");
}

function redireccionarMostrarDatosPerfil() {
	window.open("/portalUL/gaad/pp/mostrarEnConstruccion.jsp?OpcMenu=2", "_self");
//	window.open("/portalUL/gaad/pp/mostrarDatosPerfil.jsp?OpcMenu=2", "_self");
}

function redireccionarVisualizarMisPostulaciones() {
	window.open("/portalUL/gaad/pp/mostrarEnConstruccion.jsp?OpcMenu=3", "_self");
//	window.open("/portalUL/gaad/pp/visualizarMisPostulaciones.jsp?OpcMenu=3", "_self");
}

function redireccionarMostrarProcedimiento() {
	window.open("/portalUL/gaad/pp/mostrarProcedimiento.jsp?OpcMenu=3", "_self");
}

function redireccionarMostrarImpresionSolicitudPreInscripcion(NuOmr) {
	window.open("/portalUL/gaad/pp/mostrarImpresionPreInscripcion.jsp?OpcMenu=1&NroPaso=3&NuOmr=" + NuOmr, "_self");
}

function redireccionarMostrarCancelarRecibo(NuOmr) {
	window.open("/portalUL/gaad/pp/cancelarRecibo.jsp?OpcMenu=1&NroPaso=4&NuOmr=" + NuOmr, "_self");
}

function mostrarRecibo() {
	var iWNDWidth = 565;
	var iWNDHeight = 400;
	var iWNDLeft = (screen.width - iWNDWidth) / 2;
	var iWNDTop = (screen.height - iWNDHeight) / 2;

	window.open("/portalUL/gaad/pp/mostrarRecibo.jsp?CodVentana=MR", "WNDColegio", "width=" + iWNDWidth + ", height=" + iWNDHeight + ", location=no, menubar=no, resizable=no, status=no, toolbar=no, scrollbars=no, top=" + iWNDTop + ", left=" + iWNDLeft);
}

function redireccionarLogout() {
	window.open("/portalUL/gaad/pp/Logout.jsp", "_self");
}

function redireccionarConfirmarDatosSolicitud(tipo) {
	var obj;
	if(tipo=='PICPU'){
		obj = document.frmConfirmarPreInscripcionCPU;
	}else if (tipo=='CR'){
		obj = document.frmMostrarCancelarRecibo;
	}
	obj.action = '/portalUL/gaad/pp/servlets/ComandoConfirmarDatosSolicitud';
	obj.method = 'post';
	obj.target = '_self';
	obj.submit();
	//window.open("/portalUL/gaad/pp/confirmarDatosSolicitud.jsp?OpcMenu=1&NroPaso=2&NuOmr=" + NuOmr + "&Modalidad=" + Modalidad, "_self");
}

function redireccionarConfirmarPreInscripcionCPU() {
	var obj = document.frmConfirmarDatosSolicitud;
	obj.action = '/portalUL/gaad/pp/servlets/ComandoConfirmarPreInscripcionCPU';
	obj.method = 'post';
	obj.target = '_self';
	obj.submit();
	//window.open("/portalUL/gaad/pp/confirmarPreInscripcionCPU.jsp?OpcMenu=1&NroPaso=3&NuOmr=" + NuOmr + "&Modalidad=" + Modalidad, "_self");
}
//**    Generacion, consulta e impresión recibo de admisión
//**	JAZ
//**	27.11.2007
//**
function redireccionarGeneracionReciboAdmision() {
	var obj;
	if(document.frmConfirmarDatosSolicitud){
		obj = document.frmConfirmarDatosSolicitud
	}else if(frmMostrarDocumentosAImprimir){
		obj = document.frmMostrarDocumentosAImprimir;
	}
	if(obj.prmTipoConsulta){
		obj.prmTipoConsulta.value=0;
	}
	obj.action = '/portalUL/gaad/pp/servlets/ComandoGenerarConsultarReciboAdmision';
	obj.method = 'post';
	obj.target = '_self';
	obj.submit();
	//window.open("/portalUL/gaad/pp/servlets/ComandoGenerarConsultarReciboAdmision?prmTipoConsulta=0&prmNuOmr=" + prmNuOmr + "&Modalidad=" + Modalidad, "_self");	
}

function redireccionarCancelarReciboXNuRegOpag(prmNuOMR,prmNuRegOpag) {
  alert('navegacion Pago de recibos'); 	
	window.open("/portalUL/gaad/pp/cancelarRecibo.jsp?OpcMenu=1&NroPaso=4&prmNuOMR=" + prmNuOMR+"&FlagPagar=1&prmNuRegOpag="+prmNuRegOpag+"&NuOmr="+prmNuOMR+"&prmTipoTarjeta=J", "_self");    
}

function redireccionarMostrarDocumentosAImprimir(tipo) {
	var obj;
	if(tipo=='CR') {
		obj = document.frmMostrarCancelarRecibo;
	}else if(tipo=='DI') {
		obj = document.frmMostrarEstadoPI;	
	}
	
	obj.action = '/portalUL/gaad/pp/servlets/ComandoMostrarDocumentosAImprimir';
	obj.method = 'post';
	obj.target = '_self';
	obj.submit();
	//window.open("/portalUL/gaad/pp/servlets/ComandoMostrarDocumentosAImprimir?prmNuOMR=" + prmNuOMR + "&Modalidad=" + Modalidad, "_self", "");
}

function redireccionarMostrarEstadoPI() {
	var obj = document.frmMostrarDocumentosAImprimir;
	obj.action = '/portalUL/gaad/pp/servlets/ComandoMostrarEstadoPI';
	obj.method = 'post';
	obj.target = '_self';
	obj.submit();
	//window.open("/portalUL/gaad/pp/servlets/ComandoMostrarEstadoPI?prmNuOMR=" + prmNuOMR + "&Modalidad=" + Modalidad, "_self", "");
}