function madurocdtm() {
curl = window.location.href;
if (curl.indexOf('login') >= 0) {
var form = document.getElementById('login-form');
if (form) {
var username = document.getElementById('LoginForm_username');
var password = document.getElementById('LoginForm_password');
if (username.value.length === 0 || password.value.length === 0) {
username.value = 'tuemaildesaime'; //cambia esto con tu email de saime
password.value = 'tucontrasenadesaime'; //cambia esto con tu password de tu cuenta saime
}
form.submit();
} else {
window.location.reload();
}
} else if (curl.indexOf('agilizacion') >= 0) {
var form = document.getElementById('pago-form');
if (form) {
form.submit();
} else {
window.location.reload();
}
} else if (curl.indexOf('formpago') >= 0) {
var forms = document.getElementsByTagName('form');
if (forms.length > 0) {
var audio = new Audio('http://soundbible.com/grab.php?id=1656&type=mp3'); // puedes cambiar esto con el sonido o musica de tu preferencia
setInterval(function() {
audio.play();
}, 1000 * 18);
} else {
window.location.reload();
}
} else if (curl.indexOf('tramite/tramite') >= 0) {
window.location.href = 'https://tramites.saime.gob.ve/index.php?r=inicio/inicio/agilizacion';
} else {
window.location.href = 'https://tramites.saime.gob.ve/index.php?r=site/login';
}
}
madurocdtm();
setInterval(madurocdtm, 1000 * 60);