document.write('<html>');
document.write('<meta http-equiv="Content-Language" content="pt-br">');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">');
document.write('<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">');
document.write('<link href="http://www.mbooks.com.br/js/MBOOKS.css" rel="stylesheet" type="text/css">');
//document.write('<script language="JavaScript" src="https://favaretto2.securesites.net/cgi-bin/e-commerce/head_shopcart.cgi?lvcfg=mbooks"></script>');
document.write('<script language="javascript">');
var clickedButton = false;
function sub1func(theform) {
if (theform.terms.value == "") {
   alert("Informe pelo menos uma palavra antes \nde selecionar o tipo da procura.");
   clickedButton = false;
   return false;
} 
else {
document.TopMbooks.action="http://www.mbooks.com.br/cgi-bin/mbooks/busca_produtos/busca_mbooks.cgi";
document.TopMbooks.submit();
clickedButton = true;
return true;
}
}

function sub2func(theform) {
if (theform.terms.value == "") {
   alert("Informe pelo menos uma palavra antes \nde selecionar o tipo da procura.");
   clickedButton = false;
   return false;
} 
else {
document.TopMbooks.action="http://www.mbooks.com.br/cgi-bin/mbooks/busca_paginas/pesquisa_mbooks.cgi";
document.TopMbooks.submit();
clickedButton = true;
return true;
}
}


function verificaform(theform) {

if (clickedButton) {
        clickedButton = false;
        //return true;
    }
    else
        return false;

} 
document.write('</script>');
document.write('<body topmargin="0" leftmargin="0">');
document.write('<table border="0" cellpadding="3" cellspacing="0" style="border-collapse: collapse" width="777" id="AutoNumber1">');
document.write('  <tr>');
document.write('  <form name="TopMbooks" method="POST" onSubmit="return verificaform(this);">');
document.write(' <td width="204" bgcolor="#000000" rowspan="2">');
document.write('<font color="#FFFFFF">');
document.write('<a href="http://www.mbooks.com.br">');
document.write('<img border="0" src="http://www.mbooks.com.br/Imagens/logo.gif" width="180" height="70" alt="M.Books Editora"></a></font></td>');
document.write('    <td width="567" bgcolor="#000000" valign="top">');
document.write('    <p align="right"><font color="#FFFFFF"><font face="Arial" size="1">');
document.write('    <img border="0" src="http://www.ibuscas.com.br/icones/right_pointer.gif" width="40" height="17" alt="Procure no site">');
document.write('</font><font face="MS Sans Serif, Arial" size="1">Procure no site</font><b>:');
document.write('    </b> <input type="text" name="terms" size="13">&nbsp;');
document.write('      <input type="hidden" name="conf" value="pesquisa_mbooks">');
document.write('      <input type="hidden" name="boolean" value="AND">');
document.write('      <input type="hidden" name="case" value="Insensitive">');
document.write('      <input type="radio" value="produtos" name="opcao" onClick="return sub1func(this.form)">');
document.write('      <font face="MS Sans Serif, Arial" size="1">livros</font>');
document.write('      <input type="radio" value="paginas" name="opcao" onClick="return sub2func(this.form)">');
document.write('      <font face="MS Sans Serif, Arial" size="1">páginas</font> &nbsp;&nbsp;</font></p>');
document.write('      </td>');
document.write('    </form>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td width="567" bgcolor="#000000">');
document.write('    <p align="right"></td>');
document.write('  </tr>');
document.write('  <tr>');
document.write('    <td width="204" bgcolor="#000000">');
document.write('    &nbsp;</td>');
document.write('    <td width="567" bgcolor="#000000">');
document.write('    <font size="4">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </font> </td>');
document.write('  </tr>');
document.write('</table>');
