function VerificaDatos(aDatosSw)	{
	long = aDatosSw.length;
	for(i=0; i<long; i++)
	{
		if (aDatosSw[i].value == "")
			{
				alert("Falta el dato de "+aDatosSw[i].name);
				return false;
			}
	}
	return true;
}


function ValidaEnteros(folio)	{
	valor=parseInt(folio);
	if (isNaN(valor))
		{
			alert(" EL Folio debe ser Numerico");
			return false;				
		}
	else
		return true;
}

function compara(elemento)	{
	if( elemento.value != elemento.defaultValue)	{
		elemento.style.backgroundColor='#ffdddd';	}
	else	{
		elemento.style.backgroundColor='#ffffff';
	}
}

function verificaPrecio(precio)	{
	valor=parseFloat(precio);
	if (isNaN(valor))
		{
			alert(" EL Precio debe ser Numerico");
			return false;				
		}
	else
		return valor;
}
