document.cookie = "ScreenSize=" + screen.width + "-" + screen.height
function negativa_val() {{
alert("Attenzione !!!\nStai segnalando una valutazione negativa.\nUna volta rilasciata, non sarà possibile modificarla o cancellarla");}}
function imgchange(str){document.img.src = str}
function apri_c(str) {
        searchWin = window.open(str,'apri','scrollbars=no,resizable=yes,width=440,height=460,status=no,location=no,toolbar=no');}
function foto_ftp(str) {
        searchWin = window.open(str,'foto_ftp','scrollbars=no,resizable=yes,width=450,height=595,status=no,location=no,toolbar=no');}

function banner_ftp(str) {
        searchWin = window.open(str,'banner_ftp','scrollbars=no,resizable=yes,width=520,height=250,status=no,location=no,toolbar=no');}
function apri(str) {
searchWin = window.open(str,'apri','scrollbars=no,resizable=no,width=440,height=25,status=no,location=no,toolbar=no');}
function help(str) {
searchWin = window.open(str,'apri','scrollbars=no,resizable=yes,width=350,height=220,status=no,location=no,toolbar=no');}
function s_pc1() { 
    if (Form_ident.C1.checked==true){
    alert("Questa funzione necessità\nl'abilitazione dei cookie.");}}
function Form_ident_ver(theForm){
  if (theForm.username.value == ""){
    alert("Attenzione !!!\nInserire la username.");
    theForm.username.focus(); return (false);}
  if (theForm.username.value.length < 5) {
    alert("Attenzione !!!\nLa username deve essere almeno 5 caratteri.");
    theForm.username.focus(); return (false);}
  if (theForm.password.value == "") {
     alert("Attenzione !!!\nInserire la password.");
    theForm.password.focus(); return (false);}
  if (theForm.password.value.length < 5) {
    alert("Attenzione !!!\nLa password deve essere almeno 5 caratteri.");
    theForm.password.focus(); return (false);}
return (true); }
function verifica_ricerca(theForm){
  if (theForm.stringa_ric.value == ""){
    alert("Attenzione: inserire il testo da ricercare !!!");
    theForm.stringa_ric.focus();
    return (false);}
 if (theForm.stringa_ric.value == "cerca tra gli oggetti in vendita .........."){
    alert("Attenzione: inserire il testo da ricercare !!!");
    theForm.stringa_ric.focus();
    return (false);}
return (true);}
// verifica form dominio
function ver_Form_dominio(theForm){
  if (theForm.dominio.value == ""){
    alert("Attenzione: inserire il nome del dominio !!!");
    theForm.dominio.focus();
    return (false);}
  if (theForm.dominio.value.length < 5){
    alert("Attenzione: il nome del dominio deve essere lungo almeno 5 caratteri !!!");
    theForm.dominio.focus();
    return (false);}
return (true);}
//fine verifica form dominio
// verifica form negozio
function ver_Form_neg_mod(theForm){
 if (theForm.nome.value == ""){
    alert("Attenzione: inserire il nome del negozio !!!");
    theForm.nome.focus();
    return (false);}
 if (theForm.nome.value.length < 5){
    alert("Attenzione: il nome del negozio deve essere lungo almeno 5 caratteri !!!");
    theForm.nome.focus();
    return (false);} 
// if (theForm.cat1.value == ""){
//    alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//    theForm.cat1.focus();
//    return (false);}
// if (theForm.cat1.value.length < 3 ){
//    alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//    theForm.cat1.focus();
//    return (false);}
// if (theForm.cat2.value == ""){
//    alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//    theForm.cat2.focus();
//    return (false);}
// if (theForm.cat2.value.length < 3 ){
//    alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//    theForm.cat2.focus();
//    return (false);}
// if (theForm.cat3.value == ""){
//    alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//    theForm.cat3.focus();
//    return (false);}
// if (theForm.cat3.value.length < 3 ){
//    alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//    theForm.cat3.focus();
//    return (false);}
// if (theForm.cat4.value == ""){
//    alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//    theForm.cat4.focus();
//    return (false);}
// if (theForm.cat4.value.length < 3 ){
//    alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//    theForm.cat4.focus();
//    return (false);}
// if (theForm.cat5.value == ""){
//    alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//    theForm.cat5.focus();
//    return (false);}
// if (theForm.cat5.value.length < 3 ){
//    alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//    theForm.cat5.focus();
//    return (false);}
// if (theForm.cat6.value == ""){
//    alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//    theForm.cat6.focus();
//    return (false);}
// if (theForm.cat6.value.length < 3 ){
//    alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//    theForm.cat6.focus();
//    return (false);}
//if (theForm.cat7.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat7.focus();
//     return (false);}
//  if (theForm.cat7.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat7.focus();
//     return (false);}
//  if (theForm.cat8.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat8.focus();
//     return (false);}
//  if (theForm.cat8.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat8.focus();
//     return (false);}
//  if (theForm.cat9.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat9.focus();
//     return (false);}
//  if (theForm.cat9.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat9.focus();
//     return (false);}
//  if (theForm.cat10.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat10.focus();
//     return (false);}
//  if (theForm.cat10.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat10.focus();
//     return (false);}
//  if (theForm.cat11.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat11.focus();
//     return (false);}
//  if (theForm.cat11.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat11.focus();
//     return (false);}
//  if (theForm.cat12.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat12.focus();
//     return (false);}
//  if (theForm.cat12.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat12.focus();
//     return (false);}
//  if (theForm.cat13.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat13.focus();
//     return (false);}
//  if (theForm.cat13.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat13.focus();
//     return (false);}
//  if (theForm.cat14.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat14.focus();
//     return (false);}
//  if (theForm.cat14.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat14.focus();
//     return (false);} 
//  if (theForm.cat15.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat15.focus();
//     return (false);}
//  if (theForm.cat15.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat15.focus();
//     return (false);}
//  if (theForm.cat16.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat16.focus();
//     return (false);}
//  if (theForm.cat16.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat16.focus();
//     return (false);}
//  if (theForm.cat17.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat17.focus();
//     return (false);}
//  if (theForm.cat17.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat17.focus();
//     return (false);}
//  if (theForm.cat18.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat18.focus();
//     return (false);}
//  if (theForm.cat18.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat18.focus();
//     return (false);}
//  if (theForm.cat19.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat19.focus();
//     return (false);}
//  if (theForm.cat19.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat19.focus();
//     return (false);}
//  if (theForm.cat20.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat20.focus();
//     return (false);}
//  if (theForm.cat20.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat20.focus();
//     return (false);}
//  if (theForm.cat21.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat21.focus();
//     return (false);}
//  if (theForm.cat21.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat21.focus();
//     return (false);}
//  if (theForm.cat22.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat22.focus();
//     return (false);}
//  if (theForm.cat22.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat22.focus();
//     return (false);}
//  if (theForm.cat23.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat23.focus();
//     return (false);}
//  if (theForm.cat23.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat23.focus();
//     return (false);}
//  if (theForm.cat24.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat24.focus();
//     return (false);}
//  if (theForm.cat24.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat24.focus();
//     return (false);}
//  if (theForm.cat25.value == ""){
//     alert("Attenzione: inserire il nome della categoria degli oggetti del Negozio !!!");
//     theForm.cat25.focus();
//     return (false);}
//  if (theForm.cat25.value.length < 3 ){
//     alert("Attenzione: la categoria degli oggetti del Negozio deve essere almeno 3 caratteri !!!");
//     theForm.cat25.focus();
//     return (false);}
  if (theForm.descrizione.value == ""){
     alert("Attenzione: inserire la descrizione del Negozio !!!");
     theForm.descrizione.focus();
     return (false);}
  if (theForm.descrizione.value.length < 30){
     alert("Attenzione: la descrizione del Negozio deve essere almeno 30 caratteri !!!");
     theForm.descrizione.focus();
     return (false);}
  if (theForm.descrizione.value.length > 150){
     alert("Attenzione: la descrizione del Negozio non può contenere più di 150 caratteri !!!");
     theForm.descrizione.focus();
     return (false);}
  if (theForm.parole.value == ""){
     alert("Attenzione: inserire le parole chiavi del Negozio !!!");
     theForm.parole.focus();
     return (false);}
  if (theForm.parole.value.length < 30){
     alert("Attenzione: le parole chiavi del Negozio devono essere almeno 30 caratteri !!!");
     theForm.parole.focus();
     return (false);}
  if (theForm.parole.value.length > 150){
     alert("Attenzione: le parole chiavi del Negozio non possono contenere più di 150 caratteri !!!");
     theForm.parole.focus();
     return (false);}
return (true);}
//fine verifica form dominio
// verifico quello che viene inserito nei compi numerici
function checkCurrency(e) { 
  var ev=e?e:event; // Gecko riceve l'evento come parametro in e 
                // IE valorizza l'obj event 
  var key=ev.charCode?ev.charCode:ev.keyCode; // IE non ha charCode 
  if ( ((key > 47)&&(key < 58))||(key == 8)||(key == 9)){ 
        // ok sono numeri (>='0' e <='9'), backspace o tab 
  } else { 
        // eviti che l'evento venga "gestito" 
        if(ev.preventDefault){ 
                e.preventDefault(); // Gecko usa preventDefault 
        } else if('returnValue' in ev ) { 
                ev.returnValue=false; // IE usa returnValue 
        }}} 
// fine
function Sms1_Validator(theForm){
if (theForm.PREFISSO.selectedIndex < 1) {
    alert("Attenzione !! Selezionare un prefisso.");
    theForm.PREFISSO.focus();
    return (false);}
if (theForm.numero.value.length < 6){
    alert("Attenzione !! Il numero deve essere lungo almeno 6 cifre.");
    theForm.numero.focus();
    return (false);}
return (true);}
function SmS_M3_Validator(theForm){
if (theForm.PIN.value.length < 10){
    alert("Attenzione !! Il PIN deve essere lungo almeno 10 cifre.");
    theForm.PIN.focus();
    return (false);}
return (true);}
// modulo sms inizio
function checkSmsCurrency(e) { 
  var ev=e?e:event; // Gecko riceve l'evento come parametro in e 
                // IE valorizza l'obj event 
  var key=ev.charCode?ev.charCode:ev.keyCode; // IE non ha charCode 
  if ( ((key > 47)&&(key < 58))||(key == 8)||(key == 9)||(key == 43)){ 
        // ok sono numeri (>='0' e <='9'), backspace o tab 
  } else { 
        // eviti che l'evento venga "gestito" 
        if(ev.preventDefault){ 
                e.preventDefault(); // Gecko usa preventDefault 
        } else if('returnValue' in ev ) { 
                ev.returnValue=false; // IE usa returnValue 
        }}} 
// fine
// modulo funzione che permette l'inserimento solo di numeri (47,58), caratteri piccoli(96,123)ti(46)
function checkDominio(e) { 
  var ev=e?e:event; // Gecko riceve l'evento come parametro in e 
                // IE valorizza l'obj event 
  var key=ev.charCode?ev.charCode:ev.keyCode; // IE non ha charCode 
  if ( ((key > 47)&&(key < 58))||((key > 96)&&(key < 123))||(key == 8)||(key == 9)){ 
        // ok sono numeri (>='0' e <='9'), backspace o tab 
  } else { 
        // eviti che l'evento venga "gestito" 
        if(ev.preventDefault){ 
                e.preventDefault(); // Gecko usa preventDefault 
        } else if('returnValue' in ev ) { 
                ev.returnValue=false; // IE usa returnValue 
        }}} 
// fine
function contaCar(f,l1) {
var msgLen;
var MaxLength;
MaxLength = 160;
msgLen=document.Componi.testo.value.length;
if (msgLen >= MaxLength ){
document.Componi.conta.value= "0";
window.alert("Il messaggio può contenere massimo " + MaxLength + " caratteri.");
document.Componi.testo.value=document.Componi.testo.value.substring(0,MaxLength);
}else{
document.Componi.conta.value = MaxLength - msgLen;}}
function pop(url){
window.open(url,"finestra");}
function changephone(s){
var pref = s.options[s.selectedIndex].value;
document.Componi.numero.value= pref;}
function appendMittente(s){
var pref = document.Componi.specifica.value;
document.Componi.mittente.value= pref;}
function appendNumber(s) {
var num = document.Componi.numero.value;
// Controlla valore campo
var firstChar = num.substring(0,1);
if (firstChar != '+') {
window.alert("Il formato del numero telefonico non è valido");
document.Componi.numero.value = "";
document.Componi.PREFISSO.selectedIndex = 0;
return;}
var realNumber = num.substring(1, num.length);
var result = isNaN(realNumber);
if (result == true) {
window.alert("Hai utilizzato dei caratteri non ammessi nel campo Numero. Controlla i numeri dei destinatari.");
document.Componi.numero.value = "";
document.Componi.PREFISSO.selectedIndex = 0;
return ;}
var list = document.Componi.lista.value;
if (list == "") {
list = num;}
else {
var pos = list.indexOf(num);
if (pos != -1) {
window.alert("Il numero è già presente nella lista dei destinatari");
document.Componi.numero.value = "";
document.Componi.PREFISSO.selectedIndex = 0;
return ;}
list = list + "\n" + num;}
document.Componi.lista.value = list;
document.Componi.numero.value = "";
document.Componi.PREFISSO.selectedIndex = 0;}
function appendPrefNumber(s) {
var num = s.options[s.selectedIndex].value;
// Controlla valore campo
var firstChar = num.substring(0,1);
if (firstChar != '+') {
window.alert("Il formato del numero telefonico non è valido");
document.Componi.select.selectedIndex = 0;
return;}
var realNumber = num.substring(1, num.length);
var result = isNaN(realNumber);
if (result == true) {
window.alert("Hai utilizzato dei caratteri non ammessi nel campo Numero. Controlla i numeri dei destinatari.");
document.Componi.select.selectedIndex = 0;
return ;}
var list = document.Componi.lista.value;
if (list == "") {
list = num;}
else {
var pos = list.indexOf(num);
if (pos != -1) {
window.alert("Il numero è già presente nella lista dei destinatari");
document.Componi.numero.value = "";
document.Componi.PREFISSO.selectedIndex = 0;
return ;}
list = list + "\n" + num;}
document.Componi.lista.value = list;
document.Componi.select.selectedIndex = 0;}
function appendRubrica(s) {
var num = document.Componi.rubrica.value;
// Controlla valore campo
var firstChar = num.substring(0,1);
if (firstChar != '+') {
window.alert("Il formato del numero telefonico non è valido");
return;}
var realNumber = num.substring(1, num.length);
var result = isNaN(realNumber);
if (result == true) {
window.alert("Hai utilizzato dei caratteri non ammessi nel campo Numero. Controlla i numeri dei destinatari.");
return ;}
var list = document.Componi.lista.value;
if (list == "") {
list = num;}
else {
var pos = list.indexOf(num);
if (pos != -1) {
window.alert("Il numero è già presente nella lista dei destinatari");
return ;}
list = list + "\n" + num;}
document.Componi.lista.value = list;}
function appendPrefNumber(s) {
var num = s.options[s.selectedIndex].value;
// Controlla valore campo
var firstChar = num.substring(0,1);
if (firstChar != '+') {
window.alert("Il formato del numero telefonico non è valido");
document.Componi.select.selectedIndex = 0;
return;}
var realNumber = num.substring(1, num.length);
var result = isNaN(realNumber);
if (result == true) {
window.alert("Hai utilizzato dei caratteri non ammessi nel campo Numero. Controlla i numeri dei destinatari.");
document.Componi.select.selectedIndex = 0;
return ;}
var list = document.Componi.lista.value;
if (list == "") {
list = num;}
else {
var pos = list.indexOf(num);
if (pos != -1) {
window.alert("Il numero è già presente nella lista dei destinatari");
document.Componi.numero.value = "";
document.Componi.PREFISSO.selectedIndex = 0;
return ;}
list = list + "\n" + num;}
document.Componi.lista.value = list;}
function elimina(d) {
var field = document.all.lista;
if (document.getSelection) {
var str = document.getSelection();
} else if (document.selection && document.selection.createRange) {
var range = document.selection.createRange();
var str = range.text;
} else {
window.alert("Il tuo browser non supporta tale operazione")
return;}
if (str == '')
return ;
var textValue = field.value;
var posSpace = str.indexOf(' ');
var posNewLine = str.indexOf('\n');
if (str.indexOf('+') == -1) {
window.alert('Il numero non è selezionato correttamente');
return ;}
if (posSpace != -1 || posNewLine != -1) {
window.alert('Seleziona un numero alla volta per favore.');
return;}
var sPos = textValue.indexOf(str);
var ePos = sPos + str.length;
if (ePos != textValue.length && textValue != str) {
if (textValue.charAt(ePos+1) != '\n') {
window.alert('Il numero non è selezionato correttamente');
return ;}}
if (ePos >= textValue.length) {
var newValue = textValue.substring(0, sPos - 2);}
else {
var newValue = textValue.substring(0, sPos) + textValue.substring(ePos + 2, textValue.length);}
field.value = newValue;}
function verifica() {
if (document.Componi.lista.value == "") {
   window.alert("E' necessario selezionare almeno un destinatario ed inserirlo nella \"Lista Destinatari\"");
   return(false);}
if (document.Componi.testo.value == "") {
   window.alert("E' necessario compilare il campo TESTO");
   return(false);}
if (document.Componi.mittente.value == "") {
   window.alert("E' necessario compilare il campo MITTENTE");
   return(false);}
return (true);}
// fine modulo sms
// verifico quello che viene inserito nei compi numerici
function solonumeri(e) { 
  var ev=e?e:event; // Gecko riceve l'evento come parametro in e 
                // IE valorizza l'obj event 
  var key=ev.charCode?ev.charCode:ev.keyCode; // IE non ha charCode 
  if ( ((key > 47)&&(key < 58))||(key == 8)||(key == 9)){ 
        // ok sono numeri (>='0' e <='9'), backspace o tab 
  } else { 
        // eviti che l'evento venga "gestito" 
        if(ev.preventDefault){ 
                e.preventDefault(); // Gecko usa preventDefault 
        } else if('returnValue' in ev ) { 
                ev.returnValue=false; // IE usa returnValue 
        }}} 
// fine
// verifico quello che viene inserito nei compi numerici e virgola
function numerivirgola(e) { 
  var ev=e?e:event; // Gecko riceve l'evento come parametro in e 
                // IE valorizza l'obj event 
  var key=ev.charCode?ev.charCode:ev.keyCode; // IE non ha charCode 
  if ( ((key > 47)&&(key < 58))||(key == 44)||(key == 8)||(key == 9)){ 
        // ok sono numeri (>='0' e <='9'), backspace o tab o , 
  } else { 
        // eviti che l'evento venga "gestito" 
        if(ev.preventDefault){ 
                e.preventDefault(); // Gecko usa preventDefault 
        } else if('returnValue' in ev ) { 
                ev.returnValue=false; // IE usa returnValue 
        }}} 
// fine
// verifico modulo inserimento commento
function verifica_commento(theForm){
  if (theForm.smstesto.value == "")
  {alert("Attenzione: inserire il commento !!!");
    theForm.smstesto.focus();
    return (false);}
  if (theForm.smstesto.value.length < 5)
  {alert("Attenzione: inserire un commento lungo almeno 5 caratteri !!!");
    theForm.smstesto.focus();
    return (false);}
  if (theForm.smstesto.value.length > 80)
  {alert("Attenzione: il commento supera gli 80 caratteri !!!");
    theForm.smstesto.focus();
    return (false);}
  var radioSelected = false;
  for (i = 0;  i < theForm.R1.length;  i++)
  {if (theForm.R1[i].checked)
        radioSelected = true;}
  if (!radioSelected){
    alert("Attenzione: si deve esprimere il tipo di valutazione.");
    return (false);}
  return (true);}
// fine
// funzione verifica modulo modifica inserzione
function verifica_mod_ins(theForm){
  if (theForm.titolo.value == ""){
    alert("Attenzione: inserire il titolo dell'oggetto !!!");
    theForm.titolo.focus();
    return (false);}
  if (theForm.titolo.value.length < 5){
    alert("Attenzione: il titolo dell'oggetto deve essere almeno 5 caratteri !!!");
    theForm.titolo.focus();
    return (false);}
  if (theForm.DESCRIZIONE.value == ""){
    alert("Attenzione: inserire la descrizione dell'oggetto !!!");
    theForm.DESCRIZIONE.focus();
    return (false);}
  if (theForm.DESCRIZIONE.value.length < 5){
    alert("Attenzione: la descrizione dell'oggetto deve essere almeno 5 caratteri !!!");
    theForm.DESCRIZIONE.focus();
    return (false);}
return (true);}
// fine
// conta caratteri titolo inserzione in modifica inserzione
function s_titolo()  {
	var conta=60-document.crea_inserzione.titolo.value.length ;
	document.crea_inserzione.n_titolo.value=conta+" caratteri disponibili";
	if (conta < 0)  {
	    	crea_inserzione.titolo.value = crea_inserzione.titolo.value.substr(0, 60);
	document.crea_inserzione.n_titolo.value=0;}}
// fine	
