var currentPopOut = "none";
var currentMenu = "none";
var HTMLStr;
	function mOver(sender)
	{
		if (currentPopOut != "none")
		{
			document.all(currentPopOut).style.display = "none";
			currentPopOut = "none";
		}
		if (currentMenu != "none")
		{
			document.all(currentMenu).className="eSmainTax";
			currentMenu = "none";
		}		
		sender.className="eSmainTaxHover";
		var poperid = sender.id;
		currentMenu = poperid;
		poperid = poperid.replace(/poper/, "popup");
		currentPopOut = poperid;
		document.all(poperid).style.display = "";
		window.event.cancelBubble = true;
	}
	
	function mPopupOver(sender)
	{
		window.event.cancelBubble = true;
	}
	
	function sOver()
	{
	  if (event.srcElement.tagName!="IMG"){
	    event.srcElement.className = "eSsubTaxHover";
	  };
	}

	function sOut()
	{
	  if (event.srcElement.tagName!="IMG"){
  	    event.srcElement.className = "eSsubTax";
	  };
	}

	function sOverL()
	{
	  if (event.srcElement.tagName!="IMG"){
		event.srcElement.className = "eSsubTaxHoverLast";
	  };
	}

	function sOutL()
	{
	  if (event.srcElement.tagName!="IMG"){	  
		event.srcElement.className = "eSsubTaxLast";
	  };
	}	
	
	function jumpCat(catId)
	{
		window.location.href="/category.aspx?catid=" + catId;
	}	
	
	function jumpMP(mpId)
	{
		window.location.href="/marketplace.aspx?mpid=" + mpId;
	}
	
	function jumpSC(SCId)
	{
		window.location.href="/softcontent/softcontent.aspx?scmId=" + SCId;
	}

  	function incremnetqty(szIndex){
	  var oObj = eval('document.cartitems.' + szIndex);
	  oObj.value++;
	  var oGram = eval('document.cartitems.' + szIndex );
	  oGram.value = oObj.value;
  	}
	
  	function decremnetqty(szIndex){
	  var oObj = eval('document.cartitems.' + szIndex);
	  oObj.value<=1?oObj.value =1:oObj.value--;
	  var oGram = eval('document.cartitems.' + szIndex );
	  oGram.value = oObj.value;
  	}
	
	function changecharge(intTotal){
	  aValue = document.cartitems.shipid.options(document.cartitems.shipid.selectedIndex).value;
	  document.cartitems.shipcharge.value= aValue;
	  document.cartitems.nettotal.value= ((aValue * intTotal)/intTotal) + intTotal;
	}