  var elem, vis;

function nothing()
{
}

function toggleNotices(whichLayer) 
{
  hideElement('ceInfoBox');
  hideElement('copyInfoBox');
  
  if(document.getElementById) // this is the way the standards work
    elem = document.getElementById(whichLayer);
  else if(document.all) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if(document.layers) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}


function toggleDescrBox(whichDiv, whichTab) 
{
  hideElement('productDescrInfo');
  hideElement('productDescrFacets');
  hideElement('productDescrDelivery');
  hideElement('ceInfoBox');
  hideElement('copyInfoBox');

  hideElement('tabIon');
  hideElement('tabFon');
  hideElement('tabDon');
  showElement('tabIoff');  
  showElement('tabFoff');  
  showElement('tabDoff');  

  hideElement(whichTab+"off");  
  showElement(whichTab+"on");  
  showElement(whichDiv,'block');  
}

function hideElement(whichDiv) 
{
  if(document.getElementById) // this is the way the standards work
    elem = document.getElementById(whichDiv);
  else if(document.all) // this is the way old msie versions work
      elem = document.all[whichDiv];
  else if(document.layers) // this is the way nn4 works
    elem = document.layers[whichDiv];
  vis = elem.style;
  vis.display = 'none';
}

function showElement(whichDiv) 
{
  if(document.getElementById) // this is the way the standards work
    elem = document.getElementById(whichDiv);
  else if(document.all) // this is the way old msie versions work
      elem = document.all[whichDiv];
  else if(document.layers) // this is the way nn4 works
    elem = document.layers[whichDiv];
  vis = elem.style;
  vis.display = 'block';
}



function checkquantity(q)
{
	if (q.value>0)
	{
		return true;
	}
	else
	{
		alert("Please enter a quantity greater than 0 and click add to put the item(s) in your trolley.");
		return false;
	}
}

function createTarget(targName)
{
	window.open('', targName,'width=900,height=670,screenX=5,screenY=5,left=5,top=5').focus();
	return true;
}

