﻿function printTop10Wanted()
{
    var objdist= null;
    //objdist = document.getElementById('lblDist').innerText;
    objdist = document.getElementById('txtDist').value;   
   // window.open("Top10Print.aspx?sDist=" + sDist,null,"width=665px, height=570px, left=150, scrollbars=1, status=1, top=100",1);    
    window.open("Top10Print.aspx?sDist=" + objdist,null,"width=665px, height=570px, left=150, scrollbars=1, status=1, top=100",1);    
    return false;
}


function init()
{
    var count = document.getElementById('hdnRecCount');
    if(count.value =="1")
    {
        var x = window.confirm('Do you want to Print the content?');
        if(x)
        {
            window.print();
            window.close();
        }
        else
        {
            window.close();
        }
     }   
    else
    {
        window.alert('No Reocords found');
        window.close();
    }
}

function OnDistChange()
{
   document.getElementById('txtStNo').value='';
   document.getElementById('ddStDir').options[0].selected=true;
   document.getElementById('ddStreets').options[0].selected=true;   
   return true;
}
