function check(form) {

	for (i=0; i<form.elements.length-1; i++ ) { /* -1=ignora ultimo */

  if ( form.elements[i].value=="" ) {

		alert(	"\nfill the field #"+(i+1)+

			" ("+form.elements[i].name+")");

		document.form.elements[i].focus();

		return false;

	  }

	}

	

	//validar telefono

	/*var er_telefono = /^([0-9\+\-])+$/

	//comprueba campos de telefonos (permite campos vacios y guiones)

   if( !er_telefono.test(form.Phone.value) ) {

      alert('Content of the field  PHONE invalid.')

	  document.form.Phone.focus();

      return false

   }*/

	

	// Valida e-mail

	var email=form.Email.value;

	if ( /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(email)==false ) {

		window.alert("ˇ E r r o r !\n\ne- Invalid mail: "+email);

		document.form.Email.focus();

		return false;

		

	}

	

	

	var version=parseInt(navigator.appVersion.substr(0,1));

	if ( window.RegExp==null || version<4 ) {

		window.alert("Tu navegador no soporta JavaScript1.2\n"+

			"Utiliza IE/Netscape 4.0 o más reciente");

		return false;

	}

	 

	

//	window.alert("OK!!\n\nDatos Correctos!!");

	//return 1;

   }