<!-- nascondi lo script ai browser obsoleti
function trim(stringa) {
	while (stringa.charAt(0) == " ") {
			stringa = stringa.substring (1,stringa.length)
		}
	while (stringa.charAt(stringa.length-1) == " ") {
			stringa = stringa.substring (0,(stringa.length-1))
	}
	return stringa
}
function nomedominio(nomedom) {
		nomedom = trim(nomedom)
		inizio = nomedom.substring (0,4)
		if (inizio == "www.") {
			nomedom = nomedom.substring (4)
		}
		pospunto = nomedom.indexOf(".",0)
		if (pospunto == -1) {
			alert("Verificare di aver\ninserito una estensione\nper il dominio")
			return false
		}
		if (((pospunto > -1) && (pospunto < 3)) || (nomedom.length < 3)) {
			alert("Attenzione! \nIl nome del dominio deve avere \nalmeno 3 caratteri.")
			return false
		}
		if (pospunto > -1) {
			nomedom = nomedom.substr (0,pospunto)
		}
		for (i=0; i < nomedom.length; i++) {
			carattere = nomedom.charCodeAt(i)
			if  ( (carattere < 48) && (carattere != 45) || (carattere > 57) && (carattere < 65) || (carattere > 90) && (carattere < 97) || (carattere > 122) ) {
				if (carattere == 32) {
					alert("Il nome del dominio non puņ contenere spazi")
				} else {
					alert("il carattere " + nomedom.charAt(i) + " non e' ammesso per un nome di dominio")
				}
				return false 
			}
		}
		if (nomedom.charAt(0) == "-") {
			alert("Il carattere - non puo' essere all'inizio del nome")
			return false
		}
		ultimo = nomedom.length -1
		if (nomedom.charAt(ultimo) == "-") {
			alert("Il carattere - non puo' essere alla fine del nome")
			return false
		}
		return true
} 
function controllodom(gino) {
	if (gino.home){
		peppino=gino.dominio.value+"."
		
	}
	
	
	if (!nomedominio(peppino)) {
		
		gino.dominio.focus()
		gino.dominio.select()
		return false
	}
	nomedom = gino.dominio.value
	nomedom = trim(nomedom)
	inizio = nomedom.substr (0,4)
		if (inizio == "www.") {
			nomedom = nomedom.substr (4)
		}
	gino.dominio.value = nomedom	
	return true
}

function controllodom2(gino) {
	if (!nomedominio(gino.DomainName.value)) {
		
		gino.DomainName.focus()
		gino.DomainName.select()
		return false
	}
	nomedom = gino.DomainName.value
	nomedom = trim(nomedom)
	inizio = nomedom.substr (0,4)
		if (inizio == "www.") {
			nomedom = nomedom.substr (4)
		}
	gino.DomainName.value = nomedom	
	return true
}

function controlloform (giuseppe) {
	if (!controllodom2(giuseppe)) { return false }
	if ((giuseppe.accettatransf.value != "accettato")) {
		disclaimer(giuseppe)
		return false
	}
	return true
}
//easycontact
