function valida_parece() {			
    var f = document.opinion
    var txtError = "Por favor, rellena todos los campos."
    
    if ( f.comentarios.value == "") {
        alert(txtError)
        f.comentarios.focus()
        return
    }
    
    if ( f.calificacion.value == "") {
        alert(txtError)
        f.calificacion.focus()
        return
    }
    
    if ( f.como.value == "") {
        alert(txtError)
        f.como.focus()
        return
    }
    
    if ( f.edad.value == "" || isNaN(f.edad.value) ) {
        alert(txtError)
        f.edad.focus()
        return
    }

    if ( f.codimg.value.length < 6 ) {
        alert(txtError)
        f.codimg.focus()
        return
    }
	        
    f.submit()
}

function valida_cuenta() {			
    var f = document.cuenta
    var txtError = "Por favor, rellena todos los campos."
    
    if ( f.tu_nombre.value == "") {
        alert(txtError)
        f.tu_nombre.focus()
        return
    }
    
    if ( f.tu_email.value == "") {
        alert(txtError)
        f.tu_email.focus()
        return
    }
    
    if ( f.su_nombre.value == "") {
        alert(txtError)
        f.su_nombre.focus()
        return
    }
    
    if ( f.su_email.value == "" ) {
        alert(txtError)
        f.su_email.focus()
        return
    }

    if ( f.comentarios.value == "" ) {
        alert(txtError)
        f.comentarios.focus()
        return
    }

    if ( f.codimg.value.length < 6 ) {
        alert(txtError)
        f.codimg.focus()
        return
    }
	        
    f.submit()
}

function recargaImg() {
	var d = new Date();
	document.getElementById('imgcpt').src = 'utils/captcha.php?id=' + d.getTime();
} 