function Validaciones(thisform) {

    with (thisform) {

        //Que haya indicado el nombre
        if (name.value == "") {
            alert(fdic.trad(disAlertName, null));
            name.focus();
            return false;
        }
        //Que haya indicado el apellido
        if (lastname.value == "") {
            alert(fdic.trad(disAlertLastName, null));
            lastname.focus();
            return false;
        }
        //Que haya indicado el Email.
        if (validaEmail(email) == false) {
            return false;
        }
        //Que haya indicado el telefono.
        if (phone.value == "") {
            alert(fdic.trad(disAlertPhone, null));
            phone.focus();
            return false;
        }
        //Que haya indicado el telefono.
        if (Comments.value == "") {
            alert(fdic.trad(disAlertComments, null));
            Comments.focus();
            return false;
        }
        return true;
    }

}

//Valida Email del Cliente
function validaEmail(item) {
    if (item.value == '') {
        alert(fdic.trad(disAlertVoucherEmail, null));
        item.focus();
        return false;
    } else {
        re = /[\w-\.]{1,}@([\w-]{2,}\.)*([\w-]{2,}\.)[\w-]{2,4}/
        if (!re.exec(item.value)) {
            alert(fdic.trad(disAlertVoucherEmailValido, null));
            item.focus();
            return false;
        }
    }
    return true;
}


