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 ProductExhibitList300NewWindow = null;

function ProductExhibitList300_openNewWindow(url, type, str)
{
	window.name = "ProductExhibitList300" + date.getTime();
	//modify by lixiang 20040319
	//winWidth = screen.width-10;
	//winHeight = screen.height-60;
	//features = "width="+ winWidth + ",height=" + winHeight + ",scrollbars=yes";			
	ProductExhibitList300NewWindow = window.open(url, type);		
}



function ProductExhibitList300_page(compid,compName, currentPage,nextPage,linkPage,categoryID)
{
		strURI = "";
		if (linkPage != null && linkPage.length > 0)
			strURI = linkPage;
		strURI += "?ProductExhibitList300_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 += "&ProductExhibitList300_CurPage=" + currentPage;
		if (nextPage!= null && nextPage.length > 0)
			strURI += "&ProductExhibitList300_NextPage=" + nextPage;

	  var selectString = ProductExhibitList300_OrderForm.OrderSelect.value;
	  var i = selectString.indexOf("_");
    var OrderField = selectString.substring(0, i);
    var Order = selectString.substring(i+1, selectString.length);
    strURI += "&ProductExhibitList300_OrderField="+ OrderField;
    strURI += "&ProductExhibitList300_Order="+Order;
    strURI += "&CategoryID="+categoryID;
		if(ProductExhibitList300_OrderForm.CategoryID){
	    if(ProductExhibitList300_OrderForm.CategoryID.length > 1)
	    	strURI += "&CategoryID="+ProductExhibitList300_OrderForm.CategoryID[1].value;
    }
		self.location = strURI + "&time=" + date.getTime();
}

function ProductExhibitList300_OrderProduct(ProductExhibitList300_OrderForm) {
	var selectString = ProductExhibitList300_OrderForm.OrderSelect.value;
	var i = selectString.indexOf("_");
	if(i != -1) {
		document.ProductExhibitList300_OrderForm.ProductExhibitList300_OrderField.value = selectString.substring(0, i);
		document.ProductExhibitList300_OrderForm.ProductExhibitList300_Order.value = selectString.substring(i+1, selectString.length);
	}
	
	document.ProductExhibitList300_OrderForm.submit();
}
