<html>
<head>
<script type="text/javascript">
<!--
function checkSubCat() {
	if(document.inputProduct.category.selectedIndex == "Store Item"){
		document.getElementById("mySelect").disabled=false;
	}else {
		document.getElementById("mySelect").disabled=true;
	}
}

//-->
</script>
</head>
<body>

<form name="inputProduct" action="manipulation/inputProduct.php" method="POST">
Category:<select name="category" onchange="checkSubCat()">
	<option value="">Choose me</option>
	<option value="Asset">Asset</option>
	<option value="Store Item">Store Item</option>
	<option value="Recipie">Recipie</option>
</select><br />
Sub-Category: <select id="mySelect" name="subCategory">
	<option value="">None</option>
	<option value="Lubricants">Lubricants</option>
	<option value="Diesel and depalleting oil">Diesel and Depalleting Oil</option>
	<option value="Paint">Paint</option>
	<option value="Tools">Tools</option>
	<option value="Vortex Spares">Vortex Spares</option>
	<option value="Rolling Stock">Rolling Stock</option>
	<option value="Lifting Tools">Lifting Tools</option>
	<option value="PPE">PPE</option>
	<option value="Bolts and Nuts">Bolts and Nuts</option>
	<option value="Welding">Welding</option>
	<option value="Pigment">Pigment</option>
	<option value="Wrapping and Strapping">Wrapping and Strapping</option>
	<option value="Toilet art">Toilet art</option>
	<option value="Miscellaneous">Miscellaneous</option>
	<option value="Laboratory">Laboratory</option>
</select> <br />
<br /><br />
<input type="button" onclick="disable()" value="Disable list">
<input type="button" onclick="enable()" value="Enable list">
</form>

</body>
</html>

