﻿<!-- Begin
var timerID = null;
var timerRunning = false;
function stopclock (){
if(timerRunning)
clearTimeout(timerID);
timerRunning = false;
}
function showtime () {
var now1 = new Date();
var hours1 = now1.getHours();
var minutes1 = now1.getMinutes();
var seconds1 = now1.getSeconds()
var timeValue = "" + ((hours1 >12) ? hours1 -12 :hours1)
if (timeValue == "0") timeValue = 12;
timeValue += ((minutes1 < 10) ? ":0" : ":") + minutes1
timeValue += ((seconds1 < 10) ? ":0" : ":") + seconds1
timeValue += (hours1 >= 12) ? " P.M." : " A.M."
document.form1.txtdrawclosetime.value = timeValue;
timerID = setTimeout("showtime()",1000);
timerRunning = true;
}
function startclock() {
stopclock();
showtime();
}
// End -->
//F-PREEMP.



<!-- Begin
 var time=new Array(0,15,0) 
function window_Onload()
{
    setInterval("updateTime()",1000);     
} 

function updateTime() 
{ 
var t2,t1,t0
time[0] -- 
if (time[0] < 0) 
{ 
time[1] -- 
time[0] = 59
} 
if (time[1] < 0) 
{ 
time[2] -- 
time[1] = 59 
}

if (time[2] < 10)
 {
	t2= "0" + time[2]
 }
else
{
	t2=  time[2]	
 }
 if (time[1] < 10)
 {
	t1= "0" + time[1]
 }
 else
 {
 	t1=  time[1]
 }
 if (time[0] < 10)
 {
	t0= "0" + time[0]
 }
 else
 {
	t0= time[0]
 }
 

if (time[0] == 0 && time[1] == 0 && time[2] == 0) 
{
    document.form1.txttimer.value = " " + 00 + " : " + 00 + " : " + 00 + " " 
    document.location = "Sanjay.aspx"
 }
else 
{
   document.form1.txttimer.value = "  " + t2 + " : " + t1 + " : " + t0 
}
  
}
//  End -->
function getKeyCode(e)// v1.0
{
	if (window.event)
	   return window.event.keyCode;
	else if (e)
	   return e.which;
	else
	   return null;
}
//validation for textbox
function ValidateText(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 100)
    {
    alert('You cannot play more than 99 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function ValidateText1(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 51)
    {
    alert('You cannot play more than 50 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function ValidateText2(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 26)
    {
    alert('You cannot play more than 25 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function ValidateText3(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 17)
    {
    alert('You cannot play more than 16 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function ValidateText4(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 11)
    {
    alert('You cannot play more than 10 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function ValidateText5(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 6)
    {
    alert('You cannot play more than 5 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function ValidateText6(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 3)
    {
    alert('You cannot play more than 2 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function ValidateText7(i) 
{
    if(i.value.length>0) 
    {
    i.value = i.value.replace(/[^\d]+/g, ''); 
    }  
    if(i.value >= 1 && i.value >= 2)
    {
    alert('You cannot play more than 1 bets for this game. Please play again for more bets.');
    i.value="";
    Calculate();
    }    
}
function Restrict(e,Val)
{		
    key = getKeyCode(e);
    if ( key >= 37 && key <= 40  ) {
        name = Val.replace('txt','');
        row = eval(name.substring(0,1));
        col = eval(name.substring(1,2));
        //alert( row + " : " + col )
        name=""
        if ( key == 38 && row > 0 ) {
            name = 'txt'+(row-1)+col;
        }
        if ( key == 39 && col < 9 ) {
            name = 'txt'+(row)+(col+1);
        }
        if ( key == 40 && row < 11 ) {
            name = 'txt'+(row+1)+(col);
        }
        if ( key == 37 && col > 0 ) {
            name = 'txt'+(row)+(col-1);
        }
        if ( name != "" ) {
            //alert( name )
            //document.forms.form1(name).select();
            document.getElementById(name).focus();
        }
        
    }
    else {
        if(document.getElementById(Val).value.length>0) 
        {
		        document.getElementById(Val).value = document.getElementById(Val)
		        
		        .value.replace(/[^\d]+/g, ''); 
        }    
        for(var i=0;i<12;i++)
       {
            for(var j=0;j<10;j++)
            {
                if(document.getElementById("txt"+i+j).value == 0)
                    document.getElementById("txt"+i+j).value = "";
            }
       }	
    }
}	

function keyRestrict(e, validchars) { // v3.0    
//    alert(e);
	var key='', keychar='';
	key = getKeyCode(e);
	if (key == null) return true;
	keychar = String.fromCharCode(key);
	keychar = keychar.toLowerCase();
	validchars = validchars.toLowerCase();
	if (validchars.indexOf(keychar) != -1)
	{
	 
		return true;
	}
	if ( key==null || key==0 || key==8 || key==9 || key==13 || key==27 )
	{	    
		return true;	
	}	
	return false;
}

function Calculate()
{
    //document.getElementById("nd").value= document.getElementById("ddlnoofdraw").value;

    /* Lucky Lott 1 Chrome*/    
    var price1 = 0.55
    var t00 = document.getElementById("txt00").value 
    var t01 = document.getElementById("txt01").value 
    var t02 = document.getElementById("txt02").value 
    var t03 = document.getElementById("txt03").value 
    var t04 = document.getElementById("txt04").value 
    var t05 = document.getElementById("txt05").value 
    var t06 = document.getElementById("txt06").value 
    var t07 = document.getElementById("txt07").value 
    var t08 = document.getElementById("txt08").value    
    var t09 = document.getElementById("txt09").value 
    
    if (t00.length == 0)
	{
	    t00=0
    }
	t00=t00.toString()
	if (t01.length == 0)
	{
	    t01=0
    }
	t01=t01.toString()
	if (t02.length == 0)
	{
	    t02=0
    }
	t02=t02.toString()
	if (t03.length == 0)
	{
	    t03=0
    }
	t03=t03.toString()
	if (t04.length == 0)
	{
	    t04=0
    }
	t04=t04.toString()
	if (t05.length == 0)
	{
	    t05=0
    }
	t05=t05.toString()
	if (t06.length == 0)
	{
	    t06=0
    }
	t06=t06.toString()
	if (t07.length == 0)
	{
	    t07=0
    }
	t07=t07.toString()
	if (t08.length == 0)
	{
	    t08=0
    }
	t08=t08.toString()
	if (t09.length == 0)
	{
	    t09=0
    }
	t09=t09.toString()
	
	var qty1 =parseFloat(t00) + parseFloat(t01) + parseFloat(t02) + parseFloat(t03) + parseFloat(t04) + parseFloat(t05) + parseFloat(t06) + parseFloat(t07) + parseFloat(t08) + parseFloat(t09)     
	
    var amt1 =qty1 * price1 * 10
    document.getElementById("txtamt0").value = amt1.toFixed(2);
    /* End of Lucky Lott 1 Chrome*/
    
     /* Lucky Lott 2 Chrome*/
    var price2 = 0.55
    var t10 = document.getElementById("txt10").value 
    var t11 = document.getElementById("txt11").value 
    var t12 = document.getElementById("txt12").value 
    var t13 = document.getElementById("txt13").value 
    var t14 = document.getElementById("txt14").value 
    var t15 = document.getElementById("txt15").value 
    var t16 = document.getElementById("txt16").value 
    var t17 = document.getElementById("txt17").value 
    var t18 = document.getElementById("txt18").value     
    var t19 = document.getElementById("txt19").value 
    
    if (t10.length == 0)
	{
	    t10=0
    }
	t10=t10.toString()
	if (t11.length == 0)
	{
	    t11=0
    }
	t11=t11.toString()
	if (t12.length == 0)
	{
	    t12=0
    }
	t12=t12.toString()
	if (t13.length == 0)
	{
	    t13=0
    }
	t13=t13.toString()
	if (t14.length == 0)
	{
	    t14=0
    }
	t14=t14.toString()
	if (t15.length == 0)
	{
	    t15=0
    }
	t15=t15.toString()
	if (t16.length == 0)
	{
	    t16=0
    }
	t16=t16.toString()
	if (t17.length == 0)
	{
	    t17=0
    }
	t17=t17.toString()
	if (t18.length == 0)
	{
	    t18=0
    }
	t18=t18.toString()
	if (t19.length == 0)
	{
	    t19=0
    }
	t19=t19.toString()
	
	var qty2 =parseFloat(t10) + parseFloat(t11) + parseFloat(t12) + parseFloat(t13) + parseFloat(t14) + parseFloat(t15) + parseFloat(t16) + parseFloat(t17) + parseFloat(t18) + parseFloat(t19)     
    var amt2 =qty2 * price2 * 10    
    document.getElementById("txtamt1").value = amt2.toFixed(2);
    /* End of Lucky Lott 2 Chrome*/
    
     /* Lucky Lott 3 Chrome*/
    var price3 = 0.55
    var t20 = document.getElementById("txt20").value 
    var t21 = document.getElementById("txt21").value 
    var t22 = document.getElementById("txt22").value 
    var t23 = document.getElementById("txt23").value 
    var t24 = document.getElementById("txt24").value 
    var t25 = document.getElementById("txt25").value 
    var t26 = document.getElementById("txt26").value 
    var t27 = document.getElementById("txt27").value 
    var t28 = document.getElementById("txt28").value     
    var t29 = document.getElementById("txt29").value 
    
    if (t20.length == 0)
	{
	    t20=0
    }
	t20=t20.toString()
	if (t21.length == 0)
	{
	    t21=0
    }
	t21=t21.toString()
	if (t22.length == 0)
	{
	    t22=0
    }
	t22=t22.toString()
	if (t23.length == 0)
	{
	    t23=0
    }
	t23=t23.toString()
	if (t24.length == 0)
	{
	    t24=0
    }
	t24=t24.toString()
	if (t25.length == 0)
	{
	    t25=0
    }
	t25=t25.toString()
	if (t26.length == 0)
	{
	    t26=0
    }
	t26=t26.toString()
	if (t27.length == 0)
	{
	    t27=0
    }
	t27=t27.toString()
	if (t28.length == 0)
	{
	    t28=0
    }
	t28=t28.toString()
	if (t29.length == 0)
	{
	    t29=0
    }
	t29=t29.toString()
	
	var qty3 =parseFloat(t20) + parseFloat(t21) + parseFloat(t22) + parseFloat(t23) + parseFloat(t24) + parseFloat(t25) + parseFloat(t26) + parseFloat(t27) + parseFloat(t28) + parseFloat(t29)     
    var amt3 =qty3 * price3 * 20    
    document.getElementById("txtamt2").value = amt3.toFixed(2);
    /* End of Lucky Lott 3 Chrome*/
    
     /* Lucky Lott 4 Chrome*/
    var price4 = 0.55
    var t30 = document.getElementById("txt30").value 
    var t31 = document.getElementById("txt31").value 
    var t32 = document.getElementById("txt32").value 
    var t33 = document.getElementById("txt33").value 
    var t34 = document.getElementById("txt34").value 
    var t35 = document.getElementById("txt35").value 
    var t36 = document.getElementById("txt36").value 
    var t37 = document.getElementById("txt37").value 
    var t38 = document.getElementById("txt38").value     
    var t39 = document.getElementById("txt39").value 
    
    if (t30.length == 0)
	{
	    t30=0
    }
	t30=t30.toString()
	if (t31.length == 0)
	{
	    t31=0
    }
	t31=t31.toString()
	if (t32.length == 0)
	{
	    t32=0
    }
	t32=t32.toString()
	if (t33.length == 0)
	{
	    t33=0
    }
	t33=t33.toString()
	if (t34.length == 0)
	{
	    t34=0
    }
	t34=t34.toString()
	if (t35.length == 0)
	{
	    t35=0
    }
	t35=t35.toString()
	if (t36.length == 0)
	{
	    t36=0
    }
	t36=t36.toString()
	if (t37.length == 0)
	{
	    t37=0
    }
	t37=t37.toString()
	if (t38.length == 0)
	{
	    t38=0
    }
	t38=t38.toString()
	if (t39.length == 0)
	{
	    t39=0
    }
	t39=t39.toString()
	
	var qty4 =parseFloat(t30) + parseFloat(t31) + parseFloat(t32) + parseFloat(t33) + parseFloat(t34) + parseFloat(t35) + parseFloat(t36) + parseFloat(t37) + parseFloat(t38) + parseFloat(t39)     
    var amt4 =qty4 * price4 * 20    
    document.getElementById("txtamt3").value = amt4.toFixed(2);
    /* End of Lucky Lott 4 Chrome*/
    
     /* Lucky Lott 5 Chrome*/
    var price5 = 0.55
    var t40 = document.getElementById("txt40").value 
    var t41 = document.getElementById("txt41").value 
    var t42 = document.getElementById("txt42").value 
    var t43 = document.getElementById("txt43").value 
    var t44 = document.getElementById("txt44").value 
    var t45 = document.getElementById("txt45").value 
    var t46 = document.getElementById("txt46").value 
    var t47 = document.getElementById("txt47").value 
    var t48 = document.getElementById("txt48").value     
    var t49 = document.getElementById("txt49").value 
    
    if (t40.length == 0)
	{
	    t40=0
    }
	t40=t40.toString()
	if (t41.length == 0)
	{
	    t41=0
    }
	t41=t41.toString()
	if (t42.length == 0)
	{
	    t42=0
    }
	t42=t42.toString()
	if (t43.length == 0)
	{
	    t43=0
    }
	t43=t43.toString()
	if (t44.length == 0)
	{
	    t44=0
    }
	t44=t44.toString()
	if (t45.length == 0)
	{
	    t45=0
    }
	t45=t45.toString()
	if (t46.length == 0)
	{
	    t46=0
    }
	t46=t46.toString()
	if (t47.length == 0)
	{
	    t47=0
    }
	t47=t47.toString()
	if (t48.length == 0)
	{
	    t48=0
    }
	t48=t48.toString()
	if (t49.length == 0)
	{
	    t49=0
    }
	t49=t49.toString()
	
	var qty5 =parseFloat(t40) + parseFloat(t41) + parseFloat(t42) + parseFloat(t43) + parseFloat(t44) + parseFloat(t45) + parseFloat(t46) + parseFloat(t47) + parseFloat(t48) + parseFloat(t49)     
    var amt5 =qty5 * price5 * 40    
    document.getElementById("txtamt4").value = amt5.toFixed(2);
    /* End of Lucky Lott 5 Chrome*/
    
     /* Lucky Lott 6 Chrome*/
    var price6 = 0.55
    var t50 = document.getElementById("txt50").value 
    var t51 = document.getElementById("txt51").value 
    var t52 = document.getElementById("txt52").value 
    var t53 = document.getElementById("txt53").value 
    var t54 = document.getElementById("txt54").value 
    var t55 = document.getElementById("txt55").value 
    var t56 = document.getElementById("txt56").value 
    var t57 = document.getElementById("txt57").value 
    var t58 = document.getElementById("txt58").value    
    var t59 = document.getElementById("txt59").value 
    
    if (t50.length == 0)
	{
	    t50=0
    }
	t50=t50.toString()
	if (t51.length == 0)
	{
	    t51=0
    }
	t51=t51.toString()
	if (t52.length == 0)
	{
	    t52=0
    }
	t52=t52.toString()
	if (t53.length == 0)
	{
	    t53=0
    }
	t53=t53.toString()
	if (t54.length == 0)
	{
	    t54=0
    }
	t54=t54.toString()
	if (t55.length == 0)
	{
	    t55=0
    }
	t55=t55.toString()
	if (t56.length == 0)
	{
	    t56=0
    }
	t56=t56.toString()
	if (t57.length == 0)
	{
	    t57=0
    }
	t57=t57.toString()
	if (t58.length == 0)
	{
	    t58=0
    }
	t58=t58.toString()
	if (t59.length == 0)
	{
	    t59=0
    }
	t59=t59.toString()
	
	var qty6 =parseFloat(t50) + parseFloat(t51) + parseFloat(t52) + parseFloat(t53) + parseFloat(t54) + parseFloat(t55) + parseFloat(t56) + parseFloat(t57) + parseFloat(t58) + parseFloat(t59)     
    var amt6 =qty6 * price6 * 60    
    document.getElementById("txtamt5").value = amt6.toFixed(2);
    /* End of Lucky Lott 6 Chrome*/
    
     /* Lucky Lott 7 Chrome*/
    var price7 = 0.55
    var t60 = document.getElementById("txt60").value 
    var t61 = document.getElementById("txt61").value 
    var t62 = document.getElementById("txt62").value 
    var t63 = document.getElementById("txt63").value 
    var t64 = document.getElementById("txt64").value 
    var t65 = document.getElementById("txt65").value 
    var t66 = document.getElementById("txt66").value 
    var t67 = document.getElementById("txt67").value 
    var t68 = document.getElementById("txt68").value    
    var t69 = document.getElementById("txt69").value 
    
    if (t60.length == 0)
	{
	    t60=0
    }
	t60=t60.toString()
	if (t61.length == 0)
	{
	    t61=0
    }
	t61=t61.toString()
	if (t62.length == 0)
	{
	    t62=0
    }
	t62=t62.toString()
	if (t63.length == 0)
	{
	    t63=0
    }
	t63=t63.toString()
	if (t64.length == 0)
	{
	    t64=0
    }
	t64=t64.toString()
	if (t65.length == 0)
	{
	    t65=0
    }
	t65=t65.toString()
	if (t66.length == 0)
	{
	    t66=0
    }
	t66=t66.toString()
	if (t67.length == 0)
	{
	    t67=0
    }
	t67=t67.toString()
	if (t68.length == 0)
	{
	    t68=0
    }
	t68=t68.toString()
	if (t69.length == 0)
	{
	    t69=0
    }
	t69=t69.toString()
	
	var qty7 =parseFloat(t60) + parseFloat(t61) + parseFloat(t62) + parseFloat(t63) + parseFloat(t64) + parseFloat(t65) + parseFloat(t66) + parseFloat(t67) + parseFloat(t68) + parseFloat(t69)     
    var amt7 =qty7 * price7 * 100    
    document.getElementById("txtamt6").value = amt7.toFixed(2);
    /* End of Lucky Lott 7 Chrome*/
    
    /* Lucky Lott 8 Chrome*/
    var price8 = 0.55
    var t70 = document.getElementById("txt70").value 
    var t71 = document.getElementById("txt71").value 
    var t72 = document.getElementById("txt72").value 
    var t73 = document.getElementById("txt73").value 
    var t74 = document.getElementById("txt74").value 
    var t75 = document.getElementById("txt75").value 
    var t76 = document.getElementById("txt76").value 
    var t77 = document.getElementById("txt77").value 
    var t78 = document.getElementById("txt78").value    
    var t79 = document.getElementById("txt79").value 
    
    if (t70.length == 0)
	{
	    t70=0
    }
	t70=t70.toString()
	if (t71.length == 0)
	{
	    t71=0
    }
	t71=t71.toString()
	if (t72.length == 0)
	{
	    t72=0
    }
	t72=t72.toString()
	if (t73.length == 0)
	{
	    t73=0
    }
	t73=t73.toString()
	if (t74.length == 0)
	{
	    t74=0
    }
	t74=t74.toString()
	if (t75.length == 0)
	{
	    t75=0
    }
	t75=t75.toString()
	if (t76.length == 0)
	{
	    t76=0
    }
	t76=t76.toString()
	if (t77.length == 0)
	{
	    t77=0
    }
	t77=t77.toString()
	if (t78.length == 0)
	{
	    t78=0
    }
	t78=t78.toString()
	if (t79.length == 0)
	{
	    t79=0
    }
	t79=t79.toString()
	
	var qty8 =parseFloat(t70) + parseFloat(t71) + parseFloat(t72) + parseFloat(t73) + parseFloat(t74) + parseFloat(t75) + parseFloat(t76) + parseFloat(t77) + parseFloat(t78) + parseFloat(t79)     
    var amt8 =qty8 * price8 * 200    
    document.getElementById("txtamt7").value = amt8.toFixed(2);
    /* End of Lucky Lott 8 Chrome*/
    
    /* Lucky Lott 9 Chrome*/
    var price9 = 0.55
    var t80 = document.getElementById("txt80").value 
    var t81 = document.getElementById("txt81").value 
    var t82 = document.getElementById("txt82").value 
    var t83 = document.getElementById("txt83").value 
    var t84 = document.getElementById("txt84").value 
    var t85 = document.getElementById("txt85").value 
    var t86 = document.getElementById("txt86").value 
    var t87 = document.getElementById("txt87").value 
    var t88 = document.getElementById("txt88").value    
    var t89 = document.getElementById("txt89").value 
    
    if (t80.length == 0)
	{
	    t80=0
    }
	t80=t80.toString()
	if (t81.length == 0)
	{
	    t81=0
    }
	t81=t81.toString()
	if (t82.length == 0)
	{
	    t82=0
    }
	t82=t82.toString()
	if (t83.length == 0)
	{
	    t83=0
    }
	t83=t83.toString()
	if (t84.length == 0)
	{
	    t84=0
    }
	t84=t84.toString()
	if (t85.length == 0)
	{
	    t85=0
    }
	t85=t85.toString()
	if (t86.length == 0)
	{
	    t86=0
    }
	t86=t86.toString()
	if (t87.length == 0)
	{
	    t87=0
    }
	t87=t87.toString()
	if (t88.length == 0)
	{
	    t88=0
    }
	t88=t88.toString()
	if (t89.length == 0)
	{
	    t89=0
    }
	t89=t89.toString()
	
	var qty9 =parseFloat(t80) + parseFloat(t81) + parseFloat(t82) + parseFloat(t83) + parseFloat(t84) + parseFloat(t85) + parseFloat(t86) + parseFloat(t87) + parseFloat(t88) + parseFloat(t89)     
    var amt9 =qty9 * price9 * 400    
    document.getElementById("txtamt8").value = amt9.toFixed(2);
    /* End of Lucky Lott 9 Chrome*/
    
     /* Lucky Lott 10 Chrome*/
    var price10 = 0.55
    var t90 = document.getElementById("txt90").value 
    var t91 = document.getElementById("txt91").value 
    var t92 = document.getElementById("txt92").value 
    var t93 = document.getElementById("txt93").value 
    var t94 = document.getElementById("txt94").value 
    var t95 = document.getElementById("txt95").value 
    var t96 = document.getElementById("txt96").value 
    var t97 = document.getElementById("txt97").value 
    var t98 = document.getElementById("txt98").value     
    var t99 = document.getElementById("txt99").value 
    
    if (t90.length == 0)
	{
	    t90=0
    }
	t90=t90.toString()
	if (t91.length == 0)
	{
	    t91=0
    }
	t91=t91.toString()
	if (t92.length == 0)
	{
	    t92=0
    }
	t92=t92.toString()
	if (t93.length == 0)
	{
	    t93=0
    }
	t93=t93.toString()
	if (t94.length == 0)
	{
	    t94=0
    }
	t94=t94.toString()
	if (t95.length == 0)
	{
	    t95=0
    }
	t95=t95.toString()
	if (t96.length == 0)
	{
	    t96=0
    }
	t96=t96.toString()
	if (t97.length == 0)
	{
	    t97=0
    }
	t97=t97.toString()
	if (t98.length == 0)
	{
	    t98=0
    }
	t98=t98.toString()
	if (t99.length == 0)
	{
	    t99=0
    }
	t99=t99.toString()
	
	var qty10 =parseFloat(t90) + parseFloat(t91) + parseFloat(t92) + parseFloat(t93) + parseFloat(t94) + parseFloat(t95) + parseFloat(t96) + parseFloat(t97) + parseFloat(t98) + parseFloat(t99)     
    var amt10 =qty10 * price10 * 400    
    document.getElementById("txtamt9").value = amt10.toFixed(2);
    /* End of Lucky Lott 10 Chrome*/
    
     /* Lucky Lott 11 Chrome*/
    var price11 = 0.55
    var t100 = document.getElementById("txt100").value 
    var t101 = document.getElementById("txt101").value 
    var t102 = document.getElementById("txt102").value 
    var t103 = document.getElementById("txt103").value 
    var t104 = document.getElementById("txt104").value 
    var t105 = document.getElementById("txt105").value 
    var t106 = document.getElementById("txt106").value 
    var t107 = document.getElementById("txt107").value 
    var t108 = document.getElementById("txt108").value    
    var t109 = document.getElementById("txt109").value 
    
    if (t100.length == 0)
	{
	    t100=0
    }
	t100=t100.toString()
	if (t101.length == 0)
	{
	    t101=0
    }
	t101=t101.toString()
	if (t102.length == 0)
	{
	    t102=0
    }
	t102=t102.toString()
	if (t103.length == 0)
	{
	    t103=0
    }
	t103=t103.toString()
	if (t104.length == 0)
	{
	    t104=0
    }
	t104=t104.toString()
	if (t105.length == 0)
	{
	    t105=0
    }
	t105=t105.toString()
	if (t106.length == 0)
	{
	    t106=0
    }
	t106=t106.toString()
	if (t107.length == 0)
	{
	    t107=0
    }
	t107=t107.toString()
	if (t108.length == 0)
	{
	    t108=0
    }
	t108=t108.toString()
	if (t109.length == 0)
	{
	    t109=0
    }
	t109=t109.toString()	
	var qty11 =parseFloat(t100) + parseFloat(t101) + parseFloat(t102) + parseFloat(t103) + parseFloat(t104) + parseFloat(t105) + parseFloat(t106) + parseFloat(t107) + parseFloat(t108) + parseFloat(t109)     
    var amt11 =qty11 * price11 * 1000    
    document.getElementById("txtamt10").value = amt11.toFixed(2);
    /* End of Lucky Lott 11 Chrome*/
    
     /* Lucky Lott 12 Chrome*/
    var price12 = 0.55
    var t110 = document.getElementById("txt110").value 
    var t111 = document.getElementById("txt111").value 
    var t112 = document.getElementById("txt112").value 
    var t113 = document.getElementById("txt113").value 
    var t114 = document.getElementById("txt114").value 
    var t115 = document.getElementById("txt115").value 
    var t116 = document.getElementById("txt116").value 
    var t117 = document.getElementById("txt117").value 
    var t118 = document.getElementById("txt118").value     
    var t119 = document.getElementById("txt119").value 
    
    if (t110.length == 0)
	{
	    t110=0
    }
	t110=t110.toString()
	if (t111.length == 0)
	{
	    t111=0
    }
	t111=t111.toString()
	if (t112.length == 0)
	{
	    t112=0
    }
	t112=t112.toString()
	if (t113.length == 0)
	{
	    t113=0
    }
	t113=t113.toString()
	if (t114.length == 0)
	{
	    t114=0
    }
	t114=t114.toString()
	if (t115.length == 0)
	{
	    t115=0
    }
	t115=t115.toString()
	if (t116.length == 0)
	{
	    t116=0
    }
	t116=t116.toString()
	if (t117.length == 0)
	{
	    t117=0
    }
	t117=t117.toString()
	if (t118.length == 0)
	{
	    t118=0
    }
	t118=t118.toString()
	if (t119.length == 0)
	{
	    t119=0
    }
	t119=t119.toString()	
	var qty12 =parseFloat(t110) + parseFloat(t111) + parseFloat(t112) + parseFloat(t113) + parseFloat(t114) + parseFloat(t115) + parseFloat(t116) + parseFloat(t117) + parseFloat(t118) + parseFloat(t119)     
    var amt12 =qty12 * price12 * 1000    
    document.getElementById("txtamt11").value = amt12.toFixed(2);
    /* End of Lucky Lott 12 Chrome*/
    
    /*Total Price Calculation*/
    var A0 = document.getElementById("txtamt0").value
    var A1 = document.getElementById("txtamt1").value
    var A2 = document.getElementById("txtamt2").value
    var A3 = document.getElementById("txtamt3").value
    var A4 = document.getElementById("txtamt4").value
    var A5 = document.getElementById("txtamt5").value
    var A6 = document.getElementById("txtamt6").value    
    var A7 = document.getElementById("txtamt7").value 
    var A8 = document.getElementById("txtamt8").value 
    var A9 = document.getElementById("txtamt9").value 
    var A10 = document.getElementById("txtamt10").value 
    var A11 = document.getElementById("txtamt11").value 
    
    if (A0.length == 0)
	{
	    A0=0
    }
	A0=A0.toString()
	if (A1.length == 0)
	{
	    A1=0
    }
	A1=A1.toString()
	if (A2.length == 0)
	{
	    A2=0
    }
	A2=A2.toString()
	if (A3.length == 0)
	{
	    A3=0
    }
	A3=A3.toString()
	if (A4.length == 0)
	{
	    A4=0
    }
	A4=A4.toString()
	if (A5.length == 0)
	{
	    A5=0
    }
	A5=A5.toString()
	if (A6.length == 0)
	{
	    A6=0
    }
	A6=A6.toString()	
	if (A7.length == 0)
	{
	    A7=0
    }
	A7=A7.toString()		
	if (A8.length == 0)
	{
	    A8=0
    }
	A8=A8.toString()
	if (A9.length == 0)
	{
	    A9=0
    }
	A9=A9.toString()
	if (A10.length == 0)
	{
	    A10=0
    }
	A10=A10.toString()	
	if (A11.length == 0)
	{
	    A11=0
    }
	A11=A11.toString()	
	var totalQty =parseFloat(A0) + parseFloat(A1) + parseFloat(A2) + parseFloat(A3) + parseFloat(A4) + parseFloat(A5) + parseFloat(A6)+ parseFloat(A7) + parseFloat(A8) + parseFloat(A9) + parseFloat(A10) + parseFloat(A11)
    document.getElementById("txtfinalamt").value = totalQty.toFixed(2) * document.getElementById("nd").value;   
	document.getElementById("TotalAmt").value = totalQty.toFixed(2);
	
//    alert("Your Total Amt : "+totalQty.toFixed(2));

    /*End of Price Calculation*/
}

function GetAllValues()
{
   if (document.forms.form1.accountno.value == "")
   {
        alert("Enter Cash Card Number.");
        document.forms.form1.accountno
        return false;
   }
   else if (document.forms.form1.password.value == "")
   {
        alert("Enter Password.");
        return false;
   }   
   for(var i=0;i<12;i++)
   {
        for(var j=0;j<10;j++)
        {
            if(document.getElementById("txt"+i+j).value == 0)
                document.getElementById("txt"+i+j).value = "";
        }
   }
   var counter=0;
   for(var i=0;i<12;i++)
   {
        for(var j=0;j<10;j++)
        {
            if(document.getElementById("txt"+i+j).value == "" || document.getElementById("txt"+i+j).value == " ")
            {
                counter++;                
            }
        }
   }
   if (counter == 70)
   {    
    alert('Please play atleast one game to continue.');
    document.getElementById("txt00").focus();
    return false;
   }
   
   var Val="";
   var Output="";
   var drawid="";
   /*Game Ids HardCoded for testing*/
   var GameId=new Array()
    GameId[0]="203"
    GameId[1]="204"
    GameId[2]="205"
    GameId[3]="206"
    GameId[4]="207"
    GameId[5]="208"
    GameId[6]="209"
    GameId[7]="210"
    GameId[8]="211"
    GameId[9]="212"
    GameId[10]="213"
    GameId[11]="214"
    /*End of Game Ids*/    
   for(var i=0;i<12;i++)
   {
        for(var j=0;j<10;j++)
        {
            Val = document.getElementById("txt"+i+j).value;
            if (Val != "")
            {
             if(GameId[i]=="205")
            {
                Val=Val*2;
            }
             if(GameId[i]=="206")
            {
                Val=Val*2;
            }
            if(GameId[i]=="207")
            {
                Val=Val*4;
            }
            if(GameId[i]=="208")
            {
            
                Val=Val*6;
            }
            if(GameId[i]=="209")
            {
             
                Val=Val*10;
            }
            if(GameId[i]=="210")
            {
             
               Val=Val*20;
            }
            if(GameId[i]=="211")
            {
             
               Val=Val*40;
            }
            if(GameId[i]=="212")
            {
             
               Val=Val*40;
            }
            if(GameId[i]=="213")
            {
             
               Val=Val*100;
               
            }
            if(GameId[i]=="214")
            {
             
               Val=Val*100;
            }
                if (Output != "")
                {
                    Output = Output + "|";
                }
                drawid =  document.getElementById("txtdrawid").value;                                
                Output = Output + GameId[i] + "," + j + "," + Val + "," + parseInt(drawid) + ","  + 0;
                document.getElementById("Submit1").style.display = "none"; 
                //alert("Output: " + Output);
                //Output = Output + GameId[i] + "," + j + "," + Val + "," + 1 + ","  + 0;
            }
        }
   }          
   
   if (Output != "")
   {
        //alert("output " + Output);
        document.forms.form1.Output.value = Output;        
        document.getElementById("Submit1").disabled = true; 
        document.form1.action = "LuckylottTicketDetail.aspx";
        document.form1.submit();
   }           
}

function ChangeGameName()
{
    for(i=1; i<=12; i++)
    {        
            document.getElementById("lbllott"+i).innerHTML = document.getElementById("ddllevelId").value;
    }    
}

function selectedtime()
{
    var i=0;
    while ((document.form1.ddllevelId.options[i].value != document.getElementById("ddllevelId").value) && (i < document.form1.ddllevelId.options.length))
    {
    i++;
    }
        if (i < document.form1.ddllevelId.options.length)
        {
            if (i == 0 )
	        {
		     document.getElementById("txtdrawid").value='0';   
	        }
	        else
	        {
		     document.getElementById("txtdrawid").value=document.form1.ddllevelId.options[i].value;   
	        }
	        //alert(document.getElementById("txtdrawid").value);
        }
        if (i != 0)
        {
	     document.getElementById("nd").value=1;
         document.form1.ddlnoofdraw.disabled = true;
         document.form1.ddlnoofdraw.value=1;   
         
         
         var price1 = 0.55
    var t00 = document.getElementById("txt00").value
    var t01 = document.getElementById("txt01").value
    var t02 = document.getElementById("txt02").value
    var t03 = document.getElementById("txt03").value
    var t04 = document.getElementById("txt04").value
    var t05 = document.getElementById("txt05").value
    var t06 = document.getElementById("txt06").value
    var t07 = document.getElementById("txt07").value
    var t08 = document.getElementById("txt08").value   
    var t09 = document.getElementById("txt09").value
    
    if (t00.length == 0)
	{
	    t00=0
    }
	t00=t00.toString()
	if (t01.length == 0)
	{
	    t01=0
    }
	t01=t01.toString()
	if (t02.length == 0)
	{
	    t02=0
    }
	t02=t02.toString()
	if (t03.length == 0)
	{
	    t03=0
    }
	t03=t03.toString()
	if (t04.length == 0)
	{
	    t04=0
    }
	t04=t04.toString()
	if (t05.length == 0)
	{
	    t05=0
    }
	t05=t05.toString()
	if (t06.length == 0)
	{
	    t06=0
    }
	t06=t06.toString()
	if (t07.length == 0)
	{
	    t07=0
    }
	t07=t07.toString()
	if (t08.length == 0)
	{
	    t08=0
    }
	t08=t08.toString()
	if (t09.length == 0)
	{
	    t09=0
    }
	t09=t09.toString()
	
	var qty1 =parseFloat(t00) + parseFloat(t01) + parseFloat(t02) + parseFloat(t03) + parseFloat(t04) + parseFloat(t05) + parseFloat(t06) + parseFloat(t07) + parseFloat(t08) + parseFloat(t09)     
	
    var amt1 =qty1 * price1 * 10
    document.getElementById("txtamt0").value = amt1.toFixed(2);
    
    
    var price2 = 0.55
    var t10 = document.getElementById("txt10").value
    var t11 = document.getElementById("txt11").value
    var t12 = document.getElementById("txt12").value
    var t13 = document.getElementById("txt13").value
    var t14 = document.getElementById("txt14").value
    var t15 = document.getElementById("txt15").value
    var t16 = document.getElementById("txt16").value
    var t17 = document.getElementById("txt17").value
    var t18 = document.getElementById("txt18").value    
    var t19 = document.getElementById("txt19").value
    
    if (t10.length == 0)
	{
	    t10=0
    }
	t10=t10.toString()
	if (t11.length == 0)
	{
	    t11=0
    }
	t11=t11.toString()
	if (t12.length == 0)
	{
	    t12=0
    }
	t12=t12.toString()
	if (t13.length == 0)
	{
	    t13=0
    }
	t13=t13.toString()
	if (t14.length == 0)
	{
	    t14=0
    }
	t14=t14.toString()
	if (t15.length == 0)
	{
	    t15=0
    }
	t15=t15.toString()
	if (t16.length == 0)
	{
	    t16=0
    }
	t16=t16.toString()
	if (t17.length == 0)
	{
	    t17=0
    }
	t17=t17.toString()
	if (t18.length == 0)
	{
	    t18=0
    }
	t18=t18.toString()
	if (t19.length == 0)
	{
	    t19=0
    }
	t19=t19.toString()
	
	var qty2 =parseFloat(t10) + parseFloat(t11) + parseFloat(t12) + parseFloat(t13) + parseFloat(t14) + parseFloat(t15) + parseFloat(t16) + parseFloat(t17) + parseFloat(t18) + parseFloat(t19)     
    var amt2 =qty2 * price2 * 10    
    document.getElementById("txtamt1").value = amt2.toFixed(2);
    /* End of Lucky Lott 2 Chrome*/
    
     /* Lucky Lott 3 Chrome*/
    var price3 = 0.55
    var t20 = document.getElementById("txt20").value
    var t21 = document.getElementById("txt21").value
    var t22 = document.getElementById("txt22").value
    var t23 = document.getElementById("txt23").value
    var t24 = document.getElementById("txt24").value
    var t25 = document.getElementById("txt25").value
    var t26 = document.getElementById("txt26").value
    var t27 = document.getElementById("txt27").value
    var t28 = document.getElementById("txt28").value    
    var t29 = document.getElementById("txt29").value
    
    if (t20.length == 0)
	{
	    t20=0
    }
	t20=t20.toString()
	if (t21.length == 0)
	{
	    t21=0
    }
	t21=t21.toString()
	if (t22.length == 0)
	{
	    t22=0
    }
	t22=t22.toString()
	if (t23.length == 0)
	{
	    t23=0
    }
	t23=t23.toString()
	if (t24.length == 0)
	{
	    t24=0
    }
	t24=t24.toString()
	if (t25.length == 0)
	{
	    t25=0
    }
	t25=t25.toString()
	if (t26.length == 0)
	{
	    t26=0
    }
	t26=t26.toString()
	if (t27.length == 0)
	{
	    t27=0
    }
	t27=t27.toString()
	if (t28.length == 0)
	{
	    t28=0
    }
	t28=t28.toString()
	if (t29.length == 0)
	{
	    t29=0
    }
	t29=t29.toString()
	
	var qty3 =parseFloat(t20) + parseFloat(t21) + parseFloat(t22) + parseFloat(t23) + parseFloat(t24) + parseFloat(t25) + parseFloat(t26) + parseFloat(t27) + parseFloat(t28) + parseFloat(t29)     
    var amt3 =qty3 * price3 * 20    
    document.getElementById("txtamt2").value = amt3.toFixed(2);
    /* End of Lucky Lott 3 Chrome*/
    
     /* Lucky Lott 4 Chrome*/
    var price4 = 0.55
    var t30 = document.getElementById("txt30").value
    var t31 = document.getElementById("txt31").value
    var t32 = document.getElementById("txt32").value
    var t33 = document.getElementById("txt33").value
    var t34 = document.getElementById("txt34").value
    var t35 = document.getElementById("txt35").value
    var t36 = document.getElementById("txt36").value
    var t37 = document.getElementById("txt37").value
    var t38 = document.getElementById("txt38").value   
    var t39 = document.getElementById("txt39").value
    
    if (t30.length == 0)
	{
	    t30=0
    }
	t30=t30.toString()
	if (t31.length == 0)
	{
	    t31=0
    }
	t31=t31.toString()
	if (t32.length == 0)
	{
	    t32=0
    }
	t32=t32.toString()
	if (t33.length == 0)
	{
	    t33=0
    }
	t33=t33.toString()
	if (t34.length == 0)
	{
	    t34=0
    }
	t34=t34.toString()
	if (t35.length == 0)
	{
	    t35=0
    }
	t35=t35.toString()
	if (t36.length == 0)
	{
	    t36=0
    }
	t36=t36.toString()
	if (t37.length == 0)
	{
	    t37=0
    }
	t37=t37.toString()
	if (t38.length == 0)
	{
	    t38=0
    }
	t38=t38.toString()
	if (t39.length == 0)
	{
	    t39=0
    }
	t39=t39.toString()
	
	var qty4 =parseFloat(t30) + parseFloat(t31) + parseFloat(t32) + parseFloat(t33) + parseFloat(t34) + parseFloat(t35) + parseFloat(t36) + parseFloat(t37) + parseFloat(t38) + parseFloat(t39)     
    var amt4 =qty4 * price4 * 20    
    document.getElementById("txtamt3").value = amt4.toFixed(2);
    /* End of Lucky Lott 4 Chrome*/
    
     /* Lucky Lott 5 Chrome*/
    var price5 = 0.55
    var t40 = document.getElementById("txt40").value
    var t41 = document.getElementById("txt41").value
    var t42 = document.getElementById("txt42").value
    var t43 = document.getElementById("txt43").value
    var t44 = document.getElementById("txt44").value
    var t45 = document.getElementById("txt45").value
    var t46 = document.getElementById("txt46").value
    var t47 = document.getElementById("txt47").value
    var t48 = document.getElementById("txt48").value    
    var t49 = document.getElementById("txt49").value
    
    if (t40.length == 0)
	{
	    t40=0
    }
	t40=t40.toString()
	if (t41.length == 0)
	{
	    t41=0
    }
	t41=t41.toString()
	if (t42.length == 0)
	{
	    t42=0
    }
	t42=t42.toString()
	if (t43.length == 0)
	{
	    t43=0
    }
	t43=t43.toString()
	if (t44.length == 0)
	{
	    t44=0
    }
	t44=t44.toString()
	if (t45.length == 0)
	{
	    t45=0
    }
	t45=t45.toString()
	if (t46.length == 0)
	{
	    t46=0
    }
	t46=t46.toString()
	if (t47.length == 0)
	{
	    t47=0
    }
	t47=t47.toString()
	if (t48.length == 0)
	{
	    t48=0
    }
	t48=t48.toString()
	if (t49.length == 0)
	{
	    t49=0
    }
	t49=t49.toString()
	
	var qty5 =parseFloat(t40) + parseFloat(t41) + parseFloat(t42) + parseFloat(t43) + parseFloat(t44) + parseFloat(t45) + parseFloat(t46) + parseFloat(t47) + parseFloat(t48) + parseFloat(t49)     
    var amt5 =qty5 * price5 * 40    
    document.getElementById("txtamt4").value = amt5.toFixed(2);
    /* End of Lucky Lott 5 Chrome*/
    
     /* Lucky Lott 6 Chrome*/
    var price6 = 0.55
    var t50 = document.getElementById("txt50").value
    var t51 = document.getElementById("txt51").value
    var t52 = document.getElementById("txt52").value
    var t53 = document.getElementById("txt53").value
    var t54 = document.getElementById("txt54").value
    var t55 = document.getElementById("txt55").value
    var t56 = document.getElementById("txt56").value
    var t57 = document.getElementById("txt57").value
    var t58 = document.getElementById("txt58").value    
    var t59 = document.getElementById("txt59").value
    
    if (t50.length == 0)
	{
	    t50=0
    }
	t50=t50.toString()
	if (t51.length == 0)
	{
	    t51=0
    }
	t51=t51.toString()
	if (t52.length == 0)
	{
	    t52=0
    }
	t52=t52.toString()
	if (t53.length == 0)
	{
	    t53=0
    }
	t53=t53.toString()
	if (t54.length == 0)
	{
	    t54=0
    }
	t54=t54.toString()
	if (t55.length == 0)
	{
	    t55=0
    }
	t55=t55.toString()
	if (t56.length == 0)
	{
	    t56=0
    }
	t56=t56.toString()
	if (t57.length == 0)
	{
	    t57=0
    }
	t57=t57.toString()
	if (t58.length == 0)
	{
	    t58=0
    }
	t58=t58.toString()
	if (t59.length == 0)
	{
	    t59=0
    }
	t59=t59.toString()
	
	var qty6 =parseFloat(t50) + parseFloat(t51) + parseFloat(t52) + parseFloat(t53) + parseFloat(t54) + parseFloat(t55) + parseFloat(t56) + parseFloat(t57) + parseFloat(t58) + parseFloat(t59)     
    var amt6 =qty6 * price6 * 60    
    document.getElementById("txtamt5").value = amt6.toFixed(2);
    /* End of Lucky Lott 6 Chrome*/
    
     /* Lucky Lott 7 Chrome*/
    var price7 = 0.55
    var t60 = document.getElementById("txt60").value
    var t61 = document.getElementById("txt61").value
    var t62 = document.getElementById("txt62").value
    var t63 = document.getElementById("txt63").value
    var t64 = document.getElementById("txt64").value
    var t65 = document.getElementById("txt65").value
    var t66 = document.getElementById("txt66").value
    var t67 = document.getElementById("txt67").value
    var t68 = document.getElementById("txt68").value    
    var t69 = document.getElementById("txt69").value
    
    if (t60.length == 0)
	{
	    t60=0
    }
	t60=t60.toString()
	if (t61.length == 0)
	{
	    t61=0
    }
	t61=t61.toString()
	if (t62.length == 0)
	{
	    t62=0
    }
	t62=t62.toString()
	if (t63.length == 0)
	{
	    t63=0
    }
	t63=t63.toString()
	if (t64.length == 0)
	{
	    t64=0
    }
	t64=t64.toString()
	if (t65.length == 0)
	{
	    t65=0
    }
	t65=t65.toString()
	if (t66.length == 0)
	{
	    t66=0
    }
	t66=t66.toString()
	if (t67.length == 0)
	{
	    t67=0
    }
	t67=t67.toString()
	if (t68.length == 0)
	{
	    t68=0
    }
	t68=t68.toString()
	if (t69.length == 0)
	{
	    t69=0
    }
	t69=t69.toString()
	
	var qty7 =parseFloat(t60) + parseFloat(t61) + parseFloat(t62) + parseFloat(t63) + parseFloat(t64) + parseFloat(t65) + parseFloat(t66) + parseFloat(t67) + parseFloat(t68) + parseFloat(t69)     
    var amt7 =qty7 * price7 * 100    
    document.getElementById("txtamt6").value = amt7.toFixed(2);
    /* End of Lucky Lott 7 Chrome*/
    
    /* Lucky Lott 8 Chrome*/
    var price8 = 0.55
    var t70 = document.getElementById("txt70").value
    var t71 = document.getElementById("txt71").value
    var t72 = document.getElementById("txt72").value
    var t73 = document.getElementById("txt73").value
    var t74 = document.getElementById("txt74").value
    var t75 = document.getElementById("txt75").value
    var t76 = document.getElementById("txt76").value
    var t77 = document.getElementById("txt77").value
    var t78 = document.getElementById("txt78").value    
    var t79 = document.getElementById("txt79").value
    
    if (t70.length == 0)
	{
	    t70=0
    }
	t70=t70.toString()
	if (t71.length == 0)
	{
	    t71=0
    }
	t71=t71.toString()
	if (t72.length == 0)
	{
	    t72=0
    }
	t72=t72.toString()
	if (t73.length == 0)
	{
	    t73=0
    }
	t73=t73.toString()
	if (t74.length == 0)
	{
	    t74=0
    }
	t74=t74.toString()
	if (t75.length == 0)
	{
	    t75=0
    }
	t75=t75.toString()
	if (t76.length == 0)
	{
	    t76=0
    }
	t76=t76.toString()
	if (t77.length == 0)
	{
	    t77=0
    }
	t77=t77.toString()
	if (t78.length == 0)
	{
	    t78=0
    }
	t78=t78.toString()
	if (t79.length == 0)
	{
	    t79=0
    }
	t79=t79.toString()
	
	var qty8 =parseFloat(t70) + parseFloat(t71) + parseFloat(t72) + parseFloat(t73) + parseFloat(t74) + parseFloat(t75) + parseFloat(t76) + parseFloat(t77) + parseFloat(t78) + parseFloat(t79)     
    var amt8 =qty8 * price8 * 200    
    document.getElementById("txtamt7").value = amt8.toFixed(2);
    /* End of Lucky Lott 8 Chrome*/
    
    /* Lucky Lott 9 Chrome*/
    var price9 = 0.55
    var t80 = document.getElementById("txt80").value
    var t81 = document.getElementById("txt81").value
    var t82 = document.getElementById("txt82").value
    var t83 = document.getElementById("txt83").value
    var t84 = document.getElementById("txt84").value
    var t85 = document.getElementById("txt85").value
    var t86 = document.getElementById("txt86").value
    var t87 = document.getElementById("txt87").value
    var t88 = document.getElementById("txt88").value   
    var t89 = document.getElementById("txt89").value
    
    if (t80.length == 0)
	{
	    t80=0
    }
	t80=t80.toString()
	if (t81.length == 0)
	{
	    t81=0
    }
	t81=t81.toString()
	if (t82.length == 0)
	{
	    t82=0
    }
	t82=t82.toString()
	if (t83.length == 0)
	{
	    t83=0
    }
	t83=t83.toString()
	if (t84.length == 0)
	{
	    t84=0
    }
	t84=t84.toString()
	if (t85.length == 0)
	{
	    t85=0
    }
	t85=t85.toString()
	if (t86.length == 0)
	{
	    t86=0
    }
	t86=t86.toString()
	if (t87.length == 0)
	{
	    t87=0
    }
	t87=t87.toString()
	if (t88.length == 0)
	{
	    t88=0
    }
	t88=t88.toString()
	if (t89.length == 0)
	{
	    t89=0
    }
	t89=t89.toString()
	
	var qty9 =parseFloat(t80) + parseFloat(t81) + parseFloat(t82) + parseFloat(t83) + parseFloat(t84) + parseFloat(t85) + parseFloat(t86) + parseFloat(t87) + parseFloat(t88) + parseFloat(t89)     
    var amt9 =qty9 * price9 * 400    
    document.getElementById("txtamt8").value = amt9.toFixed(2);
    /* End of Lucky Lott 9 Chrome*/
    
     /* Lucky Lott 10 Chrome*/
    var price10 = 0.55
    var t90 = document.getElementById("txt90").value
    var t91 = document.getElementById("txt91").value
    var t92 = document.getElementById("txt92").value
    var t93 = document.getElementById("txt93").value
    var t94 = document.getElementById("txt94").value
    var t95 = document.getElementById("txt95").value
    var t96 = document.getElementById("txt96").value
    var t97 = document.getElementById("txt97").value
    var t98 = document.getElementById("txt98").value    
    var t99 = document.getElementById("txt99").value
    
    if (t90.length == 0)
	{
	    t90=0
    }
	t90=t90.toString()
	if (t91.length == 0)
	{
	    t91=0
    }
	t91=t91.toString()
	if (t92.length == 0)
	{
	    t92=0
    }
	t92=t92.toString()
	if (t93.length == 0)
	{
	    t93=0
    }
	t93=t93.toString()
	if (t94.length == 0)
	{
	    t94=0
    }
	t94=t94.toString()
	if (t95.length == 0)
	{
	    t95=0
    }
	t95=t95.toString()
	if (t96.length == 0)
	{
	    t96=0
    }
	t96=t96.toString()
	if (t97.length == 0)
	{
	    t97=0
    }
	t97=t97.toString()
	if (t98.length == 0)
	{
	    t98=0
    }
	t98=t98.toString()
	if (t99.length == 0)
	{
	    t99=0
    }
	t99=t99.toString()
	
	var qty10 =parseFloat(t90) + parseFloat(t91) + parseFloat(t92) + parseFloat(t93) + parseFloat(t94) + parseFloat(t95) + parseFloat(t96) + parseFloat(t97) + parseFloat(t98) + parseFloat(t99)     
    var amt10 =qty10 * price10 * 400    
    document.getElementById("txtamt9").value = amt10.toFixed(2);
    /* End of Lucky Lott 10 Chrome*/
    
     /* Lucky Lott 11 Chrome*/
    var price11 = 0.55
    var t100 = document.getElementById("txt100").value
    var t101 = document.getElementById("txt101").value
    var t102 = document.getElementById("txt102").value
    var t103 = document.getElementById("txt103").value
    var t104 = document.getElementById("txt104").value
    var t105 = document.getElementById("txt105").value
    var t106 = document.getElementById("txt106").value
    var t107 = document.getElementById("txt107").value
    var t108 = document.getElementById("txt108").value    
    var t109 = document.getElementById("txt109").value
    
    if (t100.length == 0)
	{
	    t100=0
    }
	t100=t100.toString()
	if (t101.length == 0)
	{
	    t101=0
    }
	t101=t101.toString()
	if (t102.length == 0)
	{
	    t102=0
    }
	t102=t102.toString()
	if (t103.length == 0)
	{
	    t103=0
    }
	t103=t103.toString()
	if (t104.length == 0)
	{
	    t104=0
    }
	t104=t104.toString()
	if (t105.length == 0)
	{
	    t105=0
    }
	t105=t105.toString()
	if (t106.length == 0)
	{
	    t106=0
    }
	t106=t106.toString()
	if (t107.length == 0)
	{
	    t107=0
    }
	t107=t107.toString()
	if (t108.length == 0)
	{
	    t108=0
    }
	t108=t108.toString()
	if (t109.length == 0)
	{
	    t109=0
    }
	t109=t109.toString()	
	var qty11 =parseFloat(t100) + parseFloat(t101) + parseFloat(t102) + parseFloat(t103) + parseFloat(t104) + parseFloat(t105) + parseFloat(t106) + parseFloat(t107) + parseFloat(t108) + parseFloat(t109)     
    var amt11 =qty11 * price11 * 1000    
    document.getElementById("txtamt10").value = amt11.toFixed(2);
    /* End of Lucky Lott 11 Chrome*/
    
     /* Lucky Lott 12 Chrome*/
    var price12 =0.55
    var t110 = document.getElementById("txt110").value
    var t111 = document.getElementById("txt111").value
    var t112 = document.getElementById("txt112").value
    var t113 = document.getElementById("txt113").value
    var t114 = document.getElementById("txt114").value
    var t115 = document.getElementById("txt115").value
    var t116 = document.getElementById("txt116").value
    var t117 = document.getElementById("txt117").value
    var t118 = document.getElementById("txt118").value    
    var t119 = document.getElementById("txt119").value
    
    if (t110.length == 0)
	{
	    t110=0
    }
	t110=t110.toString()
	if (t111.length == 0)
	{
	    t111=0
    }
	t111=t111.toString()
	if (t112.length == 0)
	{
	    t112=0
    }
	t112=t112.toString()
	if (t113.length == 0)
	{
	    t113=0
    }
	t113=t113.toString()
	if (t114.length == 0)
	{
	    t114=0
    }
	t114=t114.toString()
	if (t115.length == 0)
	{
	    t115=0
    }
	t115=t115.toString()
	if (t116.length == 0)
	{
	    t116=0
    }
	t116=t116.toString()
	if (t117.length == 0)
	{
	    t117=0
    }
	t117=t117.toString()
	if (t118.length == 0)
	{
	    t118=0
    }
	t118=t118.toString()
	if (t119.length == 0)
	{
	    t119=0
    }
	t119=t119.toString()	
	var qty12 =parseFloat(t110) + parseFloat(t111) + parseFloat(t112) + parseFloat(t113) + parseFloat(t114) + parseFloat(t115) + parseFloat(t116) + parseFloat(t117) + parseFloat(t118) + parseFloat(t119)     
    var amt12 =qty12 * price12 * 1000    
    document.getElementById("txtamt11").value = amt12.toFixed(2);
         
         var A0 = document.getElementById("txtamt0").value
        var A1 = document.getElementById("txtamt1").value
        var A2 = document.getElementById("txtamt2").value
        var A3 = document.getElementById("txtamt3").value
        var A4 = document.getElementById("txtamt4").value
        var A5 = document.getElementById("txtamt5").value
        var A6 = document.getElementById("txtamt6").value    
        var A7 = document.getElementById("txtamt7").value 
        var A8 = document.getElementById("txtamt8").value 
        var A9 = document.getElementById("txtamt9").value 
        var A10 = document.getElementById("txtamt10").value 
        var A11 = document.getElementById("txtamt11").value 
        
        if (A0.length == 0)
        {
            A0=0
        }
        A0=A0.toString()
        if (A1.length == 0)
        {
            A1=0
        }
        A1=A1.toString()
        if (A2.length == 0)
        {
            A2=0
        }
        A2=A2.toString()
        if (A3.length == 0)
        {
            A3=0
        }
        A3=A3.toString()
        if (A4.length == 0)
        {
            A4=0
        }
        A4=A4.toString()
        if (A5.length == 0)
        {
            A5=0
        }
        A5=A5.toString()
        if (A6.length == 0)
        {
            A6=0
        }
        A6=A6.toString()	
        if (A7.length == 0)
        {
            A7=0
        }
        A7=A7.toString()		
        if (A8.length == 0)
        {
            A8=0
        }
        A8=A8.toString()
        if (A9.length == 0)
        {
            A9=0
        }
        A9=A9.toString()
        if (A10.length == 0)
        {
            A10=0
        }
        A10=A10.toString()	
        if (A11.length == 0)
        {
            A11=0
        }
        A11=A11.toString()	
                
         var totalQty =parseFloat(A0) + parseFloat(A1) + parseFloat(A2) + parseFloat(A3) + parseFloat(A4) + parseFloat(A5) + parseFloat(A6)+ parseFloat(A7) + parseFloat(A8) + parseFloat(A9) + parseFloat(A10) + parseFloat(A11)
         document.getElementById("txtfinalamt").value = totalQty.toFixed(2)* document.getElementById("ddlnoofdraw").value;     
        }
        else
        {
        document.form1.ddlnoofdraw.disabled = false; 
        }

} 
function noofdraw()
{
	
	 document.getElementById("nd").value= document.getElementById("ddlnoofdraw").value;
	 
	    	    
    var price1 = 0.55
    var t00 = document.getElementById("txt00").value 
    var t01 = document.getElementById("txt01").value 
    var t02 = document.getElementById("txt02").value 
    var t03 = document.getElementById("txt03").value 
    var t04 = document.getElementById("txt04").value 
    var t05 = document.getElementById("txt05").value 
    var t06 = document.getElementById("txt06").value
    var t07 = document.getElementById("txt07").value 
    var t08 = document.getElementById("txt08").value 
    var t09 = document.getElementById("txt09").value 
    
    if (t00.length == 0)
	{
	    t00=0
    }
	t00=t00.toString()
	if (t01.length == 0)
	{
	    t01=0
    }
	t01=t01.toString()
	if (t02.length == 0)
	{
	    t02=0
    }
	t02=t02.toString()
	if (t03.length == 0)
	{
	    t03=0
    }
	t03=t03.toString()
	if (t04.length == 0)
	{
	    t04=0
    }
	t04=t04.toString()
	if (t05.length == 0)
	{
	    t05=0
    }
	t05=t05.toString()
	if (t06.length == 0)
	{
	    t06=0
    }
	t06=t06.toString()
	if (t07.length == 0)
	{
	    t07=0
    }
	t07=t07.toString()
	if (t08.length == 0)
	{
	    t08=0
    }
	t08=t08.toString()
	if (t09.length == 0)
	{
	    t09=0
    }
	t09=t09.toString()
	
	var qty1 =parseFloat(t00) + parseFloat(t01) + parseFloat(t02) + parseFloat(t03) + parseFloat(t04) + parseFloat(t05) + parseFloat(t06) + parseFloat(t07) + parseFloat(t08) + parseFloat(t09)     
	
    var amt1 =qty1 * price1 * 10
    document.getElementById("txtamt0").value = amt1.toFixed(2);
    
    
    var price2 = 0.55
    var t10 = document.getElementById("txt10").value
    var t11 = document.getElementById("txt11").value
    var t12 = document.getElementById("txt12").value
    var t13 = document.getElementById("txt13").value
    var t14 = document.getElementById("txt14").value
    var t15 = document.getElementById("txt15").value
    var t16 = document.getElementById("txt16").value
    var t17 = document.getElementById("txt17").value
    var t18 = document.getElementById("txt18").value    
    var t19 = document.getElementById("txt19").value
    
    if (t10.length == 0)
	{
	    t10=0
    }
	t10=t10.toString()
	if (t11.length == 0)
	{
	    t11=0
    }
	t11=t11.toString()
	if (t12.length == 0)
	{
	    t12=0
    }
	t12=t12.toString()
	if (t13.length == 0)
	{
	    t13=0
    }
	t13=t13.toString()
	if (t14.length == 0)
	{
	    t14=0
    }
	t14=t14.toString()
	if (t15.length == 0)
	{
	    t15=0
    }
	t15=t15.toString()
	if (t16.length == 0)
	{
	    t16=0
    }
	t16=t16.toString()
	if (t17.length == 0)
	{
	    t17=0
    }
	t17=t17.toString()
	if (t18.length == 0)
	{
	    t18=0
    }
	t18=t18.toString()
	if (t19.length == 0)
	{
	    t19=0
    }
	t19=t19.toString()
	
	var qty2 =parseFloat(t10) + parseFloat(t11) + parseFloat(t12) + parseFloat(t13) + parseFloat(t14) + parseFloat(t15) + parseFloat(t16) + parseFloat(t17) + parseFloat(t18) + parseFloat(t19)     
    var amt2 =qty2 * price2 * 10    
    document.getElementById("txtamt1").value = amt2.toFixed(2);
    /* End of Lucky Lott 2 Chrome*/
    
     /* Lucky Lott 3 Chrome*/
    var price3 = 0.55
    var t20 = document.getElementById("txt20").value
    var t21 = document.getElementById("txt21").value
    var t22 = document.getElementById("txt22").value
    var t23 = document.getElementById("txt23").value
    var t24 = document.getElementById("txt24").value
    var t25 = document.getElementById("txt25").value
    var t26 = document.getElementById("txt26").value
    var t27 = document.getElementById("txt27").value
    var t28 = document.getElementById("txt28").value
    var t29 = document.getElementById("txt29").value
    
    if (t20.length == 0)
	{
	    t20=0
    }
	t20=t20.toString()
	if (t21.length == 0)
	{
	    t21=0
    }
	t21=t21.toString()
	if (t22.length == 0)
	{
	    t22=0
    }
	t22=t22.toString()
	if (t23.length == 0)
	{
	    t23=0
    }
	t23=t23.toString()
	if (t24.length == 0)
	{
	    t24=0
    }
	t24=t24.toString()
	if (t25.length == 0)
	{
	    t25=0
    }
	t25=t25.toString()
	if (t26.length == 0)
	{
	    t26=0
    }
	t26=t26.toString()
	if (t27.length == 0)
	{
	    t27=0
    }
	t27=t27.toString()
	if (t28.length == 0)
	{
	    t28=0
    }
	t28=t28.toString()
	if (t29.length == 0)
	{
	    t29=0
    }
	t29=t29.toString()
	
	var qty3 =parseFloat(t20) + parseFloat(t21) + parseFloat(t22) + parseFloat(t23) + parseFloat(t24) + parseFloat(t25) + parseFloat(t26) + parseFloat(t27) + parseFloat(t28) + parseFloat(t29)     
    var amt3 =qty3 * price3 * 20    
    document.getElementById("txtamt2").value = amt3.toFixed(2);
    /* End of Lucky Lott 3 Chrome*/
    
     /* Lucky Lott 4 Chrome*/
    var price4 = 0.55
    var t30 = document.getElementById("txt30").value
    var t31 = document.getElementById("txt31").value
    var t32 = document.getElementById("txt32").value
    var t33 = document.getElementById("txt33").value
    var t34 = document.getElementById("txt34").value
    var t35 = document.getElementById("txt35").value
    var t36 = document.getElementById("txt36").value
    var t37 = document.getElementById("txt37").value
    var t38 = document.getElementById("txt38").value
    var t39 = document.getElementById("txt39").value
    if (t30.length == 0)
	{
	    t30=0
    }
	t30=t30.toString()
	if (t31.length == 0)
	{
	    t31=0
    }
	t31=t31.toString()
	if (t32.length == 0)
	{
	    t32=0
    }
	t32=t32.toString()
	if (t33.length == 0)
	{
	    t33=0
    }
	t33=t33.toString()
	if (t34.length == 0)
	{
	    t34=0
    }
	t34=t34.toString()
	if (t35.length == 0)
	{
	    t35=0
    }
	t35=t35.toString()
	if (t36.length == 0)
	{
	    t36=0
    }
	t36=t36.toString()
	if (t37.length == 0)
	{
	    t37=0
    }
	t37=t37.toString()
	if (t38.length == 0)
	{
	    t38=0
    }
	t38=t38.toString()
	if (t39.length == 0)
	{
	    t39=0
    }
	t39=t39.toString()
	
	var qty4 =parseFloat(t30) + parseFloat(t31) + parseFloat(t32) + parseFloat(t33) + parseFloat(t34) + parseFloat(t35) + parseFloat(t36) + parseFloat(t37) + parseFloat(t38) + parseFloat(t39)     
    var amt4 =qty4 * price4 * 20    
    document.getElementById("txtamt3").value = amt4.toFixed(2);
    /* End of Lucky Lott 4 Chrome*/
    
     /* Lucky Lott 5 Chrome*/
    var price5 = 0.55
    var t40 = document.getElementById("txt40").value
    var t41 = document.getElementById("txt41").value
    var t42 = document.getElementById("txt42").value
    var t43 = document.getElementById("txt43").value
    var t44 = document.getElementById("txt44").value
    var t45 = document.getElementById("txt45").value
    var t46 = document.getElementById("txt46").value
    var t47 = document.getElementById("txt47").value
    var t48 = document.getElementById("txt48").value    
    var t49 = document.getElementById("txt49").value
    
    if (t40.length == 0)
	{
	    t40=0
    }
	t40=t40.toString()
	if (t41.length == 0)
	{
	    t41=0
    }
	t41=t41.toString()
	if (t42.length == 0)
	{
	    t42=0
    }
	t42=t42.toString()
	if (t43.length == 0)
	{
	    t43=0
    }
	t43=t43.toString()
	if (t44.length == 0)
	{
	    t44=0
    }
	t44=t44.toString()
	if (t45.length == 0)
	{
	    t45=0
    }
	t45=t45.toString()
	if (t46.length == 0)
	{
	    t46=0
    }
	t46=t46.toString()
	if (t47.length == 0)
	{
	    t47=0
    }
	t47=t47.toString()
	if (t48.length == 0)
	{
	    t48=0
    }
	t48=t48.toString()
	if (t49.length == 0)
	{
	    t49=0
    }
	t49=t49.toString()
	
	var qty5 =parseFloat(t40) + parseFloat(t41) + parseFloat(t42) + parseFloat(t43) + parseFloat(t44) + parseFloat(t45) + parseFloat(t46) + parseFloat(t47) + parseFloat(t48) + parseFloat(t49)     
    var amt5 =qty5 * price5 * 40    
    document.getElementById("txtamt4").value = amt5.toFixed(2);
    /* End of Lucky Lott 5 Chrome*/
    
     /* Lucky Lott 6 Chrome*/
    var price6 = 0.55
    var t50 = document.getElementById("txt50").value
    var t51 = document.getElementById("txt51").value
    var t52 = document.getElementById("txt52").value
    var t53 = document.getElementById("txt53").value
    var t54 = document.getElementById("txt54").value
    var t55 = document.getElementById("txt55").value
    var t56 = document.getElementById("txt56").value
    var t57 = document.getElementById("txt57").value
    var t58 = document.getElementById("txt58").value    
    var t59 = document.getElementById("txt59").value
    
    if (t50.length == 0)
	{
	    t50=0
    }
	t50=t50.toString()
	if (t51.length == 0)
	{
	    t51=0
    }
	t51=t51.toString()
	if (t52.length == 0)
	{
	    t52=0
    }
	t52=t52.toString()
	if (t53.length == 0)
	{
	    t53=0
    }
	t53=t53.toString()
	if (t54.length == 0)
	{
	    t54=0
    }
	t54=t54.toString()
	if (t55.length == 0)
	{
	    t55=0
    }
	t55=t55.toString()
	if (t56.length == 0)
	{
	    t56=0
    }
	t56=t56.toString()
	if (t57.length == 0)
	{
	    t57=0
    }
	t57=t57.toString()
	if (t58.length == 0)
	{
	    t58=0
    }
	t58=t58.toString()
	if (t59.length == 0)
	{
	    t59=0
    }
	t59=t59.toString()
	
	var qty6 =parseFloat(t50) + parseFloat(t51) + parseFloat(t52) + parseFloat(t53) + parseFloat(t54) + parseFloat(t55) + parseFloat(t56) + parseFloat(t57) + parseFloat(t58) + parseFloat(t59)     
    var amt6 =qty6 * price6 * 60    
    document.getElementById("txtamt5").value = amt6.toFixed(2);
    /* End of Lucky Lott 6 Chrome*/
    
     /* Lucky Lott 7 Chrome*/
    var price7 = 0.55
    var t60 = document.getElementById("txt60").value
    var t61 = document.getElementById("txt61").value
    var t62 = document.getElementById("txt62").value
    var t63 = document.getElementById("txt63").value
    var t64 = document.getElementById("txt64").value
    var t65 = document.getElementById("txt65").value
    var t66 = document.getElementById("txt66").value
    var t67 = document.getElementById("txt67").value
    var t68 = document.getElementById("txt68").value    
    var t69 = document.getElementById("txt69").value
    
    if (t60.length == 0)
	{
	    t60=0
    }
	t60=t60.toString()
	if (t61.length == 0)
	{
	    t61=0
    }
	t61=t61.toString()
	if (t62.length == 0)
	{
	    t62=0
    }
	t62=t62.toString()
	if (t63.length == 0)
	{
	    t63=0
    }
	t63=t63.toString()
	if (t64.length == 0)
	{
	    t64=0
    }
	t64=t64.toString()
	if (t65.length == 0)
	{
	    t65=0
    }
	t65=t65.toString()
	if (t66.length == 0)
	{
	    t66=0
    }
	t66=t66.toString()
	if (t67.length == 0)
	{
	    t67=0
    }
	t67=t67.toString()
	if (t68.length == 0)
	{
	    t68=0
    }
	t68=t68.toString()
	if (t69.length == 0)
	{
	    t69=0
    }
	t69=t69.toString()
	
	var qty7 =parseFloat(t60) + parseFloat(t61) + parseFloat(t62) + parseFloat(t63) + parseFloat(t64) + parseFloat(t65) + parseFloat(t66) + parseFloat(t67) + parseFloat(t68) + parseFloat(t69)     
    var amt7 =qty7 * price7 * 100    
    document.getElementById("txtamt6").value = amt7.toFixed(2);
    /* End of Lucky Lott 7 Chrome*/
    
    /* Lucky Lott 8 Chrome*/
    var price8 = 0.55
    var t70 = document.getElementById("txt70").value
    var t71 = document.getElementById("txt71").value
    var t72 = document.getElementById("txt72").value
    var t73 = document.getElementById("txt73").value
    var t74 = document.getElementById("txt74").value
    var t75 = document.getElementById("txt75").value
    var t76 = document.getElementById("txt76").value
    var t77 = document.getElementById("txt77").value
    var t78 = document.getElementById("txt78").value    
    var t79 = document.getElementById("txt79").value
    
    if (t70.length == 0)
	{
	    t70=0
    }
	t70=t70.toString()
	if (t71.length == 0)
	{
	    t71=0
    }
	t71=t71.toString()
	if (t72.length == 0)
	{
	    t72=0
    }
	t72=t72.toString()
	if (t73.length == 0)
	{
	    t73=0
    }
	t73=t73.toString()
	if (t74.length == 0)
	{
	    t74=0
    }
	t74=t74.toString()
	if (t75.length == 0)
	{
	    t75=0
    }
	t75=t75.toString()
	if (t76.length == 0)
	{
	    t76=0
    }
	t76=t76.toString()
	if (t77.length == 0)
	{
	    t77=0
    }
	t77=t77.toString()
	if (t78.length == 0)
	{
	    t78=0
    }
	t78=t78.toString()
	if (t79.length == 0)
	{
	    t79=0
    }
	t79=t79.toString()
	
	var qty8 =parseFloat(t70) + parseFloat(t71) + parseFloat(t72) + parseFloat(t73) + parseFloat(t74) + parseFloat(t75) + parseFloat(t76) + parseFloat(t77) + parseFloat(t78) + parseFloat(t79)     
    var amt8 =qty8 * price8 * 200    
    document.getElementById("txtamt7").value = amt8.toFixed(2);
    /* End of Lucky Lott 8 Chrome*/
    
    /* Lucky Lott 9 Chrome*/
    var price9 = 0.55
    var t80 = document.getElementById("txt80").value
    var t81 = document.getElementById("txt81").value
    var t82 = document.getElementById("txt82").value
    var t83 = document.getElementById("txt83").value
    var t84 = document.getElementById("txt84").value
    var t85 = document.getElementById("txt85").value
    var t86 = document.getElementById("txt86").value
    var t87 = document.getElementById("txt87").value
    var t88 = document.getElementById("txt88").value   
    var t89 = document.getElementById("txt89").value
    
    if (t80.length == 0)
	{
	    t80=0
    }
	t80=t80.toString()
	if (t81.length == 0)
	{
	    t81=0
    }
	t81=t81.toString()
	if (t82.length == 0)
	{
	    t82=0
    }
	t82=t82.toString()
	if (t83.length == 0)
	{
	    t83=0
    }
	t83=t83.toString()
	if (t84.length == 0)
	{
	    t84=0
    }
	t84=t84.toString()
	if (t85.length == 0)
	{
	    t85=0
    }
	t85=t85.toString()
	if (t86.length == 0)
	{
	    t86=0
    }
	t86=t86.toString()
	if (t87.length == 0)
	{
	    t87=0
    }
	t87=t87.toString()
	if (t88.length == 0)
	{
	    t88=0
    }
	t88=t88.toString()
	if (t89.length == 0)
	{
	    t89=0
    }
	t89=t89.toString()
	
	var qty9 =parseFloat(t80) + parseFloat(t81) + parseFloat(t82) + parseFloat(t83) + parseFloat(t84) + parseFloat(t85) + parseFloat(t86) + parseFloat(t87) + parseFloat(t88) + parseFloat(t89)     
    var amt9 =qty9 * price9 * 400    
    document.getElementById("txtamt8").value = amt9.toFixed(2);
    /* End of Lucky Lott 9 Chrome*/
    
     /* Lucky Lott 10 Chrome*/
    var price10 = 0.55
    var t90 = document.getElementById("txt90").value
    var t91 = document.getElementById("txt91").value
    var t92 = document.getElementById("txt92").value
    var t93 = document.getElementById("txt93").value
    var t94 = document.getElementById("txt94").value
    var t95 = document.getElementById("txt95").value
    var t96 = document.getElementById("txt96").value
    var t97 = document.getElementById("txt97").value
    var t98 = document.getElementById("txt98").value    
    var t99 = document.getElementById("txt99").value
    
    if (t90.length == 0)
	{
	    t90=0
    }
	t90=t90.toString()
	if (t91.length == 0)
	{
	    t91=0
    }
	t91=t91.toString()
	if (t92.length == 0)
	{
	    t92=0
    }
	t92=t92.toString()
	if (t93.length == 0)
	{
	    t93=0
    }
	t93=t93.toString()
	if (t94.length == 0)
	{
	    t94=0
    }
	t94=t94.toString()
	if (t95.length == 0)
	{
	    t95=0
    }
	t95=t95.toString()
	if (t96.length == 0)
	{
	    t96=0
    }
	t96=t96.toString()
	if (t97.length == 0)
	{
	    t97=0
    }
	t97=t97.toString()
	if (t98.length == 0)
	{
	    t98=0
    }
	t98=t98.toString()
	if (t99.length == 0)
	{
	    t99=0
    }
	t99=t99.toString()
	
	var qty10 =parseFloat(t90) + parseFloat(t91) + parseFloat(t92) + parseFloat(t93) + parseFloat(t94) + parseFloat(t95) + parseFloat(t96) + parseFloat(t97) + parseFloat(t98) + parseFloat(t99)     
    var amt10 =qty10 * price10 * 400    
    document.getElementById("txtamt9").value = amt10.toFixed(2);
    /* End of Lucky Lott 10 Chrome*/
    
     /* Lucky Lott 11 Chrome*/
    var price11 = 0.55
    var t100 = document.getElementById("txt100").value
    var t101 = document.getElementById("txt101").value
    var t102 = document.getElementById("txt102").value
    var t103 = document.getElementById("txt103").value
    var t104 = document.getElementById("txt104").value
    var t105 = document.getElementById("txt105").value
    var t106 = document.getElementById("txt106").value
    var t107 = document.getElementById("txt107").value
    var t108 = document.getElementById("txt108").value    
    var t109 = document.getElementById("txt109").value
    
    if (t100.length == 0)
	{
	    t100=0
    }
	t100=t100.toString()
	if (t101.length == 0)
	{
	    t101=0
    }
	t101=t101.toString()
	if (t102.length == 0)
	{
	    t102=0
    }
	t102=t102.toString()
	if (t103.length == 0)
	{
	    t103=0
    }
	t103=t103.toString()
	if (t104.length == 0)
	{
	    t104=0
    }
	t104=t104.toString()
	if (t105.length == 0)
	{
	    t105=0
    }
	t105=t105.toString()
	if (t106.length == 0)
	{
	    t106=0
    }
	t106=t106.toString()
	if (t107.length == 0)
	{
	    t107=0
    }
	t107=t107.toString()
	if (t108.length == 0)
	{
	    t108=0
    }
	t108=t108.toString()
	if (t109.length == 0)
	{
	    t109=0
    }
	t109=t109.toString()	
	var qty11 =parseFloat(t100) + parseFloat(t101) + parseFloat(t102) + parseFloat(t103) + parseFloat(t104) + parseFloat(t105) + parseFloat(t106) + parseFloat(t107) + parseFloat(t108) + parseFloat(t109)     
    var amt11 =qty11 * price11 * 1000    
    document.getElementById("txtamt10").value = amt11.toFixed(2);
    /* End of Lucky Lott 11 Chrome*/
    
     /* Lucky Lott 12 Chrome*/
    var price12 = 0.55
    var t110 = document.getElementById("txt110").value
    var t111 = document.getElementById("txt111").value
    var t112 = document.getElementById("txt112").value
    var t113 = document.getElementById("txt113").value
    var t114 = document.getElementById("txt114").value
    var t115 = document.getElementById("txt115").value
    var t116 = document.getElementById("txt116").value
    var t117 = document.getElementById("txt117").value
    var t118 = document.getElementById("txt118").value    
    var t119 = document.getElementById("txt119").value
    
    if (t110.length == 0)
	{
	    t110=0
    }
	t110=t110.toString()
	if (t111.length == 0)
	{
	    t111=0
    }
	t111=t111.toString()
	if (t112.length == 0)
	{
	    t112=0
    }
	t112=t112.toString()
	if (t113.length == 0)
	{
	    t113=0
    }
	t113=t113.toString()
	if (t114.length == 0)
	{
	    t114=0
    }
	t114=t114.toString()
	if (t115.length == 0)
	{
	    t115=0
    }
	t115=t115.toString()
	if (t116.length == 0)
	{
	    t116=0
    }
	t116=t116.toString()
	if (t117.length == 0)
	{
	    t117=0
    }
	t117=t117.toString()
	if (t118.length == 0)
	{
	    t118=0
    }
	t118=t118.toString()
	if (t119.length == 0)
	{
	    t119=0
    }
	t119=t119.toString()	
	var qty12 =parseFloat(t110) + parseFloat(t111) + parseFloat(t112) + parseFloat(t113) + parseFloat(t114) + parseFloat(t115) + parseFloat(t116) + parseFloat(t117) + parseFloat(t118) + parseFloat(t119)     
    var amt12 =qty12 * price12 * 1000    
    document.getElementById("txtamt11").value = amt12.toFixed(2);
	    
	    
	    
	    
	    var A0 = document.getElementById("txtamt0").value
        var A1 = document.getElementById("txtamt1").value
        var A2 = document.getElementById("txtamt2").value
        var A3 = document.getElementById("txtamt3").value
        var A4 = document.getElementById("txtamt4").value
        var A5 = document.getElementById("txtamt5").value
        var A6 = document.getElementById("txtamt6").value    
        var A7 = document.getElementById("txtamt7").value 
        var A8 = document.getElementById("txtamt8").value 
        var A9 = document.getElementById("txtamt9").value 
        var A10 = document.getElementById("txtamt10").value 
        var A11 = document.getElementById("txtamt11").value 
        
        if (A0.length == 0)
        {
            A0=0
        }
        A0=A0.toString()
        if (A1.length == 0)
        {
            A1=0
        }
        A1=A1.toString()
        if (A2.length == 0)
        {
            A2=0
        }
        A2=A2.toString()
        if (A3.length == 0)
        {
            A3=0
        }
        A3=A3.toString()
        if (A4.length == 0)
        {
            A4=0
        }
        A4=A4.toString()
        if (A5.length == 0)
        {
            A5=0
        }
        A5=A5.toString()
        if (A6.length == 0)
        {
            A6=0
        }
        A6=A6.toString()	
        if (A7.length == 0)
        {
            A7=0
        }
        A7=A7.toString()		
        if (A8.length == 0)
        {
            A8=0
        }
        A8=A8.toString()
        if (A9.length == 0)
        {
            A9=0
        }
        A9=A9.toString()
        if (A10.length == 0)
        {
            A10=0
        }
        A10=A10.toString()	
        if (A11.length == 0)
        {
            A11=0
        }
        A11=A11.toString()	
                
         var totalQty =parseFloat(A0) + parseFloat(A1) + parseFloat(A2) + parseFloat(A3) + parseFloat(A4) + parseFloat(A5) + parseFloat(A6)+ parseFloat(A7) + parseFloat(A8) + parseFloat(A9) + parseFloat(A10) + parseFloat(A11)
         document.getElementById("txtfinalamt").value = totalQty.toFixed(2)* document.getElementById("ddlnoofdraw").value;
}