

function go(URL)
{
	window.location = URL
}

//在新窗口中打开页面
function openNewWindow(URL) 
{
	window.open(URL)
}

function ShowShoppingCart()
{
	window.open('../Sale/Shoppingcart.aspx','830basket');
}

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/Shoppingcart.aspx?Action=Add&productno='+SysNo,'830basket');
}

//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/Shoppingcart.aspx?Action=Add&productno='+SysNo+'&quantity='+Quantity,'830basket');
}

function showbasketCar(SysNo)
{
	window.open('../../Sale/Shoppingcart.aspx?Action=Add&productno='+SysNo,'830basket');
}

function showbasketqtyCar(SysNo,Quantity)
{
   window.open('../../Sale/Shoppingcart.aspx?Action=Add&productno='+SysNo+'&quantity='+Quantity,'830basket');
}
function AlertFalse(str)
{
	alert(str);
	return false;
}

//弹出窗口
function openWindow(URL,Width,Height) { 
window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=0,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=60,top=60');
}

//弹出窗口，固定位置left=100,top=100; 固定大小800;600;
function openWindowS2(URL)
{
	openWindowS(URL, 800, 600);
}
function openWindowS3(URL)
{
	openWindowS(URL, 640, 480);
}

//弹出窗口，全屏
function openWindowL(URL)
{
	window.open(URL,'','width=screen.width,height=screen.height,scrollbars=1,status=no,toolbar=no,location=no,menu=no,resizable=1');
}

function WinForProduct()
{
	window.moveTo(0,0) 
	window.resizeTo(screen.availWidth-200,screen.availHeight)
}
function g(nodeId) {
    return document.getElementById(nodeId);
}
function clearAlarmInfo() {
    var newd = g("lblMessage");
    if (newd != null) {
        newd.parentNode.removeChild(newd);
    }
}