function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) 
    elem = document.getElementById( whichLayer );
  else if( document.all ) 
      elem = document.all[whichLayer];
  else if( document.layers ) 
    elem = document.layers[whichLayer];
  vis = elem.style;

  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 CheckoutAlert(text, CheckoutLink){

var answer = confirm (text)
if (answer) {
	window.location = CheckoutLink;
	// alert(CheckoutLink);
}

}

 
function ChangeCustomPrice(val)
{
	
	// get value from the radio box if optional prices are displayed
	// naveen
}

function ChangeCustomFeatures(val){
 

// alert("In _Shopperpress.js and changing custom features");
//alert(val);
var keyval = val.split(":");
 document.getElementById('CustomFeatures').innerHTML = keyval[1];

}

function ChangeCustomSize(val){
 
//alert("In _Shopperpress.js and changing custom features");
//alert(val);
 document.getElementById('CustomSize').innerHTML = val;

}

function ChangeCustomQty(val){
//alert("In customqty");
  document.getElementById('CustomQty').innerHTML = val;

}

function ChangeCustomColor(val){

 document.getElementById('CustomColor').innerHTML = val;

}
 
