function writeProductCategorySelectVn(top_value,parent_value){
	document.write('<SELECT  name="product_category_select"  onchange="window.location.href=\'product.aspx?parentid=\'+this.options[this.selectedIndex].value" style="font-family: Tahoma; font-size: 8pt; width:134; height:19" size="1">'); 
	document.write('<OPTION value="0" selected>-S&#7843;n ph&#7849;m-</OPTION>');
	for(var i=0;i<product_category.length;i++){
		if(product_category[i][1]=='0'){
			if(parseInt(top_value)!=parseInt(product_category[i][0])){
				document.write('<option value='+product_category[i][0]+'>'+product_category[i][2]+'</option>');
			}
			else{
				document.write('<option value='+product_category[i][0]+' selected>'+product_category[i][2]+'</option>');	
			}
			for(var j=0;j<product_category.length;j++){
				if(product_category[j][1]==product_category[i][0])	{
					if(parseInt(parent_value)!=parseInt(product_category[j][0])){
						document.write('<option value='+product_category[j][0]+'> .'+product_category[j][2]+'</option>');
					}
					else{
						document.write('<option value='+product_category[j][0]+' selected> .'+product_category[j][2]+'</option>');	
					}
				}
			}
		}
	}
	document.write('</SELECT>');	
}
function writeProductCategorySelectEn(top_value,parent_value){
	document.write('<SELECT  name="product_category_select"  onchange="window.location.href=\'product_en.aspx?parentid=\'+this.options[this.selectedIndex].value" style="font-family: Tahoma; font-size: 8pt; width:134; height:19" size="1">'); 
	document.write('<OPTION value="0" selected>-Products-</OPTION>');
	for(var i=0;i<product_category.length;i++){
		if(product_category[i][1]=='0'){
			if(parseInt(top_value)!=parseInt(product_category[i][0])){
				document.write('<option value='+product_category[i][0]+'>'+product_category[i][3]+'</option>');
			}
			else{
				document.write('<option value='+product_category[i][0]+' selected>'+product_category[i][3]+'</option>');	
			}
			for(var j=0;j<product_category.length;j++){
				if(product_category[j][1]==product_category[i][0])	{
					if(parseInt(parent_value)!=parseInt(product_category[j][0])){
						document.write('<option value='+product_category[j][0]+'> .'+product_category[j][3]+'</option>');
					}
					else{
						document.write('<option value='+product_category[j][0]+' selected> .'+product_category[j][3]+'</option>');	
					}
				}
			}
		}
	}
	document.write('</SELECT>');	
}