function addList(destList,dis) {
	var huyenN=new Array();
	var huyenV=new Array();	
	var arr=dis.split("@@@")
	
	//for (var i=0;i<destList.length;i++){
	//	destList.remove
	//}	

	for (var i=0;i<arr.length;i++){		
		var nv=arr[i].split("#")		
		// tao mang chua cac Item cua combo va add vao combo

  		var newDestList = new Array()
  		var len = 0;
     			
      		newDestList[i] = new Option( nv[0], nv[1], true, false );   
		destList.options[i] = newDestList[i];
  			
	}
	
// loai bo Items thua	
	destList.length=arr.length

} // End of addList


// Add number page
function addListPage(destList,indx,num) {			
	for (var i=0;i<num;i++){
		
		// tao mang chua cac Item cua combo va add vao combo

  		var newDestList = new Array()  		
      		
		//newDestList[i] = new Option( i+1, i+1, false, false );
   						
		newDestList[i] = new Option( i+1, i+1, true, true );
				
		destList.options[i] = newDestList[i];
		for (var k=0;k<destList.length;k++){
			if(k==indx-1){
				destList.options[ k].selected=true
			}
			else{
				destList.options[ k ].selected=false
			}
		}
  			
	}
	
// loai bo Items thua	
	//alert(num)
	destList.length=num

} // End of addListPage



function goPage(index,tendn,tinh,huyen,loaihinh,nguoidd,linhvuc,namtl,thitruong,sanpham,th,hv){
//window.location.href="TimDNpost.asp?page=" +  index + "&tendn=" + tendn + "&tinh=" + tinh + "&huyen="+ huyen + "&loaihinh=" + loaihinh + "&nguoidd=" + nguoidd + "&linhvuc=" + linhvuc + "&namtl=" + namtl + "&thitruong=" + thitruong + "&sanpham=" + sanpham + "&th=" + th + "&hv=" + hv + "";
window.location.href="TimDNpost.asp?page=" +  index + "&tendn=" + tendn + "&tinh=" + tinh + "&huyen="+ huyen + "&loaihinh=" + loaihinh + "&nguoidd=" + nguoidd + "&linhvuc=" + linhvuc + "&namtl=" + namtl + "&th=" + th + "&hv=" + hv + "";

}

function gotogo(pg){
	//dn.cbx.value=cb;
	dn.page.value=pg;
	dn.submit();

}

function dte(pg){
	dn.action="Data.asp";
	dn.page.value=pg;
	dn.method="post";
	dn.submit();

}





















