function CountyReport()
{   
    var cboCounty = parent.ScriptFrame.document.getElementById('cboCounty');
     
    if (isNav6)
       {    
           i = cboCounty.selectedIndex;
	   county = cboCounty.options[i].value; 	
	   
           //i = parent.ScriptFrame.document.searchform.County.selectedIndex;
	   //county = parent.ScriptFrame.document.searchform.County.options[i].value; 	   
       } 
    else 
       {
       	   var county = cboCounty.options.value;  	
           //county = parent.ScriptFrame.document.searchform.County.options.value;  
       } 
   
    var year = getDataSetYear();
    printWin = window.open( "", "printwin", "width=790,height=535,scrollbars,resizable,screenX=20,screenY=40,left=10,top=0");
    printWin.location="/reports/county_report.php?county="+county+"&year="+year;
    printWin.focus();
}


function MetroReport()
{   
    var cboMetroArea = parent.ScriptFrame.document.getElementById('cboMetroArea');
    
    if (isNav6)
       {   
           i = cboMetroArea.selectedIndex;        	    
	   Metroarea = cboMetroArea.options[i].value;   
	   
           //i = parent.ScriptFrame.document.searchform.Metroarea.selectedIndex;        	    
	   //Metroarea = parent.ScriptFrame.document.searchform.Metroarea.options[i].value;    
       } 
    else 
       {
           var Metroarea = cboMetroArea.options.value; 
       
	   //Metroarea = parent.ScriptFrame.document.searchform.Metroarea.options.value; 
       } 
   
    //alert(Metroarea);
    var year = getDataSetYear();
    printWin = window.open( "", "printwin", "width=790,height=535,scrollbars,resizable,screenX=20,screenY=40,left=10,top=0");
    printWin.location="/reports/metro_report.php?metroarea="+Metroarea+"&year="+year;
    printWin.focus();
}



function TownshipReport()
{   
    var cboTownship = parent.ScriptFrame.document.getElementById('cboTownship');
    
    if (isNav6)
       {    
          i = cboTownship.selectedIndex;        	    
	  Township = cboTownship.options[i].value; 
	  
          //i = parent.ScriptFrame.document.searchform.Township.selectedIndex;        	    
	  //Township = parent.ScriptFrame.document.searchform.Township.options[i].value; 
       } 
    else 
       {
          var Township = cboTownship.options.value;
       
	  //Township = parent.ScriptFrame.document.searchform.Township.options.value; 
       } 
   
    //alert(Township);
    
    //alert(parent.QueryFrame.document.Qform.County_Name.value);
    var County=parent.QueryFrame.document.Qform.County_Name.value;

    var year = getDataSetYear();
    printWin = window.open( "", "printwin", "width=790,height=535,scrollbars,resizable,screenX=20,screenY=40,left=10,top=0");
    printWin.location="/reports/township_report.php?Township="+Township+"&County="+County+"&year="+year;
    printWin.focus();
}


function ProjectReport()
{   
    projnum = parent.QueryFrame.document.pidaform.projnum.value;  
     
    //alert(projnum);
    var year = getDataSetYear();
    
    printWin = window.open( "", "printwin", "width=790,height=535,scrollbars,resizable,screenX=20,screenY=40,left=10,top=0");
    printWin.location="/reports/project_report.php?projnum="+projnum+"&year="+year;
    printWin.focus();
}
