<!--

function onError( inputObject, errorMessage )
{
	alert(errorMessage);
	inputObject.focus();
	inputObject.select();
	
}

function checkMinSize ( objectValue, minSize )

{ if ( objectValue.length < minSize )
		return false;
	else
		return true;
}


function Busqueda_Validator(theForm)
{

	
if ((theForm.autor[theForm.autor.selectedIndex].value == 0) && (!checkMinSize(theForm.criterio.value, 3 )))
  {
   onError(theForm.criterio,"POR FAVOR, INGRESA MAS DE DOS CARACTERES PARA BUSCAR");
	return false;
      } 

return (true);
}



//-->
