function changeproddtl(href)
{
	int_sizeCnt = document.frmproductDisp.frmsize.value;

	/*
     tmp_str_sizeIndex = document.frmproductDisp.frmsize.selectedIndex;     
     int_sizeCnt = tmp_str_sizeIndex+1;
     */
     //refreash the page
     location.href = href+"&itmsize="+int_sizeCnt;

}

function changemiddleImage(middleimgpath,linkimg, sVar)
{
  if(sVar == 'flash')
  {
  	linkimg = linkimg + "&op="+sVar;
  }
  y = document.getElementById("frmmiddleImg"); 
  y.innerHTML = "<a href='#' onClick=\"window.open('viewImg.php?imgname="+linkimg+"','','toolbar=0,location=0,directories=0,resizable=no,status=0,menubar=0,scrollbars=no,width=520,height=520,screenX=0,screenY=0');\"><img src="+middleimgpath+" class='bigimage-borderA' border='0' alt=''></a>";
}

function delProd(intProdId)
{
 if(document.frmproductDisp.frmsize.CHECKED == "true")
 {
    href = "shopping-cart.php?del=";
    location.href = href+intProdId;
 } 
}

function changedispamt(shipAmt,totamt)
{ 
tmpisSelect = "";
	for (var i=0; i<document.frmcart1.frmselship.length; i++)  
	{ 
	  if (document.frmcart1.frmselship[i].checked)  
	   {	
	     tmpisSelect = "yes";
	   } 
        }

	if(tmpisSelect == "yes")
	{
	  y = document.getElementById("shipmentAmt"); 
	  y.innerHTML = "&pound "+shipAmt;
	  

	  x = document.getElementById("totalAmt"); 
	  x.innerHTML = "&pound "+totamt;

	  document.frmcart1.shipAmt.value = shipAmt;        
	}  
}