// JavaScript Document
function chk_count_district(){
  chk_cnt = 0;
  chk_fac = 0;
  for ( i = 0; i < document.forms[0].elements['district[]'].length; i++ )  
  { 
    if ( document.forms[0].elements['district[]'][i].checked )
    { 
		chk_cnt++; 
	}
  }
  
 /* for ( i = 0; i < document.forms[0].elements['facility[]'].length; i++ )  
  { 
    if ( document.forms[0].elements['facility[]'][i].checked )
    { 
		chk_fac++; 
	}
  }
  */
  if ( chk_cnt < 1 ) 
       { 
	   		return 1; 
		} 
  else { return 0; }
}


function chk_count_statioin(){
  chk_cnt = 0;
  for ( i = 0; i < document.forms[0].elements['station[]'].length; i++ )  
  { 
    if ( document.forms[0].elements['station[]'][i].checked )
    { 
		chk_cnt++; 
	}
  }
  
  
  if ( chk_cnt < 1 ) 
       { 
	   		return 1; 
		} 
  else { return 0; }
}

function chk_district(){
  chk_cnt = 0;
  chk_fac = 0;
  for ( i = 0; i < document.forms[0].elements['selectdistrict[]'].length; i++ )  
  { 
    if ( document.forms[0].elements['selectdistrict[]'][i].checked )
    { 
		chk_cnt++; 
	}
  }
  
  if ( chk_cnt < 1) 
       { 
	   		return 1; 
		} 
  else { return 0; }
}

function chk_town(){
  chk_cnt = 0; 
  for ( i = 0; i < document.frm2.elements['select_town[]'].length; i++ )   
  {     
		if ( document.frm2.elements['select_town[]'][i].checked )    
			{ 		
				chk_cnt++; 	
			}  
}   
if ( chk_cnt < 1)       
{ 	   		
	return 1; 
}  
else 
{ 
	return 0; 
}
}
