var date = new Date();
function cartmanager(form)
{
	//alert(productID);,productID, productName, listPrice, unitPrice, crrencyType
	//form.CartManager_ProductID.value = productID;
	//alert(productID);
	//form.CartManager_ProductName.value = productName;
	//alert(productName);
	//form.CartManager_ListPrice.value = listPrice;
	//alert(listPrice);
	//form.CartManager_UnitPrice.value = unitPrice;
	//alert(unitPrice);
	//form.CartManager_CurrencyType.value = "人民币";
	//alert(crrencyType);				
	form.submit();
}


var ProductExhibitListNewWindow = null;

function ProductExhibitList_openNewWindow(url, type, str)
{
	window.name = "productExhibitList" + date.getTime();
	//modify by lixiang 20040319
	//winWidth = screen.width-10;
	//winHeight = screen.height-60;
	//features = "width="+ winWidth + ",height=" + winHeight + ",scrollbars=yes";			
	ProductExhibitListNewWindow = window.open(url, type);		
}



function ProductExhibitList_page(compid,compName, currentPage,nextPage,linkPage,categoryID)
{
		strURI = "";
		if (linkPage != null && linkPage.length > 0)
			strURI = linkPage;
		strURI += "?ProductExhibitList_Mode=button";
		if (compid!= null && compid.length > 0)
			strURI += "&CompID=" + compid;
		if (compName!= null && compName.length > 0)
			strURI += "&CompName=" + compName;
		if (currentPage!= null && currentPage.length > 0)
			strURI += "&ProductExhibitList_CurPage=" + currentPage;
		if (nextPage!= null && nextPage.length > 0)
			strURI += "&ProductExhibitList_NextPage=" + nextPage;

	  var selectString = ProductExhibitList_OrderForm.OrderSelect.value;
	  var i = selectString.indexOf("_");
    var OrderField = selectString.substring(0, i);
    var Order = selectString.substring(i+1, selectString.length);
    strURI += "&ProductExhibitList_OrderField="+ OrderField;
    strURI += "&ProductExhibitList_Order="+Order;
    strURI += "&CategoryID="+categoryID;
		if(ProductExhibitList_OrderForm.CategoryID){
	    if(ProductExhibitList_OrderForm.CategoryID.length > 1)
	    	strURI += "&CategoryID="+ProductExhibitList_OrderForm.CategoryID[1].value;
    }
		self.location = strURI + "&time=" + date.getTime();
}

function ProductExhibitList_OrderProduct(ProductExhibitList_OrderForm) {
	var selectString = ProductExhibitList_OrderForm.OrderSelect.value;
	var i = selectString.indexOf("_");
	if(i != -1) {
		document.ProductExhibitList_OrderForm.ProductExhibitList_OrderField.value = selectString.substring(0, i);
		document.ProductExhibitList_OrderForm.ProductExhibitList_Order.value = selectString.substring(i+1, selectString.length);
	}
	
	document.ProductExhibitList_OrderForm.submit();
}