function openScript(theURL, W, H) 
{
var Win = window.open(theURL, 'helpWindow', 'width='+W+',height='+H+',resizable=1,scrollbars=yes,menubar=no,status=no');
}

function addshoppingcar(ProdID)
{
	//新窗口打开
	var url = "addshopping.asp?scid="+ProdID+"";
	var ahdvpopup = window.open(url,"shoppingahdvcart","width=650, top=0,left=0, height=500, toolbar=no, menubar=no, scrollbars=yes, resizable=no,location=no, status=no");
	
	ahdvpopup.focus();//聚焦当前购物车窗口
	return;
	
}

function addshoppingcartop()
{
	//新窗口打开
	var url = "addshopping.asp";
	var ahdvpopup = window.open(url,"shoppingahdvcart","");
	
	ahdvpopup.focus();//聚焦当前购物车窗口
	return;
	
}

function tolisten(ProdID)
{
	//新窗口打开
	var url = "tolisten.asp?scid="+ProdID+"";
	var ahdvlisten = window.open(url,"listen","width=245,height=198,left=250,top=150,status");
	
	ahdvlisten.focus();//聚焦当前购物车窗口
	return;
	
}
//分页代码
function showPageLink(sUrl,iPage,iCount){
	var i;
	i=Math.max(1,iPage-1);
	document.write("<a href=\"" + sUrl + "1.html\" title='第 1 页'><img src=image/left.gif border=0></a> ");
	document.write("<a href=\"" + sUrl + i + ".html\" title='上一页(第 " + i + " 页)'><img src=image/right.gif border=0></a> ");
	for(i=Math.max(1,iPage-5);i<iPage;i++){
		document.write("<a href=\""+sUrl + i + ".html\" title='第 " + i + " 页'><b><font color=#000>" + i + "</font></b></a> ");
	}
	document.write("<font color='#ff0000'><b>" + iPage + "</b></font> ");
	for(i=iPage+1;i<=Math.min(iCount,iPage+5);i++){
		document.write("<a href=\""+sUrl + i + ".html\" title='第 " + i + " 页'><b><font color=#000>" + i + "</font></b></a> ");
	}
	i=Math.min(iCount,iPage+1);
	if(iCount>iPage+5) document.write("<span style='font-size:8px;color:#000'>···</span> ");
	document.write("<a href=\"" + sUrl + iCount + ".html\" title='最后一页(第 " + iCount + " 页)'><img src=image/left.gif border=0></a> ");
	document.write("<a href=\"" + sUrl + i + ".html\" title='下一页(第 " + i + " 页)'><img src=image/right.gif border=0></a> ");
}
function killErrors(){return true;}
window.onerror=killErrors;
