// JavaScript Document
$(document).ready(function(){					   
	//do something
	
});

function showPro(products_id)
{
	location = 'product_info.php?products_id='+products_id;	
}

function showByCate(value)
{
		var adata = {
			"action" : 'showByCate' ,
			"cID" : value
			//"osCsid" : osCsid		//should be comment on live
		};

		$.ajax({
			type: "GET",
			url: "back_door.php",
			data: adata,
			dataType: "html",
			success: function(obj){
				$("#ajaxMan").html(obj);
				//alert(obj);
			}
		});	
}

function showProductByManufacture(value,cID)
{
		var adata = {
			"action" : 'showProductByManufacture',
			"cID" : cID,
			"mID" : value
			//"osCsid" : osCsid		//should be comment on live
		};

		$.ajax({
			type: "GET",
			url: "back_door.php",
			data: adata,
			dataType: "html",
			success: function(obj){
				$("#ajaxProduct").html(obj);
				//alert(obj);
			}
		});	
}

function goLink(obj)
{
	var url = obj.options[obj.selectedIndex].value;
	
	//open(url, 'Links', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
	open(url);
}