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=buscar onsubmit="return comprobarTexto(this)" action=buscar.asp method=post>');
document.write('<INPUT type=hidden name=destino value="' + miUrl + '">');
document.write('<DIV>');

document.write('<table width="161" border="2" cellpadding="0"  cellspacing="0" bgcolor="#E9E7E8">');
document.write('  <tr>');
document.write('    <td>');
document.write('	<table  width="161" border="0" cellpadding="0" cellspacing="0">');
document.write('      <tr bgcolor="#8F8F8F">');
document.write('        <td  width="161"><img src="_imagen/busqueda.jpg" width="161" height="23" BORDER="0"></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=search maxLength=255 mio size=16 name=quickfind>');*/
document.write('      						<INPUT class=buscar maxLength="255" size=16 name="textfield" type="text">');
document.write('    					</div>');
document.write('					</td>');
/*document.write('			       <TD class=search><INPUT type=image width=19 height=16 alt=Buscar src="_imagen/busqueda_flecha.jpg" border=0></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 -->');

}
