function obtenerExpReg( e ) {
	var ExpRegCSS = /[\%\=\*<>\\]/ig
	var ExpRegAceptaSoloNumeros = /[^a-z\s\b\0áéíóúäëïöüñ']/ig
	var ExpRegNoAceptaLetras = /[^0-9\b\0]/i
	var ExpRegDV = /[^k0-9\b\0]/i
	el = fnG.obtenerTarget( e );
	if ( el.id == "fono"  ) {
		return ExpRegAceptaSoloNumeros;
	} else {
		return ExpRegCSS;
	}
}

function check_form() {
	
	if ( document.paso1.es != undefined ) {
		
		if ( document.paso1.nombre.value == "" ) {
			alert( "Debe ingresar nombre." );
			document.paso1.nombre.focus();
			return false;
		}
		
		if ( document.paso1.email.value == "" ) {
			alert( "Debe Ingresar E-Mail" );
			document.paso1.email.focus();
			return false;
		}
		
		if ( document.paso1.email != "" ) {
			pat=/^[\w\_\.çñ]{2,255}@[\w]{2,255}\.[a-z]{1,3}\.?[a-z]{0,3}$/
			regExp = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
			if ( !regExp.test( document.paso1.email.value ) ) {
				alert( "Debe ingresar un E-mail válido " );
				document.paso1.email.focus();
				return false;
			}
		}
		
		if ( document.paso1.comentarios.value == "" ) {
			alert( "Debe ingresar Comentario" );
			document.paso1.comentarios.focus();
			return false;
		}
	}else{
		
		if ( document.paso1.nombre.value == "" ) {
			alert( "Please type a name." );
			document.paso1.nombre.focus();
			return false;
		}
		
		if ( document.paso1.email.value == "" ) {
			alert( "Please type an email." );
			document.paso1.email.focus();
			return false;
		}
		
		if ( document.paso1.email != "" ) {
			pat=/^[\w\_\.çñ]{2,255}@[\w]{2,255}\.[a-z]{1,3}\.?[a-z]{0,3}$/
			regExp = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
			if ( !regExp.test( document.paso1.email.value ) ) {
				alert( "Please use a Valid Email Address." );
				document.paso1.email.focus();
				return false;
			}
		}
		
		if ( document.paso1.comentarios.value == "" ) {
			alert( "Please type your comments." );
			document.paso1.comentarios.focus();
			return false;
		}
		
	}
			
	return true;
}