function comprobarTexto(miFormulario) {												   
   if (miFormulario.textfield.value == "") {
		alert("¡Introduzca la palabra o frase a buscar!");
		miFormulario.textfield.focus();	
        return false;
   }
   else {
   	miFormulario.submit(); 
	return true;  
   }
}

function mostrarBuscador(miUrl)
{
document.write('<!-- Inicio del Formulario de Búsqueda -->');
document.write('<FORM name=buscador onsubmit="return comprobarTexto(this)" action=../../buscar.asp method=post>');
document.write('<INPUT type=hidden name=destino value="' + miUrl + '">');
document.write('<DIV align="left">');

document.write('<table width="161" border="2" cellpadding="0"  cellspacing="0" bgcolor="#E9E7E8">');
document.write('  <tr>');
document.write('    <td>');
document.write('	<table border="0" cellpadding="0" cellspacing="0">');
document.write('      <tr>');
document.write('        <td><img src="../../_imagen/busqueda.jpg" width="161" height="23"></td>');
document.write('      </tr>');
document.write('      <tr height="10">');
document.write('        <td></td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td>');
document.write('			<table width="161" border="0">');
document.write('  				<tr>');
document.write('    				<td width="132">');
document.write('						<div align="right">');
document.write('      						<input class=buscar maxLength="255" size=16 name="textfield" type="text">');
document.write('    					</div>');
document.write('					</td>');
document.write('			       <td width="19"><INPUT type="image"img src="../../_imagen/busqueda_flecha.jpg" width="19" height="16" border="0" alt="Buscar"></td>');
document.write('		  		</tr>');
document.write('			</table>');
document.write('		</td>');
document.write('      </tr>');
document.write('      <tr>');
document.write('        <td>&nbsp;</td>');
document.write('      </tr>');
document.write('    </table>');
document.write('	</td>');
document.write('  </tr>');
document.write('</table>');

document.write('</DIV>');
document.write('</FORM>');
document.write('<!-- Final del Formulario de Búsqueda -->');

}
