// standard.js

//target blank

function inizializza() {
a = document.getElementsByTagName('A');
for(i=0;a[i];i++) if( (a[i].className.indexOf('blank') != -1) || (a[i].className.indexOf('allegato_in_evidenza') != -1) ) {
a[i].title += " [il collegamento apre una nuova finestra]";
a[i].onclick = function () {window.open(this.href, '_blank', 'width=1024, height=768, toolbar=no, scrollbars=yes, resizable=yes');return false;};
a[i].onkeypress = function (e) {
k = (e) ? e.keyCode : window.event.keyCode;
if(k==13) {
window.open(this.href, '_blank', 'width=1024, height=768, toolbar=no, scrollbars=yes, resizable=yes');
return false;
}
}
}
}
window.onload = function() {inizializza();}


//cancella value di input text
function cancellatxt(elm){
	if (!elm.base) elm.base = elm.value
	if (elm.value == elm.base) elm.value = "";
	else if (elm.value == "") elm.value = elm.base;
}