function toggleDiv(divid) {
		
	var thediv = $(divid);

	if (thediv) {
		if (thediv.getStyle('display') == 'none') {
			thediv.setStyle({
			  display: ''
			});
		}
		else {
			thediv.setStyle({
			  display: 'none'
			});
		}
	}
	
}

var lastoption;
	
function checkOption (option) {

	document.productAddToCartForm.elements['options_'+option].checked = true;
	var optionhref = $('href_options_'+option);
	var lastoptionhref = $('href_options_'+lastoption);
	
	if (lastoptionhref) {
		lastoptionhref.removeClassName('active');
	}
	if (optionhref) {
		optionhref.addClassName('active');
	}
	
	lastoption = option;
		
}
