/* xxxxxxxxxxxxxxx /noblocodenotas/scripts/mySimpleScript.js xxxxxxxxxxxxxxxxxx */

var BAD =	(!document.getElementById||!document.getElementsByTagName);// Se il browser non supporta queste funzioni non si applica lo script

// Open new windows in xhtml - strict

function targetBlank() {
	var links = document.getElementsByTagName('a');
	for (var i = 0;i < links.length;i += 1) {
		if (/blank/.test(links[i].className)) {
			links[i].onclick = function() {
				window.open(this.href);
				return false;
			}
		}
	}
}

function focusForm() {
	document.getElementById('ditta').focus();
}

window.onload = function() {
	if(BAD)
	return;
	targetBlank();//Apre nuove finestre
	focusForm();
}

