function ValidarFecha( cFecha ) {

	if ( cFecha  == "") { return false   }
	var nPos = cFecha.indexOf('/',0)
	var cDia = cFecha.substring( 0, nPos )
	    cFecha = cFecha.substring( nPos+1, cFecha.length )
	    nPos = cFecha.indexOf('/',0)
	var cMes = cFecha.substring( 0, nPos )
	var cAno = cFecha.substring( nPos+1, cFecha.length )
	var nDia = cDia * 1
	var nMes = cMes * 1
	var nAno = cAno * 1
	if (nAno < 0 ) { return false} 
	if (nMes < 1 || nMes > 12) {	return false  }
	if (nDia < 1 || nDia > 31) {	return false }
	return true
} 
function ValidMailAddress( email, obligatorio ) {
	var chequeardominio = true
	if (email == "") {
		if (obligatorio) {
			alert( "Introduzca la dirección de correo electrónico.")
			return false
		} else chequeardominio = false;
	}		
	if (chequeardominio) {
		if ( (email.indexOf('@', 0) == -1) || (email.indexOf('.', 0) == -1) ) {
		   alert("Dirección de correo electrónico incorrecta.");
		   return false;
		}
	}
	return true
}
function validpassword( cpwd ) {
	validos = "abcdefghijklmnopqrstuvwxyz0123456789"
	for ( i =0; i<=validos.length; i++ ) {
		cAux = cpwd.substr( i, 1 )
		cAux = cAux.toLowerCase()
		if ( validos.indexOf( cAux ) == -1 ) {
			return false
		}
	}
	return true
}