
//弹出窗口
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=100,top=100');
}

//弹出窗口，用户指定位置
function openWindowP(URL,Width,Height,left,top) { 
window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=0,status=no,toolbar=no,location=no,menu=no,left='+left+',top='+top);
}

//弹出窗口，用户指定窗口名称和位置
function openWindowPN(URL,winname,Width,Height,left,top) { 
window.open(URL,winname,'width='+Width+',height='+Height+',resizable=1,scrollbars=0,status=no,toolbar=no,location=no,menu=no,left='+left+',top='+top);
}

function go(URL){
	window.location = URL
}

//在新窗口中打开页面
function openNewWindow(URL) {
	window.open(URL)
}

//-------------------------------------------------------------------------------
//弹出窗口，固定位置left=100,top=100; 固定大小800;500; add by Marco
function openWindowS2(URL)
{
	openWindowS(URL, 800, 500);
}
function openWindowS3(URL)
{
	openWindowS(URL, 640, 480);
}

function SingleWindow(URL,Width,Height) { 
window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=0,status=no,toolbar=no,location=no,menu=no');
}

function SingleWindowS(URL,Width,Height) { 
window.open(URL,'','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=200,top=200,titlebar=0');
}

function GetDetail(Title,TitleType,TitleIndex){
SingleWindowS('http://www.envols.com.cn/detail.aspx?TitleType='+TitleType + '&TitleIndex='+TitleIndex,640,480)
} 

// modified by Zodiac, 2003-07-02
//function showbasket(Item,Width,Height ) { 
//var d;
//var t;
//d=new Date();
//t=d.getTime();
function showbasket(SysNo,Width,Height ) { 
window.open('../Sale/Shoppingcart.aspx?Action=Add&productno='+SysNo,'basketlist','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=20,top=20,titlebar=0');
//window.open('basket.aspx?time='+t+'&item='+Item+'&ordernum='+document.item.OrderNum.value,'basketlist','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=200,top=200,titlebar=0');
}

function showbasket2(Item,Width,Height ) { 
var d;
var t;
d=new Date();
t=d.getTime();

window.open('basket2.aspx?time='+t+'&item='+Item+'&ordernum='+document.item.OrderNum.value,'basketlist','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=200,top=200,titlebar=0');
}

function gobasket(Width,Height ) { 
window.open('basket.aspx','basketlist','width='+Width+',height='+Height+',resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no,left=200,top=200,titlebar=0');
}
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}

/*****************************************/
/** Added by SeanQu 2006/05/10 ***********/
/*****************************************/

function verifyCheckBoxIsChecked(formID)
{
	var form = document.forms[formID];
	var i = 0;
	var loop = 0;
	
	for (loop=0; loop < form.elements.length; loop++) 
	{ 
		if(form.elements[loop].type == "checkbox" && form.elements[loop].checked)
		{ 
			i = i + 1;
		}
	}    			
	
	if(i < 2)
	{
	    alert("您至少要选择两种商品，谢谢！");    
	    return false;
	}
	else
	{
	    return true;
	}
}

function go(URL)
{
	window.location = URL
}

//在新窗口中打开页面
function openNewWindow(URL) 
{
	window.open(URL)
}

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&SysNo='+SysNo,'basketlist');
}

function ShowBasketGift(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=giftadd&SysNo='+SysNo,'basketlist');
}

//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&SysNo='+SysNo+'&quantity='+Quantity,'basketlist');
}

function showbasketCar(SysNo)
{
	window.open('../../Sale/Shoppingcart.aspx?Action=Add&SysNo='+SysNo,'basketlist');
}

function showbasketqtyCar(SysNo,Quantity)
{
   window.open('../../Sale/Shoppingcart.aspx?Action=Add&SysNo='+SysNo+'&quantity='+Quantity,'basketlist');
}
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');
}

function openDialog(url)
{
    window.open(url,'','width=715,height=800,top=60,left=300,resizable=1,scrollbars=1,status=no,toolbar=no,location=no,menu=no');
}


