function nd(){
}
function dcc(){
}
function Apri(pagina,x,y,z)

{

	var str = "height=" + y + ",innerHeight=" + y;

    str += ",width=" + x + ",innerWidth=" + x;

    if (window.screen) {

		var ah = screen.availHeight - 30;

		var aw = screen.availWidth - 10;

	    var xc = (aw - x) / 2;

	    var yc = (ah - y) / 2;

	    str += ",left=" + xc + ",screenX=" + xc;

	    str += ",top=" + yc + ",screenY=" + yc;

	}

	if (arguments.length ==3){

	var scrollb = "no";

	}else{

	var scrollb = "yes";

	}

	window.open(pagina, '', str +",scrollbars="+scrollb);

}

function hideDesc() {

    document.getElementById('desc_layer').style.visibility = "hidden";

  }

 
function stripSlashes(str){
        temp=str;
        strfin="";
        for(i=temp.indexOf("\\");i<temp.length && i>=0;){
                strfin = strfin + temp.substring(0,temp.indexOf('\\'));
                temp = temp.substring(temp.indexOf('\\')+1,temp.length);
                i=temp.indexOf('\\');
        }
        strfin=strfin+temp;
        return strfin;
}
function controllatext(obj,ln,nome) { 
     if (obj.value.length<ln) { 
          alert("Il campo " + nome + " deve essere di almeno " + ln + " caratteri.");  
        obj.focus();  
         return false; 
     }      
     if      (obj.value.indexOf('\'', 0) != -1) { 
          alert("Il campo " + nome + " contiene caratteri non validi.");  
        obj.focus();  
         return false; 
     } 
     return true; 
} 
 
function controllaemail(obj,obja) { 
   var test = obj.value.indexOf('@', 0); 
         if (obj.value.length == 0 ||   
            obj.value.indexOf('@', 0) == -1 ||  
               obj.value.indexOf('.', test) == -1) {  
            alert("Indirizzo email non corretto.");  
            obj.focus();  
            return false;  
          }  
            if (obj.value!=obja.value) { 
                 alert("Indirizzo email non confermato correttamente.");  
            obja.focus();       
               return false; 
            } 
            return true; 
} 
 
function controllapassword(obj,obja) { 
     if (obj.value.length == 0)  { 
        alert("La password non puņ essere vuota.");  
        obj.value=''; 
           obja.value=''; 
        obj.focus();  
        return false; 
     } 
     if (obj.value.indexOf('\'', 0) != -1)  { 
        alert("La password immessa contiene caratteri non validi.");  
        obj.value=''; 
           obja.value='' 
        obj.focus();  
        return false; 
     } 
     if (obj.value!=obja.value) { 
       alert("Le password immesse non coincidono.");  
        obj.value=''; 
           obja.value=''; 
       obj.focus(); 
        return false; 
     }         
     return true; 
}      
 
function controllacombo(obj,nome) { 
     if (obj.value.length==0) { 
          alert("Non č stato selezionato alcun valure nel campo " + nome + ".");  
        obj.focus();  
         return false; 
     } 
     return true; 
}
function conferma(sito)
{
var elimina = confirm("vuoi davvero ELIMINARE questo messaggio")

if (elimina == true) {document.location.href = sito}

}