<!--

function apri(url, w, h) {
	var windowprops = "width=" + w + ",height=" + h;
	popup = window.open(url,'remote',windowprops);
}


function checkform(form) {
	if (form.azienda.value == "") {
		alert( "Campo azienda mancante" );
		form.azienda.focus();
		return false ;
	}
	if (form.attivita.value == "") {
		alert( "Campo attivita mancante" );
		form.attivita.focus();
		return false ;
	}
	if (form.indirizzo.value == "") {
		alert( "Campo indirizzo mancante" );
		form.indirizzo.focus();
		return false ;
	}
	if (form.cap.value == "") {
		alert( "Campo CAP mancante" );
		form.cap.focus();
		return false ;
	}
	if (form.comune.value == "") {
		alert( "Campo comune mancante" );
		form.comune.focus();
		return false ;
	}
	if (form.provincia.value == "") {
		alert( "Campo provincia mancante" );
		form.provincia.focus();
		return false ;
	}
	if (form.telefono_az.value == "") {
		alert( "Campo telefono azienda mancante" );
		form.telefono_az.focus();
		return false ;
	}
	if (form.nome.value == "") {
		alert( "Campo nome mancante" );
		form.nome.focus();
		return false ;
	}
	if (form.cognome.value == "") {
		alert( "Campo cognome mancante" );
		form.cognome.focus();
		return false ;
	}
	if (form.ruolo.value == "") {
		alert( "Campo ruolo mancante" );
		form.ruolo.focus();
		return false ;
	}
	if (form.telefono_pers.value == "") {
		alert( "Campo telefono utente mancante" );
		form.telefono_pers.focus();
		return false ;
	}
	if (form.email.value == "") {
		alert( "Campo e-mail mancante" );
		form.email.focus();
		return false ;
	}
	if (form.username.value == "") {
		alert( "Campo username mancante" );
		form.username.focus();
		return false ;
	}
	if (form.pass.value == "") {
		alert( "Campo password mancante" );
		form.azienda.focus();
		return false ;
	}
	if (form.pass.value != form.pass_verifica.value) {
		alert( "Password non uguali" );
		form.pass.focus();
		return false ;
	}
	return true ;
}


function checkform_questionario(form) {
//	alert('Il tipo passato è: ' + form);
	var found_it = false;
//	alert('Diretto: ' + form.numeri_consultati.length );
	for(i=0; i<form.numeri_consultati.length; i++ ) {	if (form.numeri_consultati[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo numeri consultati mancante - (Domanda 1)" );
//		form.numeri_consultati.focus();
		return false ;
	}
	found_it = false;
	for(i=0; i<form.come_consulta_infotec.length; i++ ) {	if (form.come_consulta_infotec[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sul come consulta InfoTec mancante - (Domanda 2)" );
//		form.come_consulta_infotec.focus();
		return false ;
	}
	found_it = false;
	for(i=0; i<form.interesse.length; i++ ) {	if (form.interesse[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sull'interesse mancante - (Domanda 3)" );
//		form.interesse.focus();
		return false ;
	}
	found_it = false;
	for(i=0; i<form.sezione_preferita.length; i++ ) {	if (form.sezione_preferita[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sulla sezione prefetita mancante - (Domanda 4)" );
//		form.sezione_preferita.focus();
		return false ;
	}
	found_it = false;
	for(i=0; i<form.quanto_utili_notizie.length; i++ ) {	if (form.quanto_utili_notizie[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sull'utilita' delle notizie mancante - (Domanda 5)" );
//		form.quanto_utili_notizie.focus();
		return false ;
	}
	found_it = false;
	for(i=0; i<form.sezione_piu_utile.length; i++ ) {	if (form.sezione_piu_utile[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sulla sezione piu' utile mancante - (Domanda 6)" );
//		form.sezione_piu_utile.focus();
		return false ;
	}
	found_it = false;
	for(i=0; i<form.linguaggio.length; i++ ) {	if (form.linguaggio[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sul linguaggio mancante - (Domanda 7)" );
//		form.linguaggio.focus();
		return false ;
	}
	found_it = false;
	for(i=0; i<form.notizie_diversi_settori.length; i++ ) {	if (form.notizie_diversi_settori[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sulla diversita' dei settori mancante - (Domanda 8)" );
//		form.notizie_diversi_settori.focus();
		return false ;
	}
	found_it = false;
	if ( (form.notizie_diversi_settori[1].checked) && (form.focalizzarsi_nel_settore.value == "") ) {
		alert( "Si e' specificato di concentrarsi maggiormente su un settore, ma non si e' suggerito quale - (Domanda 8)" );
//		form.focalizzarsi_nel_settore.focus();
		return false ;
	}
/*	if (form.argomenti_interesse.value == "") {
		alert( "Campo sugli argomenti di interesse mancante" );
		form.argomenti_interesse.focus();
		return false ;
	}
*/
	found_it = false;
	for(i=0; i<form.interesse_essere_coinvolto.length; i++ ) {	if (form.interesse_essere_coinvolto[i].checked)  {		found_it = true;	}	}
	if (! found_it) {
		alert( "Campo sull'interesse ad essere coinvolto mancante - (Domanda 10)" );
//		form.interesse_essere_coinvolto.focus();
		return false ;
	}
	found_it = false;
	if ( (form.interesse_essere_coinvolto[4].checked) && (form.interesse_coinvolto_altro.value == "") ) {
		alert( "Si e' espressa la disponibilita' ad essere coinvolti, ma non si e' esplicitata in quale modalita' - (Domanda 10)" );
//		form.interesse_coinvolto_altro.focus();
		return false ;
	}

}

//-->
