Convert SGP 4D

Winning Numbers Add
+
    
12 21 29 42 65 76 + 54
0 7 5 6
Prediksi TOTOKITA
#muka > table { border: medium none; font-size: 20px; } #muka td { border: medium none !important; height: auto; padding-top: 10px; width: auto; } .isi { background: none repeat scroll 0 0 #e4e4e4 !important; color: #4b4b4d !important; font-size: 22px; height: 40px; text-align: center; width: 40px; } .an123 { background: none repeat scroll 0 0 #FF00FF; border-radius: 50px; color: #fefefe; font-family: arial,verdana; font-size: 20px; margin: 5px !important; padding: 5px; text-align: center; vertical-align: middle; width: 40px; border: 0 none; } .hasilconvert { border: medium none !important; margin: 20px 0; } .hasilconvert td { border: 0 none; padding: 10px; vertical-align: middle; width: 40px; } .hasilconvert b { color: #f49100; font-family: verdana,tahoma; font-size: 30px; font-weight: bold; padding: 10px; text-shadow: 1px 1px 1px #000000; } .an1237 { background: none repeat scroll 0 0 #8A2BE2; border-radius: 50px; color: #fefefe; font-family: arial,verdana; font-size: 20px; font-weight: bold; margin: 5px !important; text-align: center; border: 0 none; } table.hasilakhir { color: #ffffff; height: 50px; margin-top: 10px; text-align: center; width: 100%; border: 0 none; } table, td, th { text-align: center; } table.hasilakhir td { background: #D4AF37; background: -moz-radial-gradient(center, ellipse cover, #9932CC 0%, #c146a1 30%, #a80077 49%, #db36a4 59%, #db36a4 100%); background: -webkit-gradient(radial, center center, 0px, center center, 100%, color-stop(0%, #cb60b3), color-stop(30%, #c146a1), color-stop(49%, #a80077), color-stop(59%, #db36a4), color-stop(100%, #db36a4)); background: -webkit-radial-gradient(center, ellipse cover, #cb60b3 0%, #c146a1 30%, #a80077 49%, #db36a4 59%, #db36a4 100%); background: -o-radial-gradient(center, ellipse cover, #cb60b3 0%, #c146a1 30%, #a80077 49%, #db36a4 59%, #db36a4 100%); background: -ms-radial-gradient(center, ellipse cover, #cb60b3 0%, #c146a1 30%, #a80077 49%, #db36a4 59%, #db36a4 100%); background: radial-gradient(ellipse at center, #cb60b3 0%, #c146a1 30%, #a80077 49%, #db36a4 59%, #db36a4 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#cb60b3', endColorstr='#db36a4', GradientType=1 ); font-family: Helvetica,verdana; font-size: 40px; font-weight: bold; padding: 30px; } @media screen and (max-width : 800px) and (min-width: 401px) { #muka td { border: medium none !important; height: auto; padding-top: 10px; padding-left: 2px; padding-right: 2px; width: auto; font-size: 12px; } } @media screen and (max-width : 400px) and (min-width: 301px) { #muka td { border: medium none !important; height: auto; padding-top: 10px; padding-left: .8px; padding-right: .8px; width: auto; font-size: 10px; } table.hasilakhir td { font-size: 14px; padding: 5px; } .an1237 { background: none repeat scroll 0 0 #e40909; border-radius: 5px; color: #fefefe; font-family: arial,verdana; font-size: 14px; font-weight: bold; margin: 1px !important; text-align: center; border: 0 none; } .an123 { background: none repeat scroll 0 0 #0271cb; border-radius: 5px; color: #fefefe; font-family: arial,verdana; font-size: 14px; margin: 2px; padding: 2px; text-align: center; vertical-align: middle; width: 20px; border: 5px solid red; height : 20px; } } function hapusx(){ var fom = document.fom; hsl.style.display = "none"; var s1x = eval("fom.s1"); var s2x = eval("fom.s2"); var s3x = eval("fom.s3"); var s4x = eval("fom.s4"); var s5x = eval("fom.s5"); var s6x = eval("fom.s6"); var s7x = eval("fom.s7"); s1x.value = ""; s2x.value = ""; s3x.value = ""; s4x.value = ""; s5x.value = ""; s6x.value = ""; s7x.value = ""; s1x.focus(); } function convert(){ var fom = document.fom; var s1 = eval("fom.s1"); var s2 = eval("fom.s2"); var s3 = eval("fom.s3"); var s4 = eval("fom.s4"); var s5 = eval("fom.s5"); var s6 = eval("fom.s6"); var s7 = eval("fom.s7"); if ((!s1.value) || (!s2.value) || (!s3.value) || (!s4.value) || (!s5.value) || (!s6.value) || (!s7.value)){ alert("Winning Numbers dan Additional Number harus diisi dengan angka \n Tidak boleh dikosongi!!"); s1.focus(); return; }//else if () hsl.style.display = "block"; var myarray=[s1.value, s2.value, s3.value, s4.value, s5.value, s6.value] myarray.sort(function(a,b){return a - b}); xyz = s7.value; xyz1 = myarray[0]; xyz2 = myarray[1]; xyz3 = myarray[2]; xyz4 = myarray[3]; xyz5 = myarray[4]; xyz6 = myarray[5]; var c = parseInt(myarray[0]) + parseInt(myarray[1]) + parseInt(myarray[2]) + parseInt(myarray[3]) + parseInt(myarray[4]) + parseInt(myarray[5]); c = parseInt(c) * 2; c = parseInt(c) - parseInt(myarray[0]) - parseInt(myarray[5]); c = parseInt(c) + Number(s7.value); c = ""+c; if (c.length > 2){ c = c.substr(1,2); } var d = c.substr(1); c = c.substr(0,1); var b = parseInt(myarray[3]) + parseInt(myarray[4]); b = ""+b; if (b.length > 2){ b = b.substr(2,1); }else { b = b.substr(1); } var a = parseInt(myarray[1]) + parseInt(myarray[2]); a = ""+a; if (a.length >= 2){ a = a.substr(1); } document.getElementById("ab1").innerHTML = a; document.getElementById("ab2").innerHTML = b; document.getElementById("ab3").innerHTML = c; document.getElementById("ab4").innerHTML = d; document.getElementById("an1231").innerHTML = xyz1; document.getElementById("an1232").innerHTML = xyz2; document.getElementById("an1233").innerHTML = xyz3; document.getElementById("an1234").innerHTML = xyz4; document.getElementById("an1235").innerHTML = xyz5; document.getElementById("an1236").innerHTML = xyz6; document.getElementById("an1237").innerHTML = xyz; } _dom = 0; _dom=document.all?3:(document.getElementById?1:(document.layers?2:0)); function huruf(obj,e) { //============================================================= //thispost=parseInt(obj.name.slice(-1)); //alert(obj.name) if (_dom == 3 || (_dom == 1 && navigator.userAgent.indexOf("Opera/")==0)) // for IE { //alert(event.keyCode) if (event.keyCode >= 48 && event.keyCode <= 57 || event.keyCode==8 || event.keyCode==9 || event.keyCode >= 37 && event.keyCode <= 40 ) { //tebak.value = String.fromCharCode(event.keyCode); //event.returnValue=false; } else { event.returnValue=false; return false; } } else { //alert(e.charCode) if (e.charCode > 47 && e.charCode < 58) { //alert('ttttt') //tebak.value = String.fromCharCode(e.charCode); //event.returnValue=false; } else if (e.charCode == 0){ event.returnValue=false; return false; } else { var fom = document.fom; var nam = eval("fom."+obj.name); e.returnValue=false; //alert(nam.value) nam.value = ""; alert("Winning Numbers dan Additional Number harus diisi dengan angka! \n Jangan memasukkan selain angka!!"); return true; } } }