
function richiestaprezzo(){
	window.open('','richiestaprezzo','width=410,height=300,left=200,top=100');
	document.getElementById('richiestaprezzo').submit();
}



function consigliaamico(){
	window.open('','consigliaamico','width=410,height=300,left=200,top=100');
	document.getElementById('consigliaamico').submit();
}


function acquistoprodotto(){
	window.open('','acquistoprodotto','width=410,height=360,left=200,top=100');
	document.getElementById('acquistoprodotto').submit();
}


function checkEmailAddress2(field) 
{  
  
  var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
 
 if (goodEmail)
  {
    var good = true;
  } 
  else 
  {
    alert('Indirizzo email proprio non corretto.');
    field.focus();
    var good = false;
  }
  return good;
}


function checkEmailAddress3(field) 
{  
  
  var goodEmail = field.value.match(/\b(^(\S+@).+((\.com)|(\.net)|(\.edu)|(\.mil)|(\.gov)|(\.org)|(\..{2,2}))$)\b/gi);
 
 if (goodEmail)
  {
    var good = true;
  } 
  else 
  {
    alert('Indirizzo email amico non corretto.');
    field.focus();
    var good = false;
  }
  return good;
}






function validateFields(frm) {
	var bSubmit = true;
	var reEmail = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;
	if (frm.emailmittente.value == '' || !reEmail.test(frm.emailmittente.value)) {
		alert("Inserisci perfavore una e-mail valida.");
		frm.emailmittente.focus();
		bSubmit = false;
	} else if (frm.nomemittente.value == '') {
		alert("Inserisci il tuo nome.");
		frm.nomemittente.focus();
		bSubmit = false;
	} 
	return bSubmit;
}




function sendme() 
{ 
fin = window.open("","newfinestra","width=350,height=260,scrollbars=no,menubar=no,resizable=no,status=no,toolbar=no,left=60,top=50")
}

