window.status = 'MotoGreen';

function PopUpScheda(paginarichiesta)
{

	alert('UNDER CONSTRUCTION - Questa Pagina non è ancora disponibile!');

	/*
	var winLocation, winName, winParam, winObj;
	var winPos, winPosTop, winPosLeft, winWidth, winHeight;
	
	winWidth = 700;
	winHeight = 580;
	
	winPosTop = (screen.height / 2) - winHeight / 2;
	winPosLeft = (screen.width / 2) - winWidth / 2;
	winPos = ',top=' + winPosTop + ',left=' + winPosLeft;
	
	winLocation = paginarichiesta;
	winName = 'SchedaFornitore';

	winParam = 'status=0,toolbars=0,menubar=0,history=0,resizable=1,width=' + winWidth + ',height=' + winHeight + winPos;
	winObj = window.open(winLocation, winName, winParam);
	winObj.focus();
	*/
}

function ControllaDati()
{
var i=null
var lung=null;
var stringa=null;
Filtro = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-]{2,})+\.)+([a-zA-Z0-9]{2,})+$/;


   stringa=document.SuperForm.modello.value
   if (stringa=='0')
	      { 
		alert("Seleziona il Modello da Ordinare!");
		document.SuperForm.modello.focus();
		return false; 
              }

   stringa=document.SuperForm.ragsociale.value
   lung=stringa.length;
   if (lung<=0)
	      { 
		alert("Il campo NOME/RAGIONE SOCIALE è obbligatorio!");
		document.SuperForm.ragsociale.focus();
		return false; 
              }

   stringa=document.SuperForm.indirizzo.value
   lung=stringa.length;
   if (lung<=0)
	      { 
		alert("Il campo INDIRIZZO è obbligatorio!");
		document.SuperForm.indirizzo.focus();
		return false; 
              }
  
   stringa=document.SuperForm.citta.value
   lung=stringa.length;
   if (lung<=0)
	      { 
		alert("Il campo CITTA è obbligatorio!");
		document.SuperForm.citta.focus();
		return false; 
              }

   stringa=document.SuperForm.telefono.value
   lung=stringa.length;
   if (lung<=0)
	      { 
		alert("Il campo TELEFONO è obbligatorio!");
		document.SuperForm.telefono.focus();
		return false; 
              }

   EmailAddr = document.SuperForm.mail.value;
   if (Filtro.test(EmailAddr))
      {  }
   else
      {
      alert("Controlla l'indirizzo E-MAIL inserito!");
      document.SuperForm.mail.focus();
      return false;
      }

  return true;

}

