function eLogin(formulario)
{
	var cont = 0;
	var eForm = new Array();
	eForm[0] = "tipo_usuario,select";
	eForm[1] = "user_name,text";
	//eForm[2] = "pwd,text";
	var arrText;
	//var totalFields = 3;
	var totalFields = 2;
	for(i=0; i < totalFields; i++)
	{
		arrText = eForm[i].split(',');
		switch(arrText[1])
		{
			case 'text':
				if(formulario.elements[arrText[0]].value != '')
					cont++;
				break;
			case 'select':
				if(formulario.elements[arrText[0]].value != '-1')
					cont++;
				break;
		}
	}
	if(cont == totalFields)
		return true;
	else
	{
		alert('Debe ingresar todos los datos solicitados.-');
		return false;	
	}
	
}
function eLoginPostulacion(formulario)
{
	var cont = 0;
	var eForm = new Array();
	eForm[0] = "codigo,select";
	eForm[1] = "clave,text";
	var arrText;
	var totalFields = 2;
	for(i=0; i < totalFields; i++)
	{
		arrText = eForm[i].split(',');
		switch(arrText[1])
		{
			case 'text':
				if(formulario.elements[arrText[0]].value != '')
					cont++;
				break;
			case 'select':
				if(formulario.elements[arrText[0]].value != '-1')
					cont++;
				break;
		}
	}
	if(cont == totalFields)
		return true;
	else
	{
		alert('Debe ingresar todos los datos solicitados.-');
		return false;	
	}
	
}
