function secBoard(n)
{
    for(i=0;i<secTable.rows[0].cells.length;i++)
      secTable.rows[0].cells[i].className="sec1";
      secTable.rows[0].cells[n].className="sec2";
    for(i=0;i<mainTable.tBodies.length;i++)
      mainTable.tBodies[i].style.display="none";
      mainTable.tBodies[n].style.display="block";
    for(i=0;i<secTable.rows[0].cells.length;i++){
      document.getElementById("paperImg"+(i+1)).src="images/"+getWhich(i)+"2.gif";
	}
      document.getElementById("paperImg"+(n+1)).src="images/"+getWhich(n)+"1.gif";
}

function getWhich(n){
	var picUrl;
	if(n==0){
		picUrl="zsb";
	}
	else if(n==1){
	  picUrl="zshb";	
	}
	else{
		picUrl="hpy";
	}	
	return picUrl;
}

function secBoard1(n)
{
	for(i=0;i<secTable.rows[0].cells.length;i++)
      secTable.rows[0].cells[i].className="sec1";
      secTable.rows[0].cells[n].className="sec2";
    for(i=0;i<mainTable.tBodies.length;i++)
      mainTable.tBodies[i].style.display="none";
      mainTable.tBodies[n].style.display="block";
}


function AddCart(productId){
url = "shopcart.asp?productId=" + productId+"&ac=add"
window.open(url , 'basket','top=0,left=0,width=565,height=300,scrollbars=yes');
}
function open_cart(){
window.open('shopcart.asp' , 'basket2','top=0,left=0,width=565,height=300,scrollbars=yes');
}

function AddCart_eshop(productId){
url = "../eshop/shopcart.asp?productId=" + productId+"&ac=add"
window.open(url , 'basket','top=0,left=0,width=565,height=300,scrollbars=yes');
}
function open_cart_eshop(){
window.open('../eshop/shopcart.asp' , 'basket2','top=0,left=0,width=565,height=300,scrollbars=yes');
}

