
function prod_hover(div_id){
	div_id.style.borderColor = "#a0af14";
}
function prod_hover_out(div_id){
	div_id.style.borderColor = "#fff";
}
function load_productpage(){
	product_boxes_awake();
}
function product_boxes_awake(){
	document.getElementById("product_features").style.display = "none";
	document.getElementById("product_more_info").style.display = "none";
	document.getElementById("product_reviews").style.display = "none";
	document.getElementById("product_photos").style.display = "none";
	document.getElementById("product_video").style.display = "none";
	document.getElementById(current_tab).style.display = "block";
	document.getElementById("b_"+current_tab).className = "top activated";
}
function reveal_tab(tab_id){
	document.getElementById(current_tab).style.display = "none";
	document.getElementById(tab_id).style.display = "block";
	document.getElementById("b_"+current_tab).className = "top";
	document.getElementById("b_"+tab_id).className = "top activated";
	current_tab = tab_id;
}

function att_validate222(){
	if (document.cart_quantity.elements[0].selectedIndex==0) {// check the main items attribute 
		document.cart_quantity.elements[0].focus();
		alert('Please select an option');
		return false;
	}
}
function att_validate(){
	for(i=0; i<document.cart_quantity.elements.length; i++){
		if(document.cart_quantity.elements[i].type == 'select-one'){
			divId = document.cart_quantity.elements[i].id;
			document.getElementById(divId).style.backgroundColor = "#ffffff";
			if (document.getElementById(divId).selectedIndex==0) {// check the main items attribute 
				document.getElementById(divId).style.backgroundColor = "#ff6666";
				alert('Please select an option from this dropdown menu');
				document.getElementById(divId).focus();
				return false;
			}
		}
	}
}
function whiteout(withthis){
	withthis.style.backgroundColor = "#ffffff";
}