function cambiarPagSolo(mod,pag)
{	switch(mod)
	{	case 16:	document.frmList.action="eventos.asp?pag="+pag;
					document.frmList.submit();
					break;
		case 19:	document.frmList.action="noticias.asp?pag="+pag;
					document.frmList.submit();
					break;
		case 17:	document.frmList.action="publicaciones.asp?pag="+pag;
					document.frmList.submit();
					break;
		case 18:	document.frmList.action="enlaces.asp?pag="+pag;
					document.frmList.submit();
					break;
		case 14:	document.frmList.action="catalogo.asp?pag="+pag;
					document.frmList.submit();
					break;
	}
}

function validar(pIntLng)
{	if(document.frmSend.txtNombres.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese sus nombres");
		else
			alert("Enter your names");
		document.frmSend.txtNombres.focus();
		return;
	}
	if(document.frmSend.txtEmail.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su email");
		else
			alert("Enter a email");
		document.frmMiembro.txtEmail.focus();
		return;
	}
	if(document.frmSend.txtMensaje.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su mensaje");
		else
			alert("Enter your comments");
		document.frmSend.txtMensaje.focus();
		return;
	}
	document.frmSend.action="contactenos.asp?sv=1";
	document.frmSend.submit();
}

function valPss(pIntLng)
{	if(document.frmSend.txtContacto.value=="")
	{	if(pIntLng=="1")
			alert("Indique el nombre del contacto");
		else
			alert("Enter the contact name");
		document.frmSend.txtContacto.focus();
		return;
	}
	if(document.frmSend.txtEmpresa.value=="")
	{	if(pIntLng=="1")
			alert("Indique la empresa");
		else
			alert("Enter the organization name");
		document.frmSend.txtEmpresa.focus();
		return;
	}
	if(document.frmSend.txtEmail.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su email");
		else
			alert("Enter a email");
		document.frmMiembro.txtEmail.focus();
		return;
	}
	document.frmSend.action="obtener-clave.asp?sv=1";
	document.frmSend.submit();
}

function valSolicitud(pIntLng)
{	var total;
	total=0;
	for ( var i = 0; i < document.frmMiembro.radSol.length; i++ )
	{	if(document.frmMiembro.radSol[i].checked) 
		{	total=parseInt(total)+1;	}
	}
	if(total=="0")
	{	if(pIntLng=="1")
			alert(Utf8.encode("Seleccione una solicitud"));
		else
			alert("Select a option");
		return;
	}
	if(document.frmMiembro.txtEmail.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su email");
		else
			alert("Enter a email");
		document.frmMiembro.txtEmail.focus();
		return;
	}
	document.frmMiembro.action="solicitud.asp?sv=1";
	document.frmMiembro.submit();
}

function valReserva(pIntLng)
{	if(document.frmSend.txtNombres.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su nombre");
		else
			alert("Enter your name");
		document.frmSend.txtNombres.focus();
		return;
	}
	if(document.frmSend.txtInstitucion.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su institución");
		else
			alert("Enter your organization");
		document.frmSend.txtInstitucion.focus();
		return;
	}
	if(document.frmSend.txtEmail.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su email");
		else
			alert("Enter a email");
		document.frmSend.txtEmail.focus();
		return;
	}
	if(document.frmSend.txtMensaje.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese sus comentarios");
		else
			alert("Enter your comments");
		document.frmSend.txtMensaje.focus();
		return;
	}
	document.frmSend.action="solicitar.asp?sv=1";
	document.frmSend.submit();
}

function valAcceso(pIntLng)
{	if(document.frmAcceso.txtUss.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su nombre de usuario");
		else
			alert("Enter your usser id");
		document.frmAcceso.txtUss.focus();
		return;
	}
	if(document.frmAcceso.txtPss.value=="")
	{	if(pIntLng=="1")
			alert("Ingrese su clave");
		else
			alert("Enter your password");
		document.frmAcceso.txtPss.focus();
		return;
	}
	document.frmAcceso.action="valAcceso.asp";
	document.frmAcceso.submit();
}

function valQuitarItem(pIntIdItem)
{	document.frmList.action="catalogo.asp?add=1&item="+pIntIdItem;
	document.frmList.submit();
}
