var loteria_tipo = document.valores.valores_loteria.value;

var max=" ";
var min=" "

var a2= 0;
var a3= 1;
var a4= 50;
var a5= 60;
var a6= 80;
var a7= 99;
var a8= 25;

if (loteria_tipo == "Megasena") {min=a3;max=a5}
else if (loteria_tipo == "Quina") {min=a3;max=a6}
else if (loteria_tipo == "DuplaSena") {min=a3;max=a4}
else if (loteria_tipo == "Lotomania") {min=a2;max=a7}
else if (loteria_tipo == "Qn/Ms/Ds") {min=a3;max=a6}
else if (loteria_tipo == "Ms/Ds") {min=a3;max=a5}
else if (loteria_tipo == "Lotofacil") {min=a3;max=a8}

document.write('<table width=100% border=2 cellspacing=0 cellpadding=0>');
document.write('<tr><td bgcolor=aqua><center>');

document.write('<table width=100% border=2 cellspacing=1 cellpadding=2>');
document.write('<tr><td height=32 colspan=4 bgcolor=#cccccc align=right>');

document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>');
document.write('<tr><td width=11% align=left>');
document.write('<select name=deletar disabled  style=background-color:#ffffff; color:green; font-family:Arial Black; font-size:0pt;>');
document.write('<option selected></option>');
document.write('<option></option>');
document.write('</select></td>');
document.write('<td width=79% align=center>');
document.write('<font color=#FF0000 size=3 face=verdana,arial,helvetica>');
document.write('<strong><b>Palpites para Fechamento</b></strong></font></td>');
                                          
document.write('<td width=10% align=right>');
document.write('<select name=select2 disabled  style=background-color:#ffffff; color:green; font-family:Arial Black; font-size:0pt;>');
document.write('<option selected></option>');
document.write('<option></option>');
document.write('</select></td></tr></table>');
                                   
document.write('</td></tr><tr><td height=31 width=19% align=center>');
document.write('<strong><font color=#003498 size=1>Menor</font></strong>');
document.write('<font size=1 color=#003498 face=verdana,arial,helvetica><strong>N&ordm;</strong></font>');

document.write('<input type=text name=rangebeg value='+min+' size=2 maxlength=2 >');
document.write('</td>');
document.write('<td height=31 width=19% align=center><strong><font color=#003498 size=1>Maior N&ordm;</font></strong>');
 
document.write('<input type=text name=rangeend value='+max+' maxlength=2 size=2>');
document.write('</td>');
document.write('<td height=31 width=36% align=center><strong><font color=#003498 size=1>Ordem</font></strong>');
 
document.write('<select name=sortedornot style=background-color:#ffffff; color:green; font-family:times new roman; font-size:10pt;>');
document.write('<option>Aleatória');
document.write('<option selected>Crescente ');
document.write('<option>Decrescente ');
document.write('</select>');
document.write('</td>');
 
document.write('<td height=31 width=26% align=center>');
document.write('<input onClick=randomizer() type=button value=Gerar name=Button2 style=background-color:#ffffff; color:green; font-family:Arial Black; font-size:8pt;>');
document.write('<input type=reset value=Limpar name=reset style=background-color:#ffffff; color:green; font-family:Arial Black; font-size:8pt;>');
document.write('</td></tr></table>');
//document.write('</td></tr>');