function SearchIt () {
        if (document.fast.query.value == 0) {
                alert("ERROR: Has olvidado rellenar el campo de búsqueda, que no puede dejarse en blanco");
                return false;
        }
        if (document.fast.query.length < 3) {
                alert("ERROR: La palabra de búsqueda debe tener más de 3 caracteres");
                return false;
        }
	if (document.fast.multimedia.length == null) {
                document.fast.method = "get";
                document.fast.action = "http://buscar2.terra.com/buscar/";
        } else {
                for (var i=0;i<document.fast.multimedia.length;i++) {
	                if (document.fast.multimedia[i].checked) {
	                        if (document.fast.multimedia[i].value == "image") {
	                                document.fast.action = "http://www.terra.com/cgi-bin/fast/legal.pl";
	                                document.fast.catalog.value = "image";
	                                document.fast.cgi.value="mm.pl";
	                        }
	                        if (document.fast.multimedia[i].value == "audio") {
	                                document.fast.action = "http://www.terra.com/cgi-bin/fast/legal.pl";
	                                document.fast.catalog.value = "audio";
	                                document.fast.cgi.value="mm.pl";
	                        }
	                        if (document.fast.multimedia[i].value == "video") {
	                                document.fast.action = "http://www.terra.com/cgi-bin/fast/legal.pl";
	                                document.fast.catalog.value = "video";
	                                document.fast.cgi.value="mm.pl";
	                        }
	                        if (document.fast.multimedia[i].value == "cancion")  {
	                                document.fast.action = "http://www.terra.com/cgi-bin/fast/legal.pl";
	                                document.fast.cgi.value="audio.pl";
	                        }
	                        if (document.fast.multimedia[i].value == "descargas")  {
	                                document.fast.action = "http://www.terra.com/cgi-bin/fast/ftp.pl";
	                        }
	                        if (document.fast.multimedia[i].value == "letra") {
	                                document.fast.action = "http://www.terra.com/cgi-bin/fast/legal.pl";
	                                document.fast.cgi.value = "lyrics.pl";
	                        }
	                        if (document.fast.multimedia[i].value == "multimedia") {
	                                document.fast.action = "http://www.terra.com/cgi-bin/fast/legal.pl";
	                                document.fast.catalog.value = "all";
	                                document.fast.cgi.value="mm.pl";
	                        }
	                        if (document.fast.multimedia[i].value == "internet") {
	                                document.fast.method = "get";
	                                document.fast.action = "http://buscar2.terra.com/buscar/";
	                        }
	                        document.fast.submit();
                        }
                }
	}
}			

document.writeln('<table width=\"138\" border=\"0\" cellspacing=\"1\" cellpadding=\"0\" bgcolor=\"#666666\">');
document.writeln('<tr><td class=\"texto\" bgcolor=\"#000000\">&nbsp;Buscador Multimedia</td></tr>');
document.writeln('</table>');
document.writeln('<img src=\"http://www.terra.com/t.gif\" width=1 height=1 border=0><br>');
document.writeln('<table width=\"138\" border=\"0\" cellspacing=\"1\" cellpadding=\"3\" bgcolor=\"#666666\">');
document.writeln('<form name=\"fast\" method=\"post\" onsubmit=\"return SearchIt();\">');
document.writeln('<input type=\"hidden\" name=\"cgi\">');
document.writeln('<input type=\"hidden\" name=\"catalog\">');
document.writeln('<input type=\"hidden\" name=\"lpv\" value=\"1\">');
document.writeln('<input type=\"hidden\" name=\"loc\" value=\"searchbox\">');
document.writeln('<input type=\"hidden\" name=\"ql\" value=\"spanish\">');
document.writeln('<input type=\"hidden\" name=\"qd\" value=\"\">');
document.writeln('<input type=\"hidden\" name=\"channel\" value=\"ocio\">');
document.writeln('<input type=\"hidden\" name=\"d\" value=\"0\">');
document.writeln('<input type=\"hidden\" name=\"i\" value=\"1\">');
document.writeln('<input type=\"hidden\" name=\"a\" value=\"1\">');
document.writeln('<input type=\"hidden\" name=\"v\" value=\"1\">');
document.writeln('<input type=\"hidden\" name=\"m\" value=\"0\">');
document.writeln('<input type=\"hidden\" name=\"c\" value=\"0\">');
document.writeln('<input type=\"hidden\" name=\"l\" value=\"0\">');
document.writeln('<input type=\"hidden\" name=\"n\" value=\"1\">');
document.writeln('<tr><td background=\"http://www.terra.com/protagonistas/novela2003/img/back_138_general.gif\">');
document.writeln('<table border=\"0\" cellspacing=\"0\" cellpadding=\"0\" align=\"center\">');
document.writeln('<tr><td colspan=\"2\" align=\"center\"><input type=\"text\" name=\"query\" size=\"18\" class=\"forms\"></td></tr>');
document.writeln('<tr><td valign=\"top\"><input type=\"radio\" name=\"multimedia\" value=\"internet\" checked>web</td>');
document.writeln('<td valign=\"top\"><input type=\"radio\" name=\"multimedia\" value=\"image\">image</td></tr>');
document.writeln('<tr><td valign=\"top\"><input type=\"radio\" name=\"multimedia\" value=\"audio\">audio</td></td>');
document.writeln('<td valign=\"top\"><input type=\"radio\" name=\"multimedia\" value=\"video\">video</td></tr>');
document.writeln('<tr><td colspan=\"2\" align=\"center\">');
document.writeln('<img src=\"http://www.terra.com/t.gif\" width=1 height=4 border=0><br>');
document.writeln('<input type=\"image\" src=\"http://www.terra.com/protagonistas/novela2003/img/busca.gif\" width=\"100\" height=\"13\" border=\"0\"><br>');
document.writeln('</td></tr></form></table>');
document.writeln('</td></tr></table>');

