function changeNav(navid){
	var thediv = document.getElementById(navid);
	thediv.className = "navselected";
}

function changeSide(sideid){
	var thediv = document.getElementById(sideid);
	thediv.className = "sideselected";
}

function changeNavCart(navid){
	var thediv = document.getElementById(navid);
	thediv.className = "navselectedcart";
}

function hideMessage(styledisplay) {
	document.getElementById(styledisplay).style.display='none';
}

function showMessage(styledisplay) {
	document.getElementById(styledisplay).style.display='inline';
}

function clearText(boxId)
    {
     txtBox = document.getElementById(boxId);
     txtBox.value = "";
     document.getElementById(boxId).style.color='#000000';
    }
    
    
function changeCSS(obj) {
   	if (document.getElementById) {
		obj.style.backgroundColor = '#eeeeee';
		obj.style.borderColor = '#000000';
		obj.style.color = '#000000';
	}
}

function changeCSSback(obj) {
   	if (document.getElementById) {
		obj.style.backgroundColor = '#ffffff';
		obj.style.borderColor = '#aaaaaa';
		obj.style.color = '#000000';
	}
}

function Navtab(styledisplay) {
	document.getElementById(styledisplay).style.padding='1px 10px 5px 10px';
	document.getElementById(styledisplay).style.backgroundColor='#fff';
	document.getElementById(styledisplay).style.borderLeft='1px solid #ccc';
	document.getElementById(styledisplay).style.borderRight='1px solid #ccc';
	document.getElementById(styledisplay).style.borderTop='1px solid #ccc';
}
function minusQuantity(supplyid){

if (document.getElementById(supplyid).value > 0){
		document.getElementById(supplyid).value--;
	}
}

function plusQuantity(supplyid){

if (document.getElementById(supplyid).value < 9999){
		document.getElementById(supplyid).value++;
	}
}

				
	
