function enviacorreo(pagina) 
{ 
open(pagina, 'Sizewindow', 'width=400,height=380,toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=no, top=100,left=130'); 
} 

function winpopup() 
{ 
open('presentacion.php', 'Sizewindow', 'width=438,height=429,toolbar=no,location=no,directories=no,status=no, menubar=no,resizable=no, top=100,left=150'); 
} 
function contacto() 
{ 
open('correo.php', 'Sizewindow', 'width=450,height=240,toolbar=no,location=no,directories=no,status=no, menubar=no,resizable=no, top=100,left=150'); 
} 

function recuperar_password() 
{ 
open('recuperar.php?opc=recuperar', 'Sizewindowx', 'width=400,height=230,toolbar=no,location=no,directories=no,status=no, menubar=no,resizable=no, top=200,left=250'); 
} 


function valida_usu() {
if ((document.datos_usu.nick.value == "") || (document.datos_usu.nick.value== null)) {
alert("Debe ingresar tu nick o id"); document.datos_usu.nick.focus();
return false;
}
if ((document.datos_usu.pass.value == "") || (document.datos_usu.pass.value== null)) {
alert("Debe ingresar la clave"); document.datos_usu.pass.focus();
return false;
}
return true;
}

var checkOK = "ABCDEFGHIJKLMNÑOPQRSTUVWXYZÁÉÍÓÚ" + "abcdefghijklmnñopqrstuvwxyzáéíóú ";
var checkID = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" + "abcdefghijklmnopqrstuvwxyz" + "0123456789-_";
var checkNUM = "0123456789"; 
var allValid = true;

function validaid(checkStr){
 for (i = 0; i < checkStr.length; i++) {
  ch = checkStr.charAt(i);
  for (j = 0; j < checkID.length; j++)
  if (ch == checkID.charAt(j)) break;
  if (j == checkID.length) {
   allValid = false;
   break;
  }
 }
 return allValid;
}

function validaletras(checkStr){
 for (i = 0; i < checkStr.length; i++) {
  ch = checkStr.charAt(i);
  for (j = 0; j < checkOK.length; j++)
  if (ch == checkOK.charAt(j)) break;
  if (j == checkOK.length) {
   allValid = false;
   break;
  }
 }
 return allValid;
}
function validanumeros(checkStr){
 for (i = 0; i < checkStr.length; i++) {
  ch = checkStr.charAt(i);
  for (j = 0; j < checkNUM.length; j++)
  if (ch == checkNUM.charAt(j)) break;
  if (j == checkNUM.length) {
   allValid = false;
   break;
  }
 }
 return allValid;
}

function validaCod() {
if ((document.formulario.codigo_.value == "") || (document.formulario.codigo_.value== null)) {
alert("Debe ingresar su numero en Fundapro"); document.formulario.codigo_.focus();
return false;
}
return true;
}

function validarForm() {
	if ((document.dato.nombres.value == "") || (document.dato.nombres.value== null)) {
	alert("Debe ingresar su(s) nombre(s) real(es)"); document.dato.nombres.focus();
	return false;
	}
	if ((document.dato.paterno.value == "") || (document.dato.paterno.value== null)) {
	alert("Debe ingresar su apellido paterno"); document.dato.paterno.focus();
	return false;
	}
	if ((document.dato.materno.value == "") || (document.dato.materno.value== null)) {
	alert("Debe ingresar su apellido materno"); document.dato.materno.focus();
	return false;
	}
	if ((document.dato.usuario.value == "") || (document.dato.usuario.value== null)) {
	alert("Debe ingresar su nombre de usuario"); document.dato.usuario.focus();
	return false;
	}
	if (document.dato.usuario.value.length < 4) {
	alert("Escriba por lo menos 5 caracteres en el campo \"Nombre de Usuario\".");
	document.dato.usuario.focus();
	return false;
	}
	allValid=validaid(document.dato.usuario.value);
	if (!allValid) { alert("Introduzca caracteres validos \n en el campo Nombre de usuario");
	document.dato.usuario.focus();
	allValid = true;
	return false;
	}
	if ((document.dato.clave.value == "") || (document.dato.clave.value== null)) {
	alert("Debe ingresar su contraseña"); document.dato.clave.focus();
	return false;
	}
	if (document.dato.clave.value.length < 5) {
	alert("Escriba por lo menos 6 caracteres en el campo \"Contraseña\".");
	document.dato.clave.focus();
	return false;
	}
	if ((document.dato.clave2.value == "") || (document.dato.clave2.value== null)) {
	alert("Debe confirmar la Contraseña"); document.dato.clave2.focus();
	return false;
	}
	if ((document.dato.clave.value != document.dato.clave2.value)) {
	alert("La primera contraseña introducida no coincide con la segunda"); document.dato.clave.focus();
	return false;
	}
	if (document.dato.mail.value.length < 6 || document.dato.mail.value.indexOf('@', 0) == -1) {
	alert("Introduzca su Email valido");document.dato.mail.focus();
	return false;
	}
	
	return true;
}

function validarFormDos() {	
	if ((document.dato.usuario.value == "") || (document.dato.usuario.value== null)) {
	alert("Debe ingresar su nombre de usuario"); document.dato.usuario.focus();
	return false;
	}
	if (document.dato.usuario.value.length < 4) {
	alert("Escriba por lo menos 5 caracteres en el campo \"Nombre de Usuario\".");
	document.dato.usuario.focus();
	return false;
	}
	allValid=validaid(document.dato.usuario.value);
	if (!allValid) { alert("Introduzca caracteres validos \n en el campo Nombre de usuario");
	document.dato.usuario.focus();
	allValid = true;
	return false;
	}
	if ((document.dato.clave.value == "") || (document.dato.clave.value== null)) {
	alert("Debe ingresar su contraseña"); document.dato.clave.focus();
	return false;
	}
	if (document.dato.clave.value.length < 5) {
	alert("Escriba por lo menos 6 caracteres en el campo \"Contraseña\".");
	document.dato.clave.focus();
	return false;
	}
	if ((document.dato.clave2.value == "") || (document.dato.clave2.value== null)) {
	alert("Debe confirmar la Contraseña"); document.dato.clave2.focus();
	return false;
	}
	if ((document.dato.clave.value != document.dato.clave2.value)) {
	alert("La primera contraseña introducida no coincide con la segunda"); document.dato.clave.focus();
	return false;
	}
	if (document.dato.mail.value.length < 6 || document.dato.mail.value.indexOf('@', 0) == -1) {
	alert("Introduzca su Email valido");document.dato.mail.focus();
	return false;
	}
	
	return true;
}

function valida2() {
if ((document.dato.nacionalidad_.value == "") || (document.dato.nacionalidad_.value== null)) {
alert("Introduzca su nacionalidad"); document.dato.nacionalidad_.focus();
return false;
}

if ((document.dato.direccion_.value == "") || (document.dato.direccion_.value== null)) {
alert("Introduzca la dirección donde vive"); document.dato.direccion_.focus();
return false;
}

allValid=validaletras(document.dato.pais_.value);
if (!allValid) { alert("Escriba solo letras en el campo \"Nacionalidad\".");
document.dato.pais_.focus();
allValid = true;
return false;
}
if ((document.dato.ciudad_.value == "") || (document.dato.ciudad_.value== null)) {
alert("Debe introducir la ciudad donde radica"); document.dato.ciudad_.focus();
return false;
}
allValid=validaletras(document.dato.ciudad_.value);
if (!allValid) { alert("Escriba sólo letras en el campo \"Ciudad\".");
document.dato.ciudad_.focus();
allValid = true;
return false;
}
if ((document.dato.ciudad_.value == "") || (document.dato.ciudad_.value== null)) {
alert("Debe introducir la ciudad donde radica"); document.dato.ciudad_.focus();
return false;
}

allValid=validanumeros(document.dato.telefono.value);
if (!allValid) { alert("Escriba sólo numeros en el campo \"Telefono\".");
document.dato.telefono.focus();
allValid = true;
return false;
}
return true;
}

function messageclicbutton()
{
var agree=confirm(" Está procediendo a cancelar su registro.\n Posteriormente podrá completar los datos faltantes \n ingresando su Nombre de usuario y Password.");
if (agree)
	return true;
else
	return false;
}
function GuardarDatos()
{
var agree=confirm(" Asegurese de haber llenado todos los campos.");
if (agree)
	return true;
else
	return false;
}

function confirma_registro()
{
var agree=confirm(" ¿ Los datos que introdujo están correctos ?");
if (agree)
	return true;
else
	return false;
}

allValid = true;
function confirma_registro_exp()
{
if ((document.datos.cargo_.value == "") || (document.datos.cargo_.value== null)) {
alert("Debe ingresar el cargo"); document.datos.cargo_.focus();
allValid = false;
}else allValid = true;
if ((document.datos.institucion_.value == "") || (document.datos.institucion_.value== null)) {
alert("Debe ingresar la institución donde trabaja"); document.datos.institucion_.focus();
allValid = false;
}else allValid = true;
if ((document.datos.area_trabajo_.value == "") || (document.datos.area_trabajo_.value== null)) {
alert("Debe ingresar el area de trabajo"); document.datos.area_trabajo_.focus();
allValid = false;
}else allValid = true;
if ((document.datos.pais_.value == "") || (document.datos.pais_.value== null)) {
alert("Debe ingresar el pais donde trabaja(o)"); document.datos.pais_.focus();
allValid = false;
}else allValid = true;
if ((document.datos.ciudad_.value == "") || (document.datos.ciudad_.value== null)) {
alert("Debe ingresar la ciudad donde trabaja(o)"); document.datos.ciudad_.focus();
allValid = false;
}else allValid = true;
if ((document.datos.causa_retiro_.value == "") || (document.datos.causa_retiro_.value== null)) {
alert("Debe ingresar el motivo por que se retiro de ese empleo"); document.datos.causa_retiro_.focus();
allValid = false;
}else allValid = true;
if ((document.datos.sup_inmediato_.value == "") || (document.datos.sup_inmediato_.value== null)) {
alert("Nombre Inmediato Superior"); document.datos.sup_inmediato_.focus();
allValid = false;
}else allValid = true;


if (allValid==true){
	var agree=confirm(" ¿ Los datos que introdujo están correctos ?");
	if (agree)
		return true;
	else
		return false;
}
else 
	return false;
}



function validaFormRecupera() {
if (document.dato.mail.value.length < 6 || document.dato.mail.value.indexOf('@', 0) == -1) {
alert("Introduzca su Email valido");document.dato.mail.focus();
return false;
}

return true;
}

  <!-- Funny text script by Bart Jellema
    var hellotext=" FUNDA-PRO, Bolsa de Trabajo Virtual "
    var thetext=""
    var started=false
    var step=0
    var times=1

    function bienvenido()
    {
      times--
      if (times==0)
      { 
        if (started==false)
        {
          started = true;
          window.status = hellotext;
          setTimeout("anim()",1); 
        }
        thetext = hellotext;
      }
    }

    function showstatustext(txt)
    {
      thetext = txt;
      setTimeout("welcometext()",4000)
      times++
    }

    function anim()
    {
      step++
      if (step==7) {step=1}
      if (step==1) {window.status='>==='+thetext+'===<'}
      if (step==2) {window.status='=>=='+thetext+'==<='}
      if (step==3) {window.status='>=>='+thetext+'=<=<'}
      if (step==4) {window.status='=>=>'+thetext+'<=<='}
      if (step==5) {window.status='==>='+thetext+'=<=='}
      if (step==6) {window.status='===>'+thetext+'<==='}
      setTimeout("anim()",200);
    }
  // Funny text script by Bart Jellema -->

function checkLen(obj) {
StrLen = obj.value.length;
if (StrLen > 250 ) {
			obj.value = obj.value.substring(0,250);
			charsLeft = 0;
		}
		else charsLeft = 250 - StrLen;
		document.pictureForm.charsLeft.value = charsLeft;
}