/**************************************************/
/*                Html在线编辑器                    */
/**************************************************/
//得到Html编辑器的值
function GetContent()
{
	document.all("content").value=window.frames("editer").frames("Composition").document.body.innerHTML;
	wt = setTimeout("GetContent()",1000)
}
//赋值给Html编辑器的值
function WriteContent()
{
	window.frames("editer").frames("Composition").document.body.innerHTML = document.all("content").value;
}

/**************************************************/
/*                     购物车                      */
/**************************************************/
//增加到购物车
function AddCart(ID)
{
	window.open("Cart/ShowCart.asp?action=Add&ID=" + ID, "MyCart","width=560,height=200,top=20,left=100,scrollbars=1")
}
//查看 购物车
function ViewCart()
{
	window.open("Cart/showCart.asp", "MyCart","width=560,height=200,top=20,left=100,scrollbars=1")
}
//订购
function Order()
{
	window.open("../Order.asp","","");
	window.close()
}
function SubmitAction(theform,action)
{
	//alert (theform)
	theform.action="?action=" + action
}

//查看订单
function ViewOrder(OrderID)
{
	window.open("ViewOrder.asp?OrderID=" + OrderID,"","width=620,height=450,top=20,left=100,scrollbars=1")
}


function Delete()
{
	if(confirm("你确定要删除吗？"))
	{
		return true;
	}	
	else
	{
		return false;
	}
}

function high(which2){
	theobject=which2;
	//theobject.filters.gray.enabled = false;
	theobject.filters.alpha.opacity=0
	highlighting=setInterval("highlightit(theobject)",50)
}

function low(which2){
	clearInterval(highlighting)
	which2.filters.alpha.opacity=60
	//theobject.filters.gray.enabled = true;
}

function highlightit(cur2){
	if (cur2.filters.alpha.opacity<100)
	cur2.filters.alpha.opacity+=30
	else if(window.highting)
	clearInterval(highlighting)
}
//选中列表项
function SelectedItem(listName, value)
{
	objList = document.all(listName)
	if (objList != null)
	{
		len = objList.length;
		if (len != 0 )
		{
		for(i=0;i<len;i++)
		{
			if (objList.options[i].value ==value)
			objList.options[i].selected = true;

		}
	}
	}
}

