
//弹出窗口
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;
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 showbasket(SysNo,Width,Height ) { 
window.open('../SOProcess/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 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)
		{ 
			if (i == 0) 
			{
				i = 1;
			}	
			else
			{		
				return true;
			}
		}
	}    			
	
	alert("您至少要选择两种商品，谢谢！");    
	return false;
}


