
var user;
var domain;
var suffix;
function jemail(user, domain, suffix){

document.write('<a class="neri" href="' + 'mail' + 'to:' + user + '@' + domain + '.' + suffix + '">info@3gmoto.it</a>');

}

function validacontatti(t) {
    if (t.nome.value == "") {
		alert("Campo nome obbligatorio");
		t.nome.focus();
		return (false);
  	}
  		if (t.telefono.value == ""){
		alert("Numero telefono obbligatorio");
		t.telefono.focus();
		return (false);
  	}
	if (t.email.value == "") {
		alert("Indirizzo email obbligatorio");
		t.email.focus();
		return (false);
  	}
  		
  	if (t.accetta.checked) {
		//return (true);  
	} else {
		alert("Devi accettare la legge sulla privacy");
		return (false);
	}
 	
	return (true);
  }


 function openpiccenter(url,name,x,y)
{
	var sx = screen.width;
	var sy = screen.height;
	var wx = (sx/2) - (x /2);
	var wy = (sy/2) - (y/2) - 50;
	picxywindow = window.open(url,name,"width=640,height=530,menubar=0,resizable=1,scrollbars=1,status=0,titlebar=1,toolbar=0,left=" + wx + ",top=" + wy);
	picxywindow.focus();
}	

