﻿function targetBlank(url) {
    blankWin = window.open(url, '_blank', 'width=400px, height=320px, menubar=no,toolbar=no,location=no,directories=no,fullscreen=no,titlebar=no,hotkeys=no,status=no,scrollbars=no,resizable=no');
}
function targetBlank2(url) {
    blankWin = window.open(url, '_blank', 'menubar=yes,toolbar=yes,location=yes,directories=yes,fullscreen=yes,titlebar=yes,hotkeys=yes,status=yes,scrollbars=yes,resizable=yes');
}

// form event
function svuota() {
    document.getElementById('cap').value = "";
}
function KeyDownHandler(e) {
    var keyPressed;
    if (window.event) { // IE
        keyPressed = window.event.keyCode;
        if (keyPressed == 13) {
            event.returnValue = false;
            event.cancel = true;
            document.getElementById('pulsante_search').click();
        }
    }
    else {
        keyPressed = e.which;  // Firefox
        if (keyPressed == 13) {
            e.cancelBubble = true;
            e.stopPropagation();
            e.preventDefault();
            e.returnValue = false;
            e.cancel = true;
            //non chiamo funzioni, genera errore sulla lettura xml
        }
    }
}
