function OpenSponsor(str) {   w = window.open(str,'info','toolbar=yes,scrollbars=yes,resizable=yes,status=yes,width=600,height=400');   w.moveTo(0,0);   w.focus();}function OpenSite(str) {w = window.open('http://' + str,'site','toolbar=yes,scrollbars=yes,resizable=yes,status=yes,width=600,height=400');w.moveTo(0,0);w.focus();}function SelfResizeA(str) {   self.moveTo(0,0);   self.resizeTo(screen.availWidth,screen.availHeight);   self.focus();   w = window.open('it/h/auguri.html','auguri','scrollbars=no,resizable=no,status=no,width=640,height=480');   w.focus();}function SelfResizeAuguri(str) {   X = parseInt(screen.availWidth / 2 - 320);   Y = parseInt(screen.availHeight / 2 - 240);   self.moveTo(X,Y);   self.focus();}function OpenMap(str) {   w = window.open(str,'map','scrollbars=no,resizable=no,status=no,width=750,height=505');   w.moveTo(20,20);   w.focus();}function Thanks(str) {	w = window.open(str,'info','scrollbars=yes,resizable=no,status=no,width=screen.availWidth - 50,screen.availHeight - 50');	w.moveTo(50,50);	w.focus();}function OpenHelp(str) {   w = window.open(str,'info','scrollbars=yes,resizable=no,status=no,width=320,height=350');   w.moveTo(0,0);   w.focus();}function OpenShop(str) {   w = window.open(str,'shop','scrollbars=yes,resizable=yes,status=no,screen.availWidth - 10,screen.availHeight - 10');   w.moveTo(10,10);   w.focus();}function OpenPicture(str) {   w = window.open(str,'picture','scrollbars=yes,resizable=yes,status=yes,width=600,screen.availHeight');   w.moveTo(0,0);   w.focus();}function SelfResize() {   self.moveTo(0,0);   self.resizeTo(screen.availWidth,screen.availHeight);   self.focus();}function GoPage(n,Pn) {   if (Pn.selectedIndex != 0) location.href = n + '-' + Pn.selectedIndex + '.html'   else location.href = 'index.html';}function ricalcolaspese() {	lunghezza = parseInt(document.modulo.lunghezza.value);	lingue=0;	if (document.modulo.l1.checked) lingue = lingue + 1;	if (document.modulo.l2.checked) lingue = lingue + 1;	if (document.modulo.l3.checked) lingue = lingue + 1;	if (document.modulo.l4.checked) lingue = lingue + 1;	if (document.modulo.l5.checked) lingue = lingue + 1;	if (document.modulo.l6.checked) lingue = lingue + 1;	if (document.modulo.l7.checked) lingue = lingue + 1;	totale = lingue * lunghezza / 1000;	t1 = document.modulo.p1.checked;	t2 = document.modulo.p2.checked;	t3 = document.modulo.p3.checked;	if (t3 == true) totale = totale * 12	else if (t2 == true) totale = totale * 10	else totale = totale * 8;	totale = Math.round(totale * 100) / 100;	totalelire = Math.round(totale * 1936.27);	if (isNaN(totale)) document.modulo.totale.value = 'Inserire lunghezza testo'	else document.modulo.totale.value = '€ ' + totale + '  (lire ' + totalelire + ')';}