   //BY MILLER
    function showPic(url)
    {
       document.all("FirstImage").src=url.replace("/s/","/L/");  
        document.all("PicXL").href=url.replace("/s/","/XL/");  
      
    }   
   //END
function go(URL)
{
	window.location = URL
}

//在新窗口中打开页面
function openNewWindow(URL) 
{
	window.open(URL)
}

function ShowShoppingCart()
{
	window.open('../Sale/Shoppingcart.aspx','basketlist');
}

function showbasket(SysNo) 
{
	//window.open('../Sale/Shoppingcart.aspx?Action=Add&productno='+SysNo,'basketlist','width=700',height=500',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=20,top=20,titlebar=0');
	window.open('../Sale/ShoppingcartPreview.aspx?Action=Add&productno='+SysNo,'ShoppingPre');
}

//added by joyce,add basket productsysno&quantity
function showbasketqty(SysNo,Quantity) 
{
	//window.open('../Sale/Shoppingcart.aspx?Action=Add&productno='+SysNo,'basketlist','width=700',height=500',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=20,top=20,titlebar=0');
	window.open('../Sale/ShoppingcartPreview.aspx?Action=Add&productno='+SysNo+'&quantity='+Quantity,'ShoppingPre');
}

function showbasketCar(SysNo)
{
	window.open('../../Sale/ShoppingcartPreview.aspx?Action=Add&productno='+SysNo,'ShoppingPre');
}

function showbasketqtyCar(SysNo,Quantity)
{
   window.open('../../Sale/ShoppingcartPreview.aspx?Action=Add&productno='+SysNo+'&quantity='+Quantity,'ShoppingPre');
}
function AlertFalse(str)
{
	alert(str);
	return false;
}

//弹出窗口
function openWindow(URL,Width,Height) 
{ 
	window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no');
}

//弹出窗口，固定位置left=100,top=100
function openWindowS(URL,Width,Height)
{
    window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=100,top=100');
}

function openWindowS2(URL)
{
 openWindowS(URL, 800, 500);
}

function openDialog(url)
{
	window.open(url,'','width=700,height=500,resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no');
}

