var campo_loteria = "Lotofacil";
var campo_arquivo = "15g15";
var campo_modulo = "U-15";
var campo_qtde_dezenas = "17";
var campo_valor_aposta = "136,00";
var campo_qtde_volantes = "136";
var campo_condicao = "15";
var campo_garantia = "15pts.";

function Checar()
   {

   
   var n1 = document.form1.N0.value;
   var n2 = document.form1.N1.value;
   var n3 = document.form1.N2.value;
   var n4 = document.form1.N3.value;
   var n5 = document.form1.N4.value; 
   var n6 = document.form1.N5.value;
   var n7 = document.form1.N6.value;
   var n8 = document.form1.N7.value;
   var n9 = document.form1.N8.value;
   var n10 = document.form1.N9.value;
   var n11 = document.form1.N10.value;
   var n12 = document.form1.N11.value;
   var n13 = document.form1.N12.value;
   var n14 = document.form1.N13.value;
   var n15 = document.form1.N14.value;
   var n16 = document.form1.N15.value;
   var n17 = document.form1.N16.value;


   if (n1== "")
         {
         alert("\n Campo em Branco! \n Favor Corrigir!")
         document.form1.N1.select();
         document.form1.N1.focus();
         return false;
         }


mostrar(n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,n14,n15,n16,n17);
         }


function mostrar(n1,n2,n3,n4,n5,n6,n7,n8,n9,n10,n11,n12,n13,n14,n15,n16,n17)
         { 


<!--############################################################################ -->
<!--###########################                           ###################### -->
<!--###########################  INICIO DA PAGINA GERADA  ###################### -->
<!--###########################                           ###################### -->
<!--############################################################################ --> 

y2 = open("", "tmp" +  "tmp","width=778,height=600,top=0,left=0,resizable,toolbar=0,scrollbars=1,");

y2.document.write ("<HTML><head><title>Resultado das Combinações Geradas</title></head><BODY TEXT='#000000'  BGCOLOR='#ffffcc' LINK='#3366FF' VLINK='#CC0000' ALINK='#FF0000' topmargin='0'>");
y2.document.write("<center><table border=0 width=98% align=center valign=top  cellpadding=0 cellspacing=0 bgcolor=#003498><tr><td>");
y2.document.write("<table border=0 width=85%  align=center valing=top cellpadding=0  background=../../img/fundomoeda.gif ><TR><Td colspan=4 align=right background=../../img/fundotop.gif> " );
 y2.document.write("<b><i><font face=Lucida Calligraphy  size=5 color=#FFFFFF>Boa Sorte !!!</font>");     
y2.document.write("</i></b>");

y2.document.write("</TR>" );
y2.document.write("</Td colspan=4>" );


y2.document.write("<TR><Td bgcolor=#ffffcc width=15%>" );
y2.document.write("<center><font color=#003498 size=3><b>Matriz</b></font><br>");
y2.document.write("</td>" );
y2.document.write("<Td bgcolor=#ffffcc width=15%>" );
y2.document.write("<center><font color=#003498 size=3><b>Base</b></font><br>");
y2.document.write("</td>" );
y2.document.write("<Td bgcolor=#ffffcc width=40%>" );
y2.document.write("<center><font color=#003498 size=3><b>Necessário ??</b></font><br>");
y2.document.write("</td>" );
y2.document.write("<Td bgcolor=#ffffcc width=30%>" );
y2.document.write("<center><font color=#003498 size=3><b>Garantia</b></font><br>");
y2.document.write("</td></tr>" );

<!--############################################################################ -->
<!-- ########################### INICIO DO CABEÇALHO  ########################## -->
<!--############################################################################ -->
var e_qtde = document.valores.valores_modulo.value;
var f_qtde = document.valores.valores_arquivo.value;
var g_qtde = document.valores.valores_condicao.value;
var h_qtde = document.valores.valores_garantia.value;


y2.document.write("<TR><Td bgcolor=#ffffcc width=15%>" );
y2.document.write("<center><font color=green size=2><b>");
y2.document.write(e_qtde , " </b></font></center></td>");


y2.document.write("<Td bgcolor=#ffffcc width=15%>" );
y2.document.write("<center><font color=green size=2><b>");
y2.document.write(f_qtde , " </b></font></center></td>");


y2.document.write("<Td bgcolor=#ffffcc width=40%>" );
y2.document.write("<center><font color=green size=2><b>");
y2.document.write("Acertar " , g_qtde , " Dezenas </b></font></center></td>");


y2.document.write("<Td bgcolor=#ffffcc width=30%>" );
y2.document.write("<center><font color=green size=2><b>");
y2.document.write( h_qtde , " </b></font></center></td></tr>");



<!--############################################################################ -->
<!-- ########################## FIM DO  CABEÇALHO  ############################# -->
<!--############################################################################ -->
 
y2.document.write("<TR><td colspan=4 >" );

y2.document.write("<font color=white size=1>.</font><table border=2 bordercolor=#003498 align=Center bgcolor=#ffffcc width=80%> " );
y2.document.write("<TR><Td bgcolor=white  colspan=4><center>" );
y2.document.write("<center><font color=#003498 size=3><b>Dados do Fechamento :</b></font>");
y2.document.write("</td></tr>");



y2.document.write("<tr><td width=25%><center><b><font color=green> Loteria </font></b></center></td>");
y2.document.write("<td width=25%><center><b><font color=green> Dezenas </font></b></center></td>");
y2.document.write("<td width=25%><center><b><font color=green> Volantes </font></b></center></td>");
y2.document.write("<td width=25%><center><b><font color=green> Valor </font></b></center></td></tr>");

<!--############################################################################ -->
<!-- ################ INICIO DA DESCRIÇAO E VALORES DO FECHAMENTO  ############# -->
<!--############################################################################ -->
var a_qtde = document.valores.valores_qtde.value;
var b_qtde = document.valores.valores_volantes.value;
var c_qtde = document.valores.valores_aposta.value;
var d_qtde = document.valores.valores_loteria.value;

y2.document.write("<tr><td width=25%><center><b><font color=#003498 size=2>"); 
y2.document.write(d_qtde , " </font></b></center></td>");
y2.document.write("<td width=25%><center><b><font color=#003498 size=2>"); 
y2.document.write(a_qtde , " </font></b></center></td>");
y2.document.write("<td width=25%><center><b><font color=#003498 size=2>");
y2.document.write(b_qtde , " </font></b></center></td>");
y2.document.write("<td width=25%><center><b><font color=#003498 size=2>");
y2.document.write(c_qtde , " </font></b></center></td>");


y2.document.write("</td></tr>");
<!--############################################################################ -->
<!-- ################### FIM DA DESCRIÇAO E VALORES DO FECHAMENTO  ############# -->
<!--############################################################################ -->

y2.document.write("<TR><Td align=center bgcolor=white colspan=4>" );

y2.document.write("<center><font color=#003498 size=3><b>Dezenas Escolhidas :</b></font>");

y2.document.write("<br>" );
y2.document.write("</td></tr>");



<!--############################################################################ -->
<!-- ###################### INICIO DAS DEZENAS ESCOLHIDAS  ##################### -->
<!--############################################################################ -->
y2.document.write("<form name='form3'>");
y2.document.write("<TR><Td colspan=4><center>" );
y2.document.write("<textarea name='output2' cols='80' rows='2'>");
y2.document.write("</textarea></center></td></tr></form>" );

var output2 = '';
output2+=n1+ '-' +n2+ '-' +n3+ '-' +n4+ '-' +n5+ '-' +n6+ '-' +n7+ '-' +n8+ '-' +n9+ '-' +n10+ '-' +n11+ '-' +n12+ '-' +n13+ '-' +n14+ '-' +n15+ '-' +n16+ '-' +n17+  '\n';

y2.document.form3.output2.value = output2;


<!--############################################################################ -->
<!-- ######################## FIM DAS DEZENAS ESCOLHIDAS  ###################### -->
<!--############################################################################ -->

//y2.document.write("");
//y2.document.write("");


y2.document.write("<TR><Td align=center bgcolor=white colspan=4>" );
y2.document.write("<center><font color=#003498 size=3><b>Volantes Gerados :</b></font>");
y2.document.write("</td></tr>");


y2.document.write("<TR><Td colspan=4><center>" );

<!--############################################################################ -->
<!-- ########################  INICIO DAS COMBINACOES GERADAS  ################# -->
<!--############################################################################ -->

y2.document.write("<font color=green size=2><b>Para Copiar as Combinações Geradas clic em selecionar e depois Pressione CTRL C , &nbsp;Abra seu Editor &nbsp;Notepad  e Pressione CTRL V &nbsp; para Colar. &nbsp;&nbsp; Salve o Arquivo para Impressao dos volantes e Conferência.</b></font>");

y2.document.write("<form name='form2'><textarea name='output' class='select' wrap='virtual' cols='60' rows='6'>");
y2.document.write("</textarea></form>" );


var output = '';

output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n1+' '+n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n14+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n15+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n16+' '+n17+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+'\n';
output+= n2+' '+n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n17+'\n';
output+= n3+' '+n4+' '+n5+' '+n6+' '+n7+' '+n8+' '+n9+' '+n10+' '+n11+' '+n12+' '+n13+' '+n14+' '+n15+' '+n16+' '+n17+'\n';




y2.document.form2.output.value = output;


<!--############################################################################ -->
<!-- ########################  FIM DAS COMBINAÇOES GERADAS  #################### -->
<!--############################################################################ -->

y2.document.write("<input onClick=javascript:document.form2.output.focus();document.form2.output.select(); type=button value='Selecionar' name='button'>");

y2.document.write("<input type=button name=voltar value='   Fechar   ' onClick=javascript:window.close()><br><font color=white size=1>.</font>");
y2.document.write("</td></tr>");




y2.document.write("<TR><Td bgcolor=white colspan=4><center>" );
y2.document.write("<center><font color=green size=2><b>Obrigado por utilizar nossos servicos. </b></font></center>");
y2.document.write("</td>","</td>","</tr>");


y2.document.write("<tr>","<td colspan=4 bgcolor=white>","<center>");
y2.document.write("<font color=#003498 size=2>");
today = new Date()
y2.document.write("<FONT SIZE=-1 face=arial><b>")
y2.document.write("Combinações Geradas em     ")
y2.document.write("<FONT SIZE=-1 face=arial>")
var now = new Date()
var hour = now.getHours()
hour = (hour == 0) ? 12 : hour

ano = today.getYear()
        if (ano < 2000)
                ano = ano+1900

if (hour < 10)
   hour = "0" + hour // do not parse number!
var now = new Date()
var minute = now.getMinutes()
if (minute < 10)
    minute = "0" + minute // do not parse number!
minute += ""
y2.document.write("",today.getDate(),"/",today.getMonth()+1,"/",ano)
y2.document.write(" às  ",hour,":",minute," Hs")
y2.document.write("</i></font>")
y2.document.write("</td></tr></table></font></center><font color=white size=1>.</font>");

y2.document.write("</td>","</tr>","</table>","</center>");
y2.document.write("<tr><td bgcolor=#FFFFFF height=17>");
y2.document.write("<td bgcolor=#FFFFFF height=17>&nbsp;</td>");
y2.document.write("<td bgcolor=#FFFFFF height=17> ");
y2.document.write("<div align=right>");
y2.document.write("</td></tr></table></center><tr><td bgcolor=#003498>");
y2.document.write("<font color=white size=1>.</font></td></tr>");


y2.document.write("</td></tr></table></center>");
<!--############################################################################ -->
<!--###########################                           ###################### -->
<!--###########################    FIM DA PAGINA GERADA   ###################### -->
<!--###########################                           ###################### -->
<!--############################################################################ -->


}


document.write('<table width=149 border=0 cellpadding=0 cellspacing=0 bordercolor=#ff9900>');
document.write('<tr><td  width=13% bgcolor=#ff9900> ');
document.write('</td>');
document.write('<td  bgcolor=#ff9900 align=center><b><font color=#000099 face=Times New Roman, Times, serif size=3>Dados combinados</font></b></td>');
document.write('<td  width=15% bgcolor=#ff9900> ');
document.write('</td></tr><tr> <td colspan=3 bgcolor=#ff9900> ');

document.write('<table background=../../img/fundomoeda.gif  width=100% border=2 cellspacing=2 cellpadding=2 bordercolor=#ff9900>');
document.write('<tr><td  background=../../img/fundomoeda.gif width=54% ><center>');
document.write('<font color=green size=2><b>Loteria</b></font> ');
document.write('</center></td><td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_loteria size=4 class=select value='+campo_loteria+' disabled>');

document.write('</strong></font></b></center></td></tr>');
document.write('<tr><td  background=../../img/fundomoeda.gif width=54%><center>');
document.write('<b><font color=green size=2><b>Base</b></font><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');
document.write('</strong></font></b></center></td>');
document.write('<td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_arquivo size=4 class=select value='+campo_arquivo+'  disabled>');

document.write('</strong></font></b></center></td></tr>');
document.write('<tr><td  background=../../img/fundomoeda.gif width=54%><center>');
document.write('<b><font color=green size=2><b>Matriz</b></font></b> ');
document.write('</center></td><td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_modulo size=4  class=select value='+campo_modulo+'  disabled>');

document.write('</strong></font></b></center></td></tr>');
document.write('<tr><td  background=../../img/fundomoeda.gif width=54%><center>');
document.write('<font color=green size=2><b>Dezenas</b></font> ');
document.write('</center></td><td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_qtde size=4  class=select value='+campo_qtde_dezenas+'  disabled>');

document.write('</strong></font></b></center></td></tr>');
document.write('<tr><td  background=../../img/fundomoeda.gif width=54%><center>');
document.write('<font color=green size=2><b>R$ Aposta </b></font> ');
document.write('</center></td><td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_aposta size=4  class=select value='+campo_valor_aposta+'  disabled>');

document.write('</strong></font><font color=green size=2></font></b> ');
document.write('</center></td></tr><tr> <td  background=../../img/fundomoeda.gif width=54%><center>');
document.write('<font color=green><b><font size=2>Volantes</font></b></font> ');
document.write('</center></td><td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_volantes size=4  class=select value='+campo_qtde_volantes+'  disabled>');

document.write('</strong></font><font color=green size=2> </font></b> ');
document.write('</center></td></tr><tr><td  background=../../img/fundomoeda.gif width=54%><center>');
document.write('<font color=green size=2><b>Nescessário</b></font> ');
document.write('</center></td><td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_condicao size=4  class=select value='+campo_condicao+'  disabled>');

document.write('</strong></font></b></center></td></tr><tr><td  background=../../img/fundomoeda.gif width=54%><center>');
document.write('<font color=green size=2><b>Garantia </b></font> ');
document.write('</center></td><td  background=../../img/fundomoeda.gif width=46%><center>');
document.write('<b><font size=2 color=#ff0000 face=verdana,arial,helvetica><strong> ');

document.write('<input name=valores_garantia size=4  class=select value='+campo_garantia+'  disabled>');

document.write('</strong></font></b></center></td></tr><tr><td colspan=2><center>');
document.write('</font></b> <b><font size=2 color=green> </font></b></center></td></tr>');
document.write('<tr><td colspan=2><center>');
document.write('</center></td></tr></table>');

document.write('</td></tr><tr> <td  width=13% bgcolor=#FFFFFF height=12> ');
document.write('</td><td  width=72% bgcolor=#FFFFFF height=12>&nbsp;</td>');
document.write('<td  width=15% bgcolor=#FFFFFF height=12> ');
document.write('</td></tr></table>');













