function antispam(a,b) {
    document.location.href='mailto:'+a+'@'+b;
}

function conferma(messaggio, url) {
    if (confirm(messaggio)) {
        document.location.href = url;
    }
    return false;
}

function reloadcaptcha(img, text) {
    img = document.getElementById(img);
    text = document.getElementById(text);

    myrand = Math.ceil((new Date().getTime())/1000);

    old = text.value;

    img.style.display = 'none';
    img.src = '/captcha.php?action=show&new=1&file='+myrand+'&old='+old;
    img.style.display = 'block';

    text.value = myrand;
}